A machine learning web application that predicts Bitcoin price movements using Wikipedia sentiment analysis and technical indicators.
- Real-time Bitcoin price predictions
- Wikipedia edit sentiment analysis
- Automated daily model updates
- Web interface for easy access
- Confidence scoring
- Analyzes Wikipedia Bitcoin page edits for sentiment
- Processes Bitcoin price data and technical indicators
- Uses XGBoost machine learning model
- Predicts next-day price movement (UP/DOWN)
git clone https://github.com/AlhassenSabeeh/bitcoin_predictor.git cd bitcoin_predictor
python -m venv myenv source myenv/bin/activate
pip install -r requirements.txt
python update_data.py
============================================================
๐ Update started at: 2025-11-16 20:33:31
==================================================
๐ WIKIPEDIA SENTIMENT DATA UPDATE
==================================================
No model was supplied, defaulted to distilbert/distilbert-base-uncased-finetuned-sst-2-english and revision 714eb0f
(https://huggingface.co/distilbert/distilbert-base-uncased-finetuned-sst-2-english).
Using a pipeline without specifying a model name and revision in production is not recommended.
Device set to use cpu
โ Sentiment analysis pipeline loaded successfully
๐ Starting Wikipedia sentiment analysis pipeline...
๐ฅ Fetching Wikipedia Bitcoin page edits...
โ Fetched 18069 Wikipedia revisions
๐ง Analyzing sentiment of Wikipedia edits...
๐ Found 16738 valid sentiment scores out of 18069 revisions
โ Analyzed sentiment for 2799 days with 16738 valid scores
โ Sentiment analysis complete. File saved as 'wikipedia_edits.csv'
โ Wikipedia data update completed successfully
- Data points: 5746
- Date range: 2010-02-23 00:00:00 to 2025-11-16 00:00:00
==================================================
๐ค BITCOIN PREDICTION MODEL UPDATE
==================================================
๐ Starting Bitcoin prediction pipeline...
๐ Loading Bitcoin price data from Yahoo Finance...
โ Loaded 4079 days of Bitcoin data (up to 2025-11-16 00:00:00)
๐ Merging price data with Wikipedia sentiment...
โ Loaded sentiment data for 5746 days
โ Successfully merged price and sentiment data
โ๏ธ Creating technical features...
โ Created 15 features across 4 time horizons
๐ค Training XGBoost model...
๐ Training on 4079 samples with 15 features...
โ Model training complete and saved
๐ฏ Prediction: DOWN (Confidence: 61.15%)
โ Prediction pipeline complete!
โ Bitcoin model update completed successfully
- Features used: 15
- Training date: 2025-11-16T20:55:50.637579
========================================
๐ UPDATE SUMMARY
========================================
๐ Started: 2025-11-16 20:33:31
๐ Finished: 2025-11-16 20:55:50
โฑ๏ธ Duration: 1338.87 seconds
๐ฏ PREDICTION RESULTS:
Next day prediction: DOWN
Confidence: 61.15%
Current Price: $94,127.77
UP Probability: 38.849998474121094%
DOWN Probability: 61.150001525878906%
Model Training: 2025-11-16
โ Update process completed!