Skip to content

Latest commit

ย 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 

Repository files navigation

๐Ÿบ Bio-Inspired Cognitive Swarms

Grey Wolf Optimization Augmented with Short-Horizon LSTM Prediction


๐Ÿ“Œ Overview

This project presents a hybrid GWO-LSTM framework for intelligent UAV swarm coordination. Traditional swarm planning methods react only to current target observations โ€” failing when a target executes evasive maneuvers. This framework solves that by integrating LSTM-based trajectory prediction with Grey Wolf Optimization (GWO), enabling the swarm to move proactively toward an anticipated target position rather than reacting after the fact.

Architecture: Predict โ†’ Optimize โ†’ Execute โ†’ Feedback


๐ŸŽฏ Key Features

  • ๐Ÿ”ฎ LSTM Prediction Module โ€” predicts future target position using recent trajectory history
  • ๐Ÿบ Grey Wolf Optimization โ€” decentralized swarm coordination using ฮฑโ€“ฮฒโ€“ฮดโ€“ฯ‰ hierarchy
  • ๐Ÿ’ก Hybrid Coordination โ€” predict-then-optimize pipeline for proactive interception
  • โšก Multi-Objective Fitness โ€” optimizes interception delay, energy, collision risk, and communication
  • ๐Ÿ”„ Continuous Feedback Loop โ€” adapts dynamically to target maneuvers in real time

๐Ÿ—๏ธ System Architecture

The framework consists of four main layers:

Layer Description
Temporal Observation Layer Collects target trajectory history
LSTM Prediction Layer Predicts future target positions (h steps ahead)
Optimization Layer GWO-based trajectory planning and role assignment
Swarm Execution Layer Executes optimized UAV movements

๐Ÿ”ง Tech Stack

Component Tool
Language Python 3.x
ML Framework TensorFlow, Keras
Numerical NumPy, SciPy
Visualization Matplotlib
IDE Jupyter Notebook / VS Code
OS Windows / macOS / Linux

โš™๏ธ Simulation Parameters

Parameter Value
Search Space 1000 ร— 1000 mยฒ
UAV Max Speed 20 m/s
Target Speed 14 m/s
Communication Range 150 m
Time Step 0.5 s
GWO Population Size 30 Wolves

๐Ÿš€ Getting Started

Prerequisites

pip install tensorflow keras numpy scipy matplotlib

Run the Simulation

# Clone the repository
git clone https://github.com/RabbaniHacker/uav-swarm-interception.git
cd uav-swarm-interception

# Launch Jupyter Notebook
jupyter notebook

# OR run directly
python main.py

๐Ÿ“ Project Structure

bio-inspired-cognitive-swarms/
โ”œโ”€โ”€ main.py                  # Entry point
โ”œโ”€โ”€ gwo/
โ”‚   โ””โ”€โ”€ optimizer.py         # Grey Wolf Optimization logic
โ”œโ”€โ”€ lstm/
โ”‚   โ””โ”€โ”€ predictor.py         # LSTM trajectory prediction model
โ”œโ”€โ”€ swarm/
โ”‚   โ””โ”€โ”€ coordination.py      # Swarm coordination and role assignment
โ”œโ”€โ”€ simulation/
โ”‚   โ””โ”€โ”€ environment.py       # 2D environment, targets, obstacles
โ”œโ”€โ”€ utils/
โ”‚   โ””โ”€โ”€ visualization.py     # Matplotlib-based plotting
โ”œโ”€โ”€ notebooks/
โ”‚   โ””โ”€โ”€ demo.ipynb           # Interactive demo
โ””โ”€โ”€ README.md

โš ๏ธ Adjust folder names to match your actual project structure.


๐Ÿ“Š How It Works

  1. Observe โ€” UAVs collect current target position and state data
  2. Predict โ€” LSTM network predicts future target coordinates (h steps ahead)
  3. Optimize โ€” GWO generates optimal swarm trajectories toward predicted position
  4. Execute โ€” UAV swarm performs coordinated interception
  5. Repeat โ€” Updated positions feed back into the next planning cycle

๐Ÿ“š References

  • Kori et al., GWO-based Cognitive Swarm Attack Model, IEEE, 2023
  • Mirjalili et al., Grey Wolf Optimizer, Advances in Engineering Software, 2014
  • Hochreiter & Schmidhuber, Long Short-Term Memory, Neural Computation, 1997
  • Shukla et al., LSTM-based Trajectory Prediction, IEEE, 2025
  • Tang et al., Receding-Horizon Evolutionary Planning, Aerospace Science and Technology, 2019

About

Hybrid GWO-LSTM framework for intelligent UAV swarm coordination and evasive target interception

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors