Skip to content

Jacob-Strokus/Evolutionary-Algorithm-NueralNetwork

Repository files navigation

🧠 Evolutionary AI Neural Ecosystem

Advanced ecosystem simulation with neural network agents that learn, evolve, and interact in realistic predator-prey dynamics. Features emergent behaviors through evolutionary algorithms, social learning, and interactive neural network visualization.

🚀 Quick Start

git clone <repository-url>
cd EA-NN
pip install -r requirements.txt

# Run interactive web interface (recommended)
python main.py --web
# Open: http://localhost:5000

# Or console simulation
python main.py

✨ Key Features

  • 🧠 Neural Network Agents: 24→16→12→7 architecture with multi-target processing
  • 🎯 Advanced AI: Simultaneous tracking of multiple food sources and threats
  • 🤝 Social Learning: Multi-channel communication between agents
  • 🗺️ Exploration Intelligence: Curiosity-driven territory mapping
  • ⚖️ Balanced Ecosystem: Realistic predator-prey dynamics with natural population cycles
  • 🌐 Interactive Web Interface: Real-time neural network inspection with D3.js visualization
  • 📊 Live Analytics: Population dynamics, energy distribution, and ecosystem health monitoring

🔬 Interesting Results

System Performance Impact
Multi-Target Processing 98% accuracy Agents track 3 food + 3 threat targets simultaneously
Social Learning 378+ communications/step Collective intelligence through information sharing
Exploration Efficiency 92% territory coverage Curiosity-driven behavior mapping
Ecosystem Balance Natural population cycles Realistic predator-prey dynamics without extinction spirals
Neural Visualization 100% reliability Robust error handling with interactive inspection

🏗️ Project Structure

📁 EA-NN/
├── 📁 src/                    # Core source code
│   ├── 📁 core/              # Ecosystem mechanics
│   ├── 📁 neural/            # Neural network agents
│   ├── 📁 evolution/         # Genetic algorithms
│   └── 📁 visualization/     # Web interface
├── 📁 scripts/               # Testing and analysis tools
├── 📁 docs/                  # Documentation
├── 📁 tests/                 # Test suite
├── 📁 examples/              # Demo scripts
└── main.py                   # Entry point

🧪 Requirements

  • Python 3.8+
  • NumPy ≥1.21.0 - Neural network calculations
  • Matplotlib ≥3.5.0 - Visualization
  • Flask ≥2.0.0 - Web interface
  • Flask-SocketIO ≥5.0.0 - Real-time communication

🤝 Contributing

  1. Fork the repository
  2. Create feature branch: git checkout -b feature/enhancement-name
  3. Install dependencies: pip install -r requirements.txt
  4. Run tests: python -m pytest tests/
  5. Make changes with comprehensive testing
  6. Submit pull request with detailed description

Contribution Areas:

  • Neural network enhancements
  • Ecosystem balance improvements
  • Visualization features
  • Performance optimization
  • Testing coverage
  • Documentation

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🎯 Educational Value

Perfect for learning:

  • Evolutionary Algorithms & genetic evolution
  • Neural Network Behavior & emergent intelligence
  • Ecosystem Dynamics & predator-prey relationships
  • Complex Systems & emergent behaviors
  • Web-based AI Visualization & real-time monitoring

🧠 Start exploring evolutionary neural intelligence! Run python main.py --web to begin! 🎉

About

No description, website, or topics provided.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages