In this project, I built a machine learning model to predict food prices across various states in Nigeria, such as Lagos, Kano, Abuja, and Rivers, based on factors like the state, zone, food type, year, and month. The goal is to develop an accurate predictive model that can be deployed on the web for easy access and use.
# Food Price Prediction Model
Food prices fluctuate due to various factors, such as changes in supply, demand, weather conditions, and political factors. Predicting food prices is crucial for businesses and consumers to make informed decisions. In this project, I built a machine learning model to predict food prices across various states in Nigeria, such as Lagos, Kano, Abuja, and Rivers, based on factors like the state, zone, food type, year, and month. The goal is to develop an accurate predictive model that can be deployed on the web for easy access and use.
---
## Table of Contents
1. Overview
2. Features
3. Dataset Description
4. Model Development Process
- Exploratory Data Analysis (EDA)
- Data Preprocessing
- Feature Engineering
- Model Training
- Evaluation
- Model Deployment
5. Technologies Used
6. Setup Instructions
7. Usage
8. Future Improvements
---
## Overview
Food prices fluctuate due to various factors such as supply, demand, weather, and political conditions. This project aims to create a predictive model using machine learning to estimate food prices based on input features. The model is deployed using **Streamlit**, allowing users to interactively predict food prices for specific food items in different regions and time periods.
---
## Features
- Predict food prices based on state, zone, food type, year, and month.
- Interactive web app built with **Streamlit**.
- Handles categorical features using one-hot encoding.
- Supports predictions for multiple food items and regions.
- Displays encoded user input and predicted price.
---
## Dataset Description
The dataset includes the following columns:
- **State**: State where the food item is sold (e.g., Lagos, Kano, Abuja).
- **Zone**: Geopolitical zone (e.g., S.East, N.West).
- **Food Type**: Name of the food item (e.g., "Rice imported high quality sold loose").
- **Year**: Year of interest.
- **Month**: Month of interest.
- **Price**: The target variable representing the price of the fo …