AI & Machine Learning Laboratory
Advanced predictive models for Ghana cocoa price forecasting and risk assessment
Select Prediction Model
Choose from our suite of specialized ML models
LSTM Neural Network
Deep learning model for time-series forecasting
XGBoost Ensemble
Gradient boosting for price direction prediction
Facebook Prophet
Seasonality and trend forecasting
SVM Classifier
Support Vector Machine for price movement
Model Parameters
Feature Selection
Prediction Results
Model Insights
Bullish Signal Detected
Model predicts upward trend with 85% confidence based on recent price momentum.
Volatility Alert
Expected volatility increase detected. Consider hedging strategies.
Model Comparison
Performance metrics across different models
| Model | Accuracy (R²) | MAE ($) | Training Time | Best For | Status |
|---|---|---|---|---|---|
| LSTM Neural Network | 0.942 | 42.80 | 15 min | Long-term forecasting | Active |
| XGBoost | 0.912 | 58.30 | 2 min | Price direction | Active |
| Facebook Prophet | 0.887 | 72.10 | 5 min | Seasonal patterns | Active |
| SVM Classifier | 0.865 | 89.50 | 10 min | Binary classification | Active |
| ARIMA | 0.821 | 102.30 | 1 min | Short-term forecasts | Inactive |
Model Training Studio
Train and customize models with your parameters
Training Progress
ReadyFeature Importance Analysis
Which factors most influence cocoa price predictions?
Model Deployment
Deploy trained models for real-time predictions
Model Documentation
Technical details and implementation guidelines
LSTM Model Architecture
The Long Short-Term Memory neural network consists of:
- Input Layer: 50 timesteps × 6 features
- LSTM Layers: 2 layers with 128 units each
- Dropout: 0.2 for regularization
- Dense Layers: 64 and 32 units with ReLU activation
- Output Layer: 1 unit (price prediction)
# Python implementation
model = Sequential([
LSTM(128, return_sequences=True, input_shape=(50, 6)),
Dropout(0.2),
LSTM(128, return_sequences=False),
Dropout(0.2),
Dense(64, activation='relu'),
Dense(32, activation='relu'),
Dense(1)
])
API Endpoints
Available REST API endpoints for model inference:
Example Request:
{
"model": "lstm",
"features": {
"price": [3820, 3835, 3850, ...],
"volatility": [0.25, 0.26, 0.24, ...],
"volume": [12450, 11870, 13240, ...]
},
"horizon": 30
}