This project implements a dynamic pricing system using Facebook Prophet for time series forecasting and Twitter RoBERTa for sentiment analysis. It adjusts prices dynamically based on future demand predictions and real-time customer sentiment analysis from Twitter data.
The dynamic pricing system leverages two key components:
- Prophet: A forecasting tool to predict future demand based on historical data.
- Twitter RoBERTa: A pre-trained transformer model for sentiment analysis to gauge real-time market sentiment from Twitter data.
Using these models, the system adjusts product prices to maximize revenue or competitiveness depending on predicted demand and social sentiment.
- Python 3.8+
- Prophet
- Hugging Face RoBERTa
- pandas, numpy, scikit-learn
- Tweepy (for Twitter API)
- Matplotlib for visualization
-
Clone this repository:
git clone https://github.com/HeathKnowles/DynamicPricingSystem.git cd DynamicPricingSystem
-
Run the data fetchers
python commerce.py python demand_forecasting.py python sentiment_analysis.py
-
Run the preprocessor
python preprocess.py
-
Run the main python file
python main.py
-
This outputs a dynamic Price of the product in the json folder