You are currently viewing a new version of our website. To view the old version click .
Engineering Proceedings
  • Proceeding Paper
  • Open Access

18 December 2025

DMPA–GWO++: A Dynamic Multi-Pack Adaptive Grey Wolf Optimizer for IoT Sensor Network Recovery in Smart Farms †

,
,
and
1
Department of Electronics and Communication Engineering, International Institute of Information Technology, Naya Raipur 493661, India
2
Department of Computer Science and Engineering, International Institute of Information Technology, Naya Raipur 493661, India
*
Author to whom correspondence should be addressed.
Presented at the 2nd International Conference on AI Sensors and Transducers, Kuala Lumpur, Malaysia, 29 July–3 August 2025.
This article belongs to the Proceedings The 2nd International Conference on AI Sensors and Transducers

Abstract

This paper addresses the Sensor Deployment Optimization Problem (SDOP) by presenting a novel hybrid metaheuristic algorithm designed to create resilient and self-healing wireless sensor networks (WSNs). We introduce the Dynamic Multi-Pack Adaptive Grey Wolf Optimizer (DMPA–GWO++), which effectively balances network performance with durability against sensor failures. The core innovation is a hybrid structure that combines multi-pack GWO exploration with PSO-style local exploitation and memory, avoiding local optima while converging fast. This combination allows the algorithm to avoid local optima while rapidly converging on highly efficient solutions. A multi-objective fitness function explicitly accounts for network robustness by integrating a Monte Carlo simulation framework, pre-conditioning deployment layouts to withstand realistic sensor dropouts. Post-failure recovery is enhanced through an auto-suggest relay placement mechanism that strategically adds nodes to repair connectivity gaps. The approach is validated through the development of reliable sensor layouts that maintain high coverage and connectivity under diverse failure scenarios, demonstrating its utility for real-world WSN applications.

1. Introduction

Wireless sensor networks (WSNs) underpin disaster response, environmental monitoring, and precision agriculture by enabling continuous, reliable sensing  [1,2]. Practical deployments face tight energy budgets, obstacles, and random node failures that can fragment connectivity, so fault tolerance must be optimized alongside coverage.
Metaheuristic algorithms such as Particle Swarm Optimization (PSO) [3], Grey Wolf Optimizer (GWO) [4], and Genetic Algorithm (GA) [1,5] work well on the Sensor Deployment Optimization Problem (SDOP) in wireless sensor networks (WSNs). Various extensions have improved their applicability in realistic environments—including relay-based recovery [6,7,8], obstacle-aware deployment [9], hybrid PSO–GWO models [10,11], adaptive or multi-strategy GWO variants [12,13,14], and domain-specific optimizers such as the Pelican Optimization Algorithm (POA) [2]. However, most existing studies assume static conditions and treat node recovery as a separate, post-deployment step. In practice, WSNs deployed in outdoor or agricultural environments experience stochastic failures, which are better modeled using in-loop Monte Carlo simulations [15] to capture real-world uncertainty.
Despite these advances, key gaps remain. Few methods jointly optimize coverage and connectivity while modeling post-failure recovery; adaptive mechanisms for maintaining population diversity are limited, and the coupling between sensor placement and relay-based repair remains weak—restricting true self-healing capability. To address these challenges, we propose DMPA–GWO++, a hybrid PSO–GWO framework enhanced with Monte Carlo-based robustness evaluation, a self-regulating multi-pack scheme (entropy-guided diversity and neuro-adaptive leadership), and an auto-suggest relay–repair module. The composite objective jointly optimizes deployment efficiency and post-failure resilience, producing fault-tolerant, self-healing WSN layouts. A comparative summary of related approaches and their limitations is presented in Table 1, highlighting how DMPA–GWO++ advances prior work.
Table 1. Comparison of representative approaches in WSN deployment optimization.

2. Materials and Methods

We follow the workflow in Figure 1a: initialize the environment (targets, obstacles, sensor parameters); run DMPA–GWO++ as the primary optimizer with PSO, GWO, DE, GA, and WOA as baselines under identical settings; score each candidate via the composite objective (Equation (3)) that blends static fitness (Equation (1)) and post-failure robustness (Equation (2)). Monte Carlo failures are embedded in-loop with N train = 20 samples per iteration to estimate expected performance; after convergence, robustness is re-evaluated over N report = 200 independent trials. If disconnections arise, an optional relay step (Equation (8)) computes the minimal relays to restore connectivity. We then visualize convergence, coverage, connectivity, and fitness before and after failures to assess overall resilience and recovery efficiency.
Figure 1. DMPA–GWO++ workflow showing (a) the overall pipeline—environment setup, composite and Monte Carlo evaluation, failure simulation, relay placement, and final metric computation—and (b) the core algorithmic blocks, including adaptive multi-pack formation, neuro-adaptive leadership, entropy-guided mutation, role-based dynamics, and hybrid PSO–GWO updates that iteratively optimize candidate solutions and return the best solution x*, yielding the final sensor deployment S(x*).

2.1. Experimental Environment

Simulations were performed on a fixed 100 × 100 field ( A = 100 ). Default parameters were n = 30 , r s = 15 , r c = 1.5 , r s = 22.5 , and independent per-sensor failure probability p f = 0.10 . In the absence of a real map, a seeded synthetic environment was used with 50 uniformly distributed targets and 8 circular obstacles (radius 8). All algorithms were tested under identical conditions for fair comparison. The base station (sink) was positioned at ( A / 2 , A / 2 ) , interpreting A = 100 as meters.

2.2. Problem Formulation

We address the robust two-dimensional deployment of n homogeneous sensors over a square agricultural field of side A. Each sensor has a sensing radius r s and communication radius r c . Let T denote target crop locations and O denote circular obstacles. A deployment is represented as S = { s i } i = 1 n [ 0 , A ] 2 . The objectives are to (i) maximize target coverage, (ii) maintain multi-hop connectivity under random node failures, and (iii) minimize redundant overlap and boundary violations.

2.3. Quality Metrics

For a deployment S, we compute the following: (i) Coverage—fraction of targets within r s of any sensor; (ii) Over-coverage—fraction covered by 2 sensors; (iii) Pairwise overlap—number of pairs with | s i s j | < r s / 2 ; (iv) Boundary violations—sensors outside [ 0 , A ] 2 ; (v) Static connectivity—fraction of sensors in the sink-anchored component via edges r c . These aggregate into the static loss (lower is better):
L static ( S ) = 1.5 Cov ( S ) + 0.5 [ 1 Conn r c ( S ) ] + 0.5 OverCov ( S ) + 0.01 Overlap ( S ) + 0.01 Boundary ( S ) .

2.4. Robustness Under Random Failures

We model random failures by retaining each sensor independently with probability 1 p f , yielding a surviving set S S . We recompute coverage (radius r s ) and connectivity (radius r c ), and define the single-trial penalty:
P ( S ) = 1 Cov ( S ) + 1 Conn r c ( S ) .
This penalty increases with loss of coverage and connectivity (lower is better). During optimization, the expected penalty E [ P ] is estimated via Monte Carlo with N train = 20 samples per call; for final reporting, we use N report = 200 independent trials and summarize results as mean ± SD, complementing the static loss in Equation (1).

2.5. Optimization Objectives

We optimize under two objectives.
Composite (proposed).
J DMPA ( a ) = α L static ( S ( a ) ) + ( 1 α ) E P S ( a ) , α = 0.5 ,
which jointly trades off static layout quality (Equation (1)) and expected post-failure penalty (Equation (2)).
Robust-only (baselines). Minimize E [ P ( S ( a ) ) ] under the same budget.
  • Here, a [ 0 , A ] 2 n reshapes to S ( a ) .

2.6. Proposed Algorithm: Dynamic Multi-Pack Adaptive Grey Wolf Optimizer (DMPA–GWO++)

Overview. GWO [4] explores well but can stagnate; PSO [3] converges fast but may over-exploit. DMPA–GWO++ fuses both via (i) dynamic multi-pack exploration, (ii) neuro-adaptive leader weights, (iii) entropy-guided mutation, (iv) role-based moves (exploit/explore/repair), (v) periodic inter-pack migration, and (vi) a hybrid PSO + GWO update. Candidates are scored by the composite objective (Equation (3)) with in-loop Monte Carlo robustness.
Notation. Population X ( t ) = { x i ( t ) } i = 1 M , x i ( t ) [ 0 , A ] 2 n ; personal best p i , velocity v i ; pack leaders ( α , β , δ ) .
(a) Dynamic Packs. Split { x i ( t ) } into P ( t ) { 2 , , 5 } packs using k-means over J DMPA ; adapt P ( t ) by dispersion D ( t ) (more packs when diverse). This adaptive partitioning maintains diversity by forming more sub-packs when agents are spatially scattered, enhancing global exploration.
(b) Neuro-Adaptive Leaders. With leader improvement Δ J ( t ) and κ > 0 ,
g ( t ) = e κ Δ J ( t ) , w ( t ) = g ( t ) g α ( t ) + g β ( t ) + g δ ( t ) .
These adaptive weights adjust each leader’s influence according to its improvement rate, assigning stronger impact to faster-converging leaders.
(c) Entropy-Guided Mutation. Let H ( t ) be diversity (fitness entropy):
σ ( t ) = σ min + H max H ( t ) H max ( σ max σ min ) .
Here, σ ( t ) controls mutation strength based on population entropy, introducing higher stochasticity when diversity decreases to prevent stagnation.
(d) Role-Based Dynamics. Top 30% exploit (low noise), mid 50% explore (higher noise), bottom 20% repair (reconnect bias); mask ϵ ( t ) sets intensity. This structured role division balances exploitation, exploration, and repair behavior, ensuring stable and resilient convergence.
(e) Inter-Pack Migration. Every τ iterations, exchange a few elites/weak agents across packs. The migration mechanism promotes information sharing between packs, avoiding premature convergence and improving diversity.
(f) Hybrid Update.
v i ( t + 1 ) = ω v i ( t ) + c 1 r 1 ( p i x i ( t ) ) + c 2 r 2 { α , β , δ } w ( t ) ( x ( t ) x i ( t ) ) ,
x i ( t + 1 ) = x i ( t ) + v i ( t + 1 ) + ϵ ( t ) N 0 , ( σ ( t ) ) 2 I ,
The velocity equation combines PSO’s cognitive–social learning with GWO’s leadership guidance, while the position update adds Gaussian noise for controlled diversity, enhancing both exploration and convergence stability.

2.7. Baselines and Convergence Evaluation

Robust variants of PSO, GWO, DE, GA, and WOA were implemented as baselines. Each used the robust-only objective min E [ P ( S ) ] under the same computational budget, with population size 30, 50 iterations, and identical box constraints.

2.8. Post-Failure Relay Redeployment

An optional repair analysis introduced a greedy relay strategy with budget K = 5 . On the post-failure communication graph, disconnected components were iteratively bridged with relays along the shortest inter-component segment. The number of required relays was
relays _ needed = max { 0 , d / r c 1 } ,
where d is the nearest cross-component distance. Bridging continued until either full connectivity or exhaustion of the relay budget.

2.9. Statistical Reporting and Reproducibility

The full iterative workflow of the proposed DMPA–GWO++ method, including multi-pack adaptation, leader weighting, entropy control, and hybrid PSO–GWO updates, is detailed in Algorithm 1. Each algorithm was tested under N report = 200 random-failure masks. Robustness was reported as mean ± SD for fitness (↓), coverage (↑), and connectivity (↑). Convergence was summarized using the final best-so-far L static ( S ) at iteration 50. All experiments used fixed seeds (e.g., numpy.random.seed(42)) to ensure reproducibility.
Algorithm 1 DMPA–GWO++
1:
Input:  [ 0 , A ] 2 , n, M, T, N train , parameters ( ω , c 1 , c 2 , σ min , σ max , τ , α , κ )
2:
Initialize the population { x i ( 0 ) } ; set v i ( 0 ) = 0 and p i = x i ( 0 ) .
3:
For each iteration t = 1 , , T :
4:
    Evaluate fitness
J i ( t ) = α L static ( x i ( t ) ) + ( 1 α ) E [ P ( S i ) ]
5:
    Cluster population into P ( t ) { 2 , , 5 } packs; compute D ( t ) , H ( t ) , and σ ( t ) .
6:
    Identify leaders ( α , β , δ ) and compute neuro-adaptive weights w ( t ) (Equation (4)).
7:
    Assign roles (30% exploit, 50% explore, 20% repair); set noise mask ϵ ( t ) .
8:
    For each agent i:
9:
       Update velocity:
v i ( t + 1 ) = ω v i ( t ) + c 1 r 1 ( p i x i ( t ) ) + c 2 r 2 { α , β , δ } w ( t ) ( x ( t ) x i ( t ) )
10:
      Update position:
x i ( t + 1 ) = x i ( t ) + v i ( t + 1 ) + ϵ ( t ) N ( 0 , ( σ ( t ) ) 2 I )
11:
      Reflect out-of-bounds positions; update p i if improved.
12:
  If  t mod τ = 0 , perform inter-pack migration of elites and weak agents.
13:
Output:  x = arg min i J i ( T ) and deployment S ( x ) .

3. Results and Discussion

This section presents the findings from our study on robust sensor deployment using DMPA–GWO++, with comparisons against baseline optimizers and an analysis of convergence, robustness, and practical implications.

3.1. Overall Performance

Under identical budgets, DMPA–GWO++ yields the most robust deployments (Figure 2a), sustaining higher coverage and stronger sink-anchored connectivity after failures. By comparison, PSO and GA (Figure 2b and Figure 3a) reach moderate coverage but leave isolated survivors; GWO and DE (Figure 3b and Figure 4a) degrade in both coverage and connectivity; and WOA (Figure 4b) attains high coverage yet poor connectivity, causing post-failure fragmentation. Conclusion: optimizing coverage alone is insufficient—maintaining a connected backbone is crucial for fault-tolerant WSNs.
Figure 2. Overall performance (1/3): DMPA–GWO++ vs. PSO. (a) High coverage; survivor graph largely stays connected after failures. (b) Good coverage; survivor graph fragments in multiple regions.
Figure 3. Overall performance (2/3): GA vs. GWO. (a) Coverage comparable to PSO but weaker backbone after failure. (b) GWO shows disconnected survivor components after failure.
Figure 4. Overall performance (3/3): DE vs. WOA. (a) Moderate coverage; fragmentation persists after failure. (b) Highest raw coverage; backbone breaks after failure.

3.2. Convergence Dynamics

Measured by best-so-far post-failure static fitness per iteration (Figure 5), DMPA–GWO++ descends rapidly and stabilizes at a lower loss than all baselines. PSO and GA converge more slowly; GWO and DE plateau earlier at higher losses; WOA mainly lowers loss via coverage gains but fails to secure resilient connectivity. The steady progress of DMPA–GWO++ stems from its multi-pack diversity, neuro-adaptive leadership, and role specialization.
Figure 5. Convergence dynamics: best-so-far post-failure static fitness per iteration.

3.3. Monte Carlo Robustness

Over N report = 200 random-failure trials, DMPA–GWO++ achieved the lowest (best) mean fitness with lower variance than all baselines (Table 2), reflecting consistently higher resilience. WOA had the highest coverage but poor post-failure connectivity; PSO/GA offered moderate balance; GWO/DE plateaued at higher loss.
Table 2. Monte Carlo robustness (mean ± SD over 200 trials).
Significance. Wilcoxon signed-rank tests (two-tailed, α = 0.05, paired n = 200) against each baseline yielded p < 0.01, confirming that DMPA–GWO++ improvements are statistically significant.

3.4. Relay Redeployment After Failures

With K = 5 , connectivity was typically restored with 2–3 relays (median = 2, IQR = 2–3), while coverage remained largely unaffected. Figure 6b. reports the ablation results: the multi-pack mechanism produces the largest benefit (≈25% loss reduction), with neuro-adaptive and entropy modules improving stability and diversity; role-based dynamics aid reconnection and migration reduces variance, together yielding balanced coverage–connectivity. Greedy bridging required only a few relays, as optimized layouts already aligned sensors along resilient corridors. Minor static penalties from relay overlap were offset by connectivity gains (Figure 6c), with overall coverage and fitness improving after relay insertion (Figure 6d).
Figure 6. Relays bridge nearest inter-component gaps; few relays suffice. Purple shaded disks represent the communication ranges of alive sensors (conceptually shown as white hollow circles in the system model). insertion and ablation results: (a) ablation impact; (bd) relay effects on topology and metrics. (a) Ablation: composite fitness (left) and coverage/connectivity (right). (b) Connectivity rises with minimal coverage change; fitness improves. (c) Relays bridge nearest inter-component gaps; few relays suffice. Purple shaded disks represent the communication ranges of alive sensors (conceptually shown as white hollow circles in the system model). (d) Scenario-level coverage, connectivity, and fitness (pre/post relays).

4. Conclusions and Future Work

Conclusions. Connectivity drives robustness. DMPA–GWO++ achieves the best mean fitness (0.42 ± 0.05; 200 trials) and strong coverage/connectivity (0.91 ± 0.02, 0.88 ± 0.03), converging in <50 iterations. With K = 5, typically 2–3 relays restore links. Guideline: build connectivity-aware backbones and retain spares for targeted repair.
Future work. (i) Couple robustness with energy/traffic (lifetime, QoS); (ii) model path-loss/terrain and correlated/targeted failures; (iii) multi-objective Pareto (coverage, connectivity, energy, relay cost); (iv) co-design sensors+relays and use variance-reduction for faster estimates; (v) scale (n = 50–100), enable online/decentralized reconfiguration, and validate on-farm.

Author Contributions

Conceptualization, A.K.; methodology, A.K.; investigation and results, A.K. and K.S.; writing—original draft preparation, A.K. and L.V.; writing—review and editing, A.K. and L.V.; supervision and guidance, K.J. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Data Availability Statement

Data are contained within the article.

Acknowledgments

The authors wish to acknowledge that this research was carried out at the International Institute of Information Technology (IIIT), Naya Raipur, Chhattisgarh, India. The authors are grateful to the institute for providing the necessary infrastructure and supportive environment for this work.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Gouda, O.; Nassif, A.; Abutalib, M.; Nasir, Q. A Systematic Literature Review on Metaheuristic Optimization Techniques in WSNs. Int. J. Math. Comput. Simul. 2020, 14, 187–192. [Google Scholar] [CrossRef]
  2. Chen, W.; Cao, Q.; Cao, B.; Jin, B. An Innovative Coverage Optimization Method for Smart Information Monitoring in Agricultural IoT Using the Multi-Strategy Pelican Optimization Algorithm. Sci. Rep. 2025, 15, 12634. [Google Scholar] [CrossRef] [PubMed]
  3. Kennedy, J.; Eberhart, R. Particle Swarm Optimization. In Proceedings of the ICNN’95-International Conference on Neural Networks, Perth, WA, Australia, 27 November–1 December 1995; pp. 1942–1948. [Google Scholar]
  4. Mirjalili, S.; Mirjalili, S.M.; Lewis, A. Grey Wolf Optimizer. Adv. Eng. Softw. 2014, 69, 46–61. [Google Scholar] [CrossRef]
  5. Ghosh, A.; Das, S.K. Coverage and Connectivity Issues in Wireless Sensor Networks: A Survey. Pervasive Mob. Comput. 2008, 4, 303–334. [Google Scholar] [CrossRef]
  6. Zhang, W.; Xue, G.; Misra, S. Fault-Tolerant Relay Node Placement in Wireless Sensor Networks: Problems and Algorithms. In Proceedings of the IEEE INFOCOM 2007-26th IEEE International Conference on Computer Communications, Anchorage, AK, USA, 6–12 May 2007; pp. 1649–1657. [Google Scholar] [CrossRef]
  7. Tang, J.; Hao, B.; Sen, A. Relay Node Placement in Large Scale Wireless Sensor Networks. Comput. Commun. 2006, 29, 2700–2709. [Google Scholar] [CrossRef]
  8. Radha, S.; Parvathy, P. Optimal Relay Node Placement with Game Theory in Wireless Sensor Networks. J. High Speed Netw. 2024, 30, 29–51. [Google Scholar] [CrossRef]
  9. Lanza-Gutiérrez, J.M.; Caballé, N.; Gómez-Pulido, J.A.; Crawford, B.; Soto, R. Toward a Robust Multi-Objective Metaheuristic for Solving the Relay Node Placement Problem in Wireless Sensor Networks. Sensors 2019, 19, 677. [Google Scholar] [CrossRef] [PubMed]
  10. Kou, G.; Wei, G. Hybrid Particle Swarm Optimization-Based Modeling of Wireless Sensor Network Coverage Optimization. Int. J. Adv. Comput. Sci. Appl. 2023, 14, 982–991. [Google Scholar] [CrossRef]
  11. Siamantas, G.; Kandris, D. Particle Swarm Optimization for k-Coverage and 1-Connectivity in Wireless Sensor Networks. Electronics 2024, 13, 4841. [Google Scholar] [CrossRef]
  12. Ou, Y.; Qin, F.; Zhou, K.-Q.; Yin, P.-F.; Mo, L.-P.; Mohd Zain, A. An Improved Grey Wolf Optimizer with Multi-Strategies Coverage in Wireless Sensor Networks. Symmetry 2024, 16, 286. [Google Scholar] [CrossRef]
  13. Dong, L.; Yuan, X.; Yan, B.; Song, Y.; Xu, Q.; Yang, X. An Improved Grey Wolf Optimization with Multi-Strategy. Sensors 2022, 22, 6843. [Google Scholar] [CrossRef] [PubMed]
  14. Liu, Y.; Li, H.; He, W. Review of the Grey Wolf Optimization Algorithm. Neural Comput. Appl. 2024, 36, 2713–2735. [Google Scholar] [CrossRef]
  15. Chakraborty, S.; Das, S.K. Modeling and Analysis of Cascading Node-Link Failures in Multi-Sink Wireless Sensor Networks. Reliab. Eng. Syst. Saf. 2020, 197, 106813. [Google Scholar]
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.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.