Skip to content

Kaviyars-cit/EV-EdunetIntern

Repository files navigation

โšก Powering Tomorrowโ€™s Electric Revolution โšก

๐Ÿš— Predicting the Price of Electric Vehicles using Machine Learning ๐Ÿš—

AICTE โ€“ Edunet Foundation Virtual Internship
Theme: Electrical Vehicles and Energy
Internship Partner: Edunet Foundation| Shell


๐ŸŒ Introduction

Electric Vehicles (EVs) are revolutionizing global transportation by offering a cleaner, more efficient alternative to traditional fuel-based vehicles.
As the world moves toward sustainability, understanding what drives the price of an electric vehicle is vital.

This project focuses on using Machine Learning to predict the price of an EV based on its technical specifications โ€” such as range, efficiency, acceleration, and top speed.
The insights gained can assist both manufacturers and customers in making better, data-driven decisions.


๐Ÿง  Problem Statement

Develop a machine learning model that predicts the price of electric vehicles using multiple performance and design parameters.

๐ŸŽฏ Objectives

  1. Collect and preprocess an EV dataset from Kaggle.
  2. Perform exploratory data analysis (EDA) and feature engineering.
  3. Train regression models to predict prices accurately.
  4. Compare model performance using error metrics.
  5. Present results through visualizations and documentation.

๐Ÿ“Š Dataset Details

Dataset Name: Vehicle Dataset 2024
Source: Kaggle โ€“ Vehicle Dataset 2024
File Name: car_data_clean.csv

Feature Description
Range (km) Distance covered on a full charge
Top Speed (km/h) Maximum achievable speed
Efficiency (Wh/km) Energy consumed per kilometer
Acceleration (0โ€“100 km/h) Time to reach 100 km/h
Seats Seating capacity
Price (USD) Market price of the EV

๐Ÿงน Data Preprocessing Steps

  1. Data Cleaning โ€“ Removed missing and duplicate values.
  2. Feature Selection โ€“ Identified the most influential features.
  3. Encoding โ€“ Converted categorical variables into numerical form.
  4. Scaling โ€“ Normalized numeric columns for uniformity.
  5. Splitting โ€“ Divided the dataset into 80% training and 20% testing sets.

โš™ Technologies & Tools Used

  • Programming Language: Python ๐Ÿ
  • Environment: Google Colab / Jupyter Notebook
  • Libraries Used:
    • pandas โ€“ Data handling
    • numpy โ€“ Numerical operations
    • matplotlib / seaborn โ€“ Visualization
    • scikit-learn โ€“ Machine Learning models
    • joblib โ€“ Model persistence

๐Ÿงฎ Model Implementation

โœ… Models Used:

  • Linear Regression โ€“ Baseline model
  • Decision Tree Regressor โ€“ Handles non-linearity
  • Random Forest Regressor โ€“ Ensemble method for better accuracy

๐Ÿ“ˆ Evaluation Metrics:

  • Mean Absolute Error (MAE)
  • Root Mean Squared Error (RMSE)
  • Rยฒ Score

Result:
The Random Forest Regressor achieved the best accuracy and the lowest prediction error, proving to be the most reliable model for EV price estimation.


๐Ÿ“‰ Results & Insights

  • EVs with longer range and better efficiency are more expensive.
  • Acceleration and top speed significantly influence the final price.
  • Energy efficiency is a key factor determining cost-performance ratio.

๐Ÿ–ผ Output Visualization:

Prediction Tool:

Screenshot 2025-11-13 134100 Screenshot 2025-11-13 134107

Chatbot Visual:

Screenshot 2025-11-13 134144

๐Ÿงฉ Project Structure


๐Ÿง  Learning Outcomes

  • Gained practical knowledge in data preprocessing and visualization.
  • Learned to implement and evaluate regression algorithms.
  • Understood feature correlation and its impact on predictions.
  • Practiced project documentation and GitHub publishing.

๐Ÿš€ Future Enhancements

  • Integrate Deep Learning (Neural Networks) for better accuracy.
  • Create a Streamlit-based web interface for live predictions.
  • Add brand-wise comparisons and battery performance analytics.
  • Expand dataset for real-world applicability.

๐Ÿ’ซ Landing Page

โšก โ€œPowering Tomorrowโ€™s Electric Revolutionโ€
Predicting the Price of Electric Vehicles through Data Intelligence Screenshot 2025-11-13 134015


๐Ÿ’ฌ Acknowledgements

This project was developed as part of the AICTE โ€“ Edunet Foundation Virtual Internship, under the theme:
*Electrical Vehicles and Energy, in partnership with *Shell.

Special thanks to the mentors and coordinators for their valuable guidance and training sessions.


๐Ÿš— EV Price Prediction Using Machine Learning

AICTE โ€“ Edunet Foundation Virtual Internship

Theme: Electrical Vehicles & Energy
Partner: Edunet Foundation | Shell


โšก Powering Tomorrowโ€™s Electric Revolution

Predicting the Price of Electric Vehicles through Data Intelligence


๐Ÿ“Œ Overview

Electric Vehicles (EVs) are transforming transportation by offering cleaner and more efficient alternatives. Understanding the factors that influence EV prices helps customers, researchers, and manufacturers make informed decisions.

This project uses Machine Learning to predict the price of an electric vehicle using features like range, speed, efficiency, acceleration, and more.


โœ… ๐Ÿ“… Week-Wise Internship Progress

โœ… Week 1 โ€“ Repository Setup & Dataset Exploration

  • GitHub repository created and structured
  • Datasets added (cleaned CSV files)
  • Initial README drafted
  • Performed basic data checks: missing values, duplicates, outliers
  • Analyzed feature distributions and dataset structure

Week 1 Improvements:

  • Organized folders and cleaned the dataset
  • Added improved README structure
  • Added output screenshots to documentation

โœ… Week 2 โ€“ Machine Learning Model Training

  • Loaded dataset in Google Colab
  • Performed data preprocessing:
    • Cleaning
    • Feature Selection
    • Encoding
    • Scaling
  • Trained the following models:
    • Linear Regression
    • Decision Tree Regressor
    • Random Forest Regressor (best performance)
  • Evaluated using MAE, RMSE, and Rยฒ score
  • Exported model and scaler for next weeks

Files Added in Week 2:

  • Week2_Model_Training.ipynb โ€“ ML workflow notebook
  • ev_price_model.pkl โ€“ Trained Random Forest model
  • scaler.pkl โ€“ Scaler used during training

Week 2 Insights:

  • Higher range EVs tend to have higher prices
  • Efficiency and performance influence pricing significantly
  • Random Forest provided the most reliable predictions

โœ…Week 3 โ€“ Final Project Development & Integration

  • Week 3 โ€“ Model Integration & Python Front-End Development
  • Integrated the trained Random Forest model and scaler into the Python-based front-end.
  • Created a complete front-end interface using Python files in VS Code.
  • Implemented user input handling for EV specifications (battery, brand, range, power, etc.).
  • Performed all preprocessing stages inside the Python front-end:
    • Encoding
    • Scaling
  • Implemented the price prediction logic using the imported ML model.
  • Displayed predictions and results in the Python front-end interface.
  • Organized and cleaned the entire project structure for final submission.

  • Files Added in Week 3:
    • frontend_react website.zip โ€“ Python front-end interface
    • This is the Website's Frontend attached to the final project and ml model zipped together

  • Week 3 Insights:
    • Python-based front-end successfully connected with ML model for real-time predictions.
    • Fully functional EV Price Prediction workflow implemented without using Streamlit.
    • Final project optimized for LMS submission with a clean and lightweight structure.

๐Ÿ“Š Dataset Information

Dataset Name: Vehicle Dataset 2024
Source: Kaggle
File Used: car_data_clean.csv

FeatureDescription
Range (km)Distance per full charge
Top Speed (km/h)Maximum specified speed
Efficiency (Wh/km)Energy consumption per km
Acceleration (0โ€“100 km/h)Time taken to reach 100 km/h
SeatsSeating capacity
Price (USD)Target variable

๐Ÿง  Technologies Used

  • Python
  • Google Colab
  • Pandas, NumPy
  • Matplotlib, Seaborn
  • Scikit-learn
  • Joblib

๐Ÿ”ง Machine Learning Models

  • Linear Regression (baseline)
  • Decision Tree Regressor
  • Random Forest Regressor โ€“ Best Model

๐Ÿ“ˆ Evaluation Metrics

  • Mean Absolute Error (MAE)
  • Root Mean Squared Error (RMSE)
  • Rยฒ Score

๐Ÿ“‰ Final Results

  • Random Forest delivered highest accuracy
  • EV range & efficiency strongly influence pricing
  • Model exported for chatbot and Streamlit app

๐Ÿงฉ Project Structure

EV-Price-Prediction/
โ”‚โ”€โ”€ README.md
โ”‚โ”€โ”€ ML Training Model.ipynb
โ”‚โ”€โ”€ ev_price_model.pkl
โ”‚โ”€โ”€ scaler.pkl
โ”‚โ”€โ”€ ev_sales_adoption.csv
โ”‚โ”€โ”€ CarPrice_Assignment.csv
โ”‚โ”€โ”€ frontend_react website.zip

๐Ÿง  Learning Outcomes

  • Data preprocessing & visualization
  • Regression model training & evaluation
  • Understanding feature correlations
  • Model saving & deployment preparation
  • GitHub documentation

About

Powering Tomorrow's Electric Revolution: EV Car Price Prediction

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published