A modern Machine Learning-powered Car Price Prediction Web Application built with Python, Flask, Scikit-learn, HTML, CSS, and JavaScript. The application predicts the resale value of used cars using a trained Machine Learning model based on the CarDekho vehicle dataset.
Designed with a clean, responsive interface and interactive data visualizations, the system enables users to estimate used car prices, explore the dataset, compare machine learning models, and generate detailed performance reports.
- 🚗 Predict used car resale prices instantly
- 🤖 Machine Learning-powered price estimation
- 📊 Interactive model performance visualizations
- 📈 Multiple regression model comparison
- 📂 CarDekho vehicle dataset explorer
- 📄 Download machine learning performance report (PDF)
- ⚡ Fast prediction with trained model
- 📱 Fully responsive design
- 🎨 Modern UI with smooth animations
- 🔍 Dynamic brand & model selection
- 📉 Performance metrics comparison
- 🌍 Cross-platform deployment ready
The application evaluates multiple regression algorithms and selects the best-performing model based on prediction accuracy.
Models compared:
- Decision Tree Regressor
- Gradient Boosting Regressor
- Linear Regression
- Random Forest Regressor
The best model is automatically selected for final price prediction.
Model performance is evaluated using:
- R² Score
- Mean Absolute Error (MAE)
- Root Mean Squared Error (RMSE)
Interactive charts are generated using Chart.js for easy comparison.
The project uses the CarDekho Used Car Dataset, containing thousands of vehicle listings with attributes such as:
- Brand
- Model
- Manufacturing Year
- Seller Type
- Fuel Type
- Transmission
- Owner Type
- Kilometers Driven
- Mileage
- Engine Capacity
- Maximum Power
- Number of Seats
- Selling Price
The dataset is preprocessed before training to improve prediction performance.
- HTML5
- CSS3
- JavaScript
- Python
- Flask
- Scikit-learn
- Pandas
- NumPy
- Joblib
- Chart.js
- Matplotlib
- ReportLab
- Gunicorn
- Render
Clone the repository
git clone https://github.com/yourusername/Car-Price-Prediction.gitMove into the project
cd Car-Price-PredictionCreate virtual environment
python -m venv venvActivate virtual environment
venv\Scripts\activatesource venv/bin/activateInstall dependencies
pip install -r requirements.txtRun the application
python app.pyOpen your browser
http://127.0.0.1:5000
- Enter vehicle details.
- Select the car brand and model.
- Provide technical specifications.
- Click Predict Price.
- The trained Machine Learning model estimates the resale price.
- Explore dataset insights and compare model performance.
- Fast prediction response
- Responsive user interface
- Clean architecture using Flask Blueprints
- Production-ready deployment
- Interactive performance analysis
- Automatic report generation
The application allows users to download a professionally formatted Machine Learning performance report containing:
- Best-performing model
- R² comparison
- RMSE comparison
- MAE comparison
- Model summary
- Deep Learning models
- Real-time vehicle market trends
- Price prediction confidence intervals
- Regional price analysis
- Advanced filtering and search
- Model retraining with updated datasets
- REST API support
This project is licensed under the MIT License.
If you found this project useful, please consider giving it a ⭐ Star on GitHub.


