Electric vehicle range is one of the most important factors influencing EV adoption. In this project, machine learning models were developed to predict the electric driving range of vehicles using data from the Washington State Electric Vehicle Population Dataset.
The project covers the complete machine learning workflow, including data preprocessing, exploratory data analysis, feature engineering, model training, evaluation, and feature importance analysis.
The project includes:
- Data Cleaning
- Exploratory Data Analysis (EDA)
- Feature Engineering
- Linear Regression
- Random Forest Regression
- Model Evaluation
- Feature Importance Analysis
Dataset: Washington State Electric Vehicle Population Data
Target Variable:
- Electric Range
Features Used:
- Model Year
- Vehicle Make
- Vehicle Model
- Electric Vehicle Type
- CAFV Eligibility
- Other relevant vehicle information
- Python
- Pandas
- NumPy
- Matplotlib
- Seaborn
- Scikit-Learn
- Jupyter Notebook
- Load Dataset
- Handle Missing Values
- Remove Unnecessary Columns
- Perform Exploratory Data Analysis
- Convert Categorical Variables using One-Hot Encoding
- Split Data into Training and Testing Sets
- Train Linear Regression Model
- Train Random Forest Regressor
- Evaluate Model Performance
- Analyze Feature Importance
| Metric | Value |
|---|---|
| MAE | 9.62 |
| MSE | 336.54 |
| RMSE | 18.35 |
| R² Score | 0.9424 |
| Metric | Value |
|---|---|
| MAE | 0.38 |
| MSE | 10.46 |
| RMSE | 3.23 |
| R² Score | 0.9982 |
- Vehicle model year was identified as the most important factor affecting electric range.
- Electric vehicle type (BEV/PHEV) had a significant impact on prediction performance.
- Random Forest Regressor achieved the best performance with an R² score of 0.9982.
- Feature importance analysis showed that vehicle specifications contribute strongly to range prediction.
EV-RANGE-PREDECTOR/
│
├── data/
├── images/
├── notebooks/
│ └── ev_analysis.ipynb
├── README.md
└── requirements.txt
- Hyperparameter Tuning
- XGBoost Implementation
- Deployment using Streamlit
- Real-time EV Range Prediction Dashboard
Kishen Vetharth M
B.Tech Electronics and Communication Engineering (ECE)
Areas of Interest:
- Data Science
- Machine Learning
- Embedded Systems





