Skip to content

This project aims to develop a time series forecasting system for predicting weekly fresh prices of vegetables and fruits in the Agrovia kingdom.

Notifications You must be signed in to change notification settings

LasithaAmarasinghe/Freezer-Gambit-Data-Crunch

Repository files navigation

Data Crunch - CSE, UoM

The Freezer Gambit

AgroChill Time Series Forecasting System

This project aims to develop a time series forecasting system for predicting weekly fresh prices of vegetables and fruits in the Agrovia kingdom. The system uses historical weather and price data to forecast future prices, enabling the effective implementation of the Freezer Gambit, which allows Magnus Greenvale to preserve produce for better market prices.

Project Overview

The solution provides an API for forecasting future prices of agricultural commodities in various regions of Agrovia. The forecasts are based on a dataset that includes weather data (temperature, rainfall, humidity) and price data for commodities (fruits and vegetables). The system is designed to predict prices up to 4 weeks ahead and continuously adapt with new incoming data via streaming or API calls.

Key Features:

  • Time Series Forecasting: Predicts weekly prices of commodities one month ahead.
  • Data Pipeline: Incorporates new data dynamically through APIs or streaming sources.
  • Dockerized: The entire solution is packaged within a Docker container for easy deployment.
  • Business Insights: Provides actionable recommendations for AgroChill's cold storage strategy.

Instructions

Local Deployment

docker pull lasitharandula/agrochill:latest
docker run -p 8000:8000 lasitharandula/agrochill:latest
http://localhost:8000/docs

GitHub Actions Deployment

The API is also deployed via GitHub Actions and is accessible 24/7. The workflow:

  1. Deploys the API and makes it accessible via a public URL
  2. Runs a cron job at midnight (00:00 UTC) daily to retrain all models with the latest data
  3. Provides the API URL as an artifact in the GitHub Actions workflow

To access the deployed API:

  1. Go to the Actions tab in the GitHub repository
  2. Click on the latest successful workflow run
  3. Download the api-url artifact
  4. Open the URL in your browser to access the API documentation

Model Accuracy

Model Accuracy

About

This project aims to develop a time series forecasting system for predicting weekly fresh prices of vegetables and fruits in the Agrovia kingdom.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •