Skip to content

ReaduanulFaridFahim/Pre-Owned-Bike-Price-Prediction

Repository files navigation

🏍️ Pre-Owned Bike Price Prediction

AI-Powered Pricing for Used Motorcycles

Bike Banner

License: MIT Python HTML ML


📖 Project Overview

Pricing used bikes is challenging due to multiple influencing factors such as brand, model, year, mileage, and condition. This system applies data-driven machine learning predictions to enhance transparency and accuracy, helping both buyers and sellers make informed pricing decisions.

After evaluating multiple models, Gradient Boosting and Random Forest delivered the best accuracy.


✨ Key Features

Feature Description
🖥️ User-Friendly Web Interface Modern and responsive design
📊 Data-Driven Price Estimation ML models trained on real-world data
🔄 Dynamic Input Form Bike brands & models loaded from a curated dataset
🔔 Custom Alert System Animated notifications for predictions
🧹 Advanced Data Processing Handles missing values, outliers, and scaling
🤖 Model Comparison Decision Tree, Random Forest, XGBoost, Gradient Boosting
⚡ Optimized Performance Hyperparameter tuning for accuracy

🗂️ Project Structure

Pre-Owned-Bike-Price-Prediction/
├── index.html          # Landing page
├── prediction.html     # Bike price prediction form
├── styles.css          # Stylesheet
├── script.js           # Frontend logic & form handling
├── bike.jpg            # Banner image
└── README.md

🛠️ Tech Stack

Machine Learning

  • Python (Pandas, NumPy, Scikit-Learn)
  • Models: Decision Tree, Random Forest, XGBoost, Gradient Boosting

Web Technologies

  • HTML5, CSS3, JavaScript (jQuery)
  • Flask (backend API)

📊 Model Results

Model Performance
🥇 Gradient Boosting Highest Accuracy
🥇 Random Forest Highest Accuracy
Decision Tree Moderate
XGBoost Good

🚀 Getting Started

Prerequisites

  • Python 3.x
  • pip

Installation

  1. Clone the repository

    git clone https://github.com/ReaduanulFaridFahim/Pre-Owned-Bike-Price-Prediction.git
    cd Pre-Owned-Bike-Price-Prediction
  2. Install Python dependencies

    pip install pandas numpy scikit-learn flask xgboost
  3. Run the Flask server

    python app.py
  4. Open in browser

    http://localhost:5000
    

🖼️ Screenshots

Home Page

Home Page

Prediction Form

Supports inputs for:

  • Brand – Honda, Yamaha, Suzuki, Kawasaki, Ducati, BMW, Harley-Davidson
  • Model – Dynamically loaded per brand
  • Year – Manufacturing year
  • Mileage – Total kilometres ridden
  • Condition – Excellent / Good / Fair / Poor

🔮 Future Enhancements

  • 🔹 Expanding dataset for better predictions
  • 🔹 Deep Learning integration for improved accuracy
  • 🔹 Price trend analysis for depreciation insights
  • 🔹 Location-based pricing adjustments

📄 License

This project is licensed under the MIT License.


🤝 Contributing

Contributions are welcome! Please open an issue or submit a pull request.


This project bridges machine learning and e-commerce, making used bike pricing more accurate and reliable.

#MachineLearning #AI #UsedBikes #PricePrediction #DataScience #Python #WebDevelopment

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors