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
- ๐ฎ 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
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 |
| Component | Tool |
|---|---|
| Language | Python 3.x |
| ML Framework | TensorFlow, Keras |
| Numerical | NumPy, SciPy |
| Visualization | Matplotlib |
| IDE | Jupyter Notebook / VS Code |
| OS | Windows / macOS / Linux |
| 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 |
pip install tensorflow keras numpy scipy matplotlib# 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.pybio-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.
- Observe โ UAVs collect current target position and state data
- Predict โ LSTM network predicts future target coordinates (h steps ahead)
- Optimize โ GWO generates optimal swarm trajectories toward predicted position
- Execute โ UAV swarm performs coordinated interception
- Repeat โ Updated positions feed back into the next planning cycle
- 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