Project Overview • Quick Start • Configuration • Usage Examples • Contributing • License
Important: This system is for educational and entertainment purposes only. Roulette is a game of chance with inherent house edge. No prediction system can guarantee wins. Always gamble responsibly and within your means.
NeuralRoulette-AI is a sophisticated roulette prediction system that leverages deep learning to analyze historical roulette spin data and predict future outcomes. The system uses multiple prediction strategies with varying risk levels to provide comprehensive betting insights.
- Real-time Data: Live WebSocket connection to Pragmatic Play Live Casino
- Multiple Prediction Models: Top-1, Top-3, Top-18 number predictions
- LSTM Neural Networks: Advanced sequence learning for pattern recognition
- Betting Simulation: Track win rates and balance changes
- Model Persistence: Save and load trained models for continuous learning
- Comprehensive Logging: Detailed session tracking and performance metrics
- Data Collection: Real-time roulette spin results via WebSocket
- Preprocessing: Sequence generation and normalization
- Model Training: LSTM networks with dropout regularization
- Prediction: Multi-class classification for roulette outcomes
- Evaluation: Win rate calculation and performance tracking
- Architecture: LSTM with 128→64→Dense layers
- Sequence Length: 10-18 historical spins
- Output Classes: 37 (0-36) for numbers
- Training: 50 epochs with Adam optimizer
- Regularization: 20% dropout to prevent overfitting
NeuralRoulette-AI/
├── README.md # This documentation file
├── requirements.txt # Python dependencies
├── .gitignore # Git ignore rules
├── main.py # Unified execution script for all strategies
├── config/ # Configuration files
│ └── settings.py # Centralized configuration management
├── src/ # Source code
│ ├── strategies/ # Betting strategies
│ ├── data/ # WebSocket data handling
│ └── utils/ # Logging & utilities
└── models/ # Trained model files
- Python 3.8+
- TensorFlow 2.x
- WebSocket support
- Clone the repository
git clone https://github.com/devddine/NeuralRoulette-AI.git
cd NeuralRoulette-AI
- Install dependencies
pip install -r requirements.txt
- Run the prediction system
# List all available strategies
python main.py --list-strategies
# Run specific strategy
python main.py --strategy top1 --balance 100
python main.py --strategy top3 --balance 50
python main.py --strategy top18 --auto-train
tensorflow>=2.8.0
numpy>=1.21.0
websockets>=10.0
- Strategy: Predicts the single most likely number
- Risk Level: Very High
- Payout: 35:1
- Break-even Win Rate: >2.70%
- Use Case: High-risk, high-reward betting
- Strategy: Predicts the 3 most likely numbers
- Risk Level: High
- Payout: 35:1 per hit
- Break-even Win Rate: >8.57%
- Use Case: Balanced risk/reward approach
- Strategy: Predicts the 18 most likely numbers
- Risk Level: Medium
- Payout: 35:1 per hit
- Break-even Win Rate: >51.43%
- Use Case: Conservative betting strategy
- URL:
wss://dga.pragmaticplaylive.net/ws
- Casino ID:
ppcds00000003709
- Table:
236
(Pragmatic Play Live Roulette)
- Sequence Length: 10-18 historical spins
- Memory Limit: 1000 recent spins
- Training Frequency: Every new spin
- Batch Size: 32
- Epochs: 50
- Win Rate: Percentage of correct predictions
- Balance: Simulated betting balance
- ROI: Return on investment over time
- Accuracy: Model prediction accuracy
All sessions are logged with:
- Session timestamps
- Total spins
- Win rates
- Final balances
# List all strategies
python main.py --list-strategies
# Run specific strategy
python main.py --strategy top1 --balance 100
# Run with automatic training
python main.py --strategy top18 --auto-train
# Use simulated data instead of live WebSocket
python main.py --strategy top3 --balance 50 --simulate
🎰 NeuralRoulette-AI Available Strategies
==================================================
TOP1 - Top-1 Single Number
Description: Highest risk/reward - predicts single most likely number
Risk Level: High
Numbers to Predict: 1
Target Win Rate: 2.71%
Model File: top1_model.keras
TOP3 - Top-3 Numbers
Description: Medium risk - predicts top 3 most likely numbers
Risk Level: Medium
Numbers to Predict: 3
Target Win Rate: 8.11%
Model File: top3_model.keras
TOP18 - Top-18 Numbers
Description: Lower risk - covers half the wheel
Risk Level: Low
Numbers to Predict: 18
Target Win Rate: 48.65%
Model File: top18_model.keras
Contributions are welcome! Please feel free to submit issues, feature requests, or pull requests.
This project is licensed under the MIT License - see the LICENSE file for details.
- Pragmatic Play for providing live roulette data
- TensorFlow team for the excellent ML framework
- WebSocket community for real-time communication tools
Built with ❤️ by devddine