Analysis of climate change impact on South American bee populations using Machine Learning and data analysis.
📊 SCIENTIFIC CONSENSUS CONFIRMED: Integrated analysis of 6 scientific studies confirms that 85-90% of bees are migrating southward due to climate change.
⏰ URGENCY: Conservation window of only 5-10 years for effective action.
📍 EMBLEMATIC CASE: Bombus bellicosus already locally extinct in Curitiba.
🗺️ CRITICAL AREA: Southern Brazilian grasslands identified as priority conservation zone.
This project investigates how climate change affects bee populations in South America, using advanced data analysis techniques and machine learning to identify patterns, correlations, and predict future scenarios.
- Exploratory Analysis: Investigate spatial and temporal distribution of bees
- Climate Correlation: Quantify relationships between climate and bee abundance
- ML Prediction: Develop models to predict migration and abundance
- Visualization: Create informative maps and charts
- Reports: Generate actionable insights for conservation
# Clone the repository
git clone https://github.com/digomes87/Bees.git
cd Bees
# Install dependencies
pip install -r requirements.txt
# Run complete analysis
python src/bee_analysis.py
# Run ML predictions
python src/bee_migration_predictor.py
- Geographic distribution of species
- Temporal abundance analysis
- Climate-biodiversity correlations
- Seasonal pattern identification
- Models: Random Forest, Gradient Boosting, SVR, Linear Regression
- Features: Climate, geographic and temporal variables
- Metrics: R², RMSE, MAE, MAPE
- Validation: Cross-validation and holdout test
- Species distribution maps
- Temporal trend charts
- Correlation heatmaps
- Feature importance analysis
Bees/
├── src/
│ ├── bee_analysis.py # Main analysis
│ ├── bee_migration_predictor.py # ML models
│ ├── config.py # Configuration
│ └── generate_charts.py # Visualizations
├── data/
│ ├── raw/ # Raw data
│ ├── processed/ # Processed data
│ └── simulated/ # Simulated data
├── results/
│ ├── models/ # Trained models
│ ├── reports/ # Reports
│ └── *.csv # Results
├── images/ # Generated charts
├── docs/ # Documentation
└── requirements.txt # Dependencies
- Python 3.8+: Main language
- Pandas: Data manipulation
- NumPy: Numerical computing
- Scikit-learn: Machine Learning
- Matplotlib: Static charts
- Seaborn: Statistical visualizations
- Plotly: Interactive charts
- GeoPandas: Geographic data
- Folium: Interactive maps
- GBIF: Biodiversity data
- WorldClim: Climate data
- NASA: Satellite data
Integrated analysis of 6 scientific studies confirms consistent pattern of bee migration southward due to climate change:
- 📊 Scientific Consensus: 85-90% of studies confirm south/southwest migration
- 🌡️ Critical Threshold: 2.5°C increase as tipping point
- 📍 Indicator Species: Bombus bellicosus (local extinction in Curitiba)
- 🗺️ Critical Area: Southern Brazilian grasslands identified as priority conservation zone
- UFPR: 18 neotropical species, projection until 2050
- Dryad Dataset: Species distribution modeling
- PMC Studies: Global impacts and emerging pests
- Ecology Letters: Community restructuring (North America)
- Aegean Study: Impacts on island ecosystems
Group | Impact | Trend |
---|---|---|
Eusocial | -35% | 🔴 High vulnerability |
Solitary | -20% | 🟡 Moderate vulnerability |
Specialists | -40% | 🔴 Critical |
Generalists | +15% | 🟢 Benefited |
- 🟢 Conservative: 80% of species migrate by 2050
- 🟡 Moderate: 95% of species migrate by 2050 (most likely)
- 🔴 Aggressive: 100% of species migrate by 2040
- Best Model: Random Forest (R² = 0.85)
- RMSE: 12.3 (bee abundance)
- Important Features: Temperature, precipitation, latitude
- Negative Correlation: Temperature increase reduces abundance
- Seasonality: Abundance peaks in autumn/winter
- Geography: Mountainous regions more resilient
- Trend: 15% decline in the last decade
- 🚨 Urgency: 5-10 year conservation window
Specific analysis of UFPR study on South American bee migration
Comparison of temperature trends between local data and scientific studies
Integrated synthesis of migration patterns based on multiple scientific studies
Summary of climate impact on bee populations
Correlation matrix between climate variables and bee abundance
Geographic distribution of bee species
Analysis of honey-producing species decline
Relationship between temperature increase and migration patterns
This project integrated analysis of 6 main scientific studies on bee migration due to climate change:
- 🌍 Global Consensus: 85-90% of studies confirm south/southwest migration
- 🌡️ Critical Threshold: 2.5°C warming as tipping point
- 📍 Emblematic Case: Bombus bellicosus - local extinction in Curitiba
- 🗺️ Priority Area: Southern Brazilian grasslands as critical zone
- ⏰ Temporal Urgency: 5-10 year conservation window
Aspect | Evidence Level | Converging Sources |
---|---|---|
Southward Direction | ⭐⭐⭐⭐⭐ Very High | 5/5 studies |
Speed | ⭐⭐⭐⭐ High | 4/5 studies |
Climate Factors | ⭐⭐⭐⭐⭐ Very High | 5/5 studies |
Vulnerable Groups | ⭐⭐⭐⭐ High | 4/5 studies |
- ✅ Urgent protection of Brazilian southern grasslands
- 🔍 Continuous monitoring of indicator species
- 🌿 Creation of north-south ecological corridors
⚠️ Control of emerging pests (Small Hive Beetle)
- 🌱 Habitat restoration in the south
- 🚀 Assisted relocation programs
- 📊 Expansion of scientific monitoring
- 🏛️ Integration into public policies
- 🌾 Agricultural landscape adaptation
- 🌎 Transnational conservation networks
- 🧬 Genetic improvement programs
- 📜 Climate adaptation policies
- UFPR - Climate change pushes South American bees southward
- Dryad Dataset - Climate-induced range shifts in neotropical bees
- PMC Studies - Global warming and honey bee pests + Island bee impacts
- Ecology Letters - Bumble bee community restructuring (North America)
- Kaggle Climate Data - Climate trend validation
# config.py
DATA_SOURCES = {
'GBIF_API': 'https://api.gbif.org/v1/',
'WORLDCLIM_API': 'https://worldclim.org/data/',
'NASA_GIOVANNI': 'https://giovanni.gsfc.nasa.gov/'
}
ML_CONFIG = {
'MODELS': ['RandomForest', 'GradientBoosting', 'SVR'],
'CV_FOLDS': 5,
'TEST_SIZE': 0.2
}
- Period: 2000-2023
- Region: South America
- Species: 50+ bee species
- Resolution: 1km² (climate data)
# Complete exploratory analysis
analyzer = BeeClimateAnalyzer()
results = analyzer.run_complete_analysis()
# ML predictions
predictor = BeeMigrationPredictor()
ml_results = predictor.run_complete_ml_pipeline()
# Load data
data = analyzer.load_data()
# Temporal analysis
temporal_results = analyzer.temporal_analysis(data)
# Correlations
correlations = analyzer.correlation_analysis(data)
# Predictions
predictions = predictor.predict_migration_patterns()
# Run tests
pytest tests/
# Coverage
pytest --cov=src tests/
# Linting
flake8 src/
black src/
- Base project structure
- Exploratory data analysis
- Machine learning models
- Visualizations and reports
- Scientific paper analysis on migration
- Scientific evidence integration
- Multi-source discovery synthesis
- Cross-validation of results
- Evidence-based recommendations
- REST API for predictions
- Interactive dashboard
- Real-time data integration
- Cloud deployment
- Real-time monitoring of indicator species
- Integration with climate alert systems
- Scientific collaboration platform
- Mobile app for citizen science
- Fork the project
- Clone your fork
- Create a branch (
git checkout -b feature/new-feature
) - Commit your changes (
git commit -am 'Add new feature'
) - Push to the branch (
git push origin feature/new-feature
) - Open a Pull Request
- Follow PEP 8 for Python code
- Add tests for new features
- Document changes in CHANGELOG
- Use semantic commits
This project is licensed under the MIT License - see LICENSE for details.
- Diego Gomes - Lead Developer - @digomes87
- UFPR - Federal University of Paraná (South American migration study)
- Dryad Digital Repository - Neotropical bee dataset
- PMC (PubMed Central) - Global warming and bee studies
- Ecology Letters - Community restructuring research
- Kaggle - Climate change datasets
- GBIF - Biodiversity data
- WorldClim - Climate data
- NASA - Satellite data
- Python Community - Libraries and tools
- GitHub: @digomes87
- Issues: GitHub Issues
- Discussions: GitHub Discussions