Skip to main content
QUICK REVIEW

[Paper Review] Second Hand Price Prediction for Tesla Vehicles

Sayed Erfan Arefin|arXiv (Cornell University)|Jan 11, 2021
Energy, Environment, and Transportation PoliciesEnergy3 references6 citations
TL;DR

This paper proposes a second-hand Tesla vehicle price prediction system using machine learning, leveraging data from used car websites (e.g., cars.com, truecar.com) collected via web scraping. It implements a boosted decision tree regression model in Microsoft Azure ML Studio, achieving the lowest RMSE (5,849.8) among tested algorithms, and deploys the model as a REST API for integration into a full-stack MERN-based prediction system.

ABSTRACT

The Tesla vehicles became very popular in the car industry as it was affordable in the consumer market and it left no carbon footprint. Due to the large decline in the stock prices of Tesla Inc. at the beginning of 2019, Tesla owners started selling their vehicles in the used car market. These used car prices depended on attributes such as the model of the vehicle, year of production, miles driven, and the battery used for the vehicle. Prices were different for a specific vehicle in different months. In this paper, it is discussed how a machine learning technique is being implemented in order to develop a second-hand Teslavehicle price prediction system. To reach this goal, different machine learning techniques such as decision trees, support vector machine (SVM), random forest, and deep learning were investigated and finally was implemented with boosted decision tree regression. I the future, it is intended to use a more sophisticated algorithm for better accuracy.

Motivation & Objective

  • To address the challenge of predicting second-hand Tesla vehicle prices amid declining stock prices and rising used market demand in early 2019.
  • To identify the most accurate machine learning model for predicting used Tesla prices based on key attributes like model, year, battery, and miles.
  • To develop and deploy a functional web service API for real-time price prediction using the best-performing model.
  • To integrate the prediction model into a full-stack MERN application using VIN input for vehicle identification.

Proposed method

  • Collected 1,600 used Tesla vehicle listings from three major U.S. used car websites (cars.com, truecar.com, autotrader.com) using the import.io web scraping tool.
  • Preprocessed and structured the data into a labeled dataset with attributes: Model, Year, Battery, Price, Miles, and Date (for temporal variation).
  • Evaluated five machine learning techniques: Deep Learning, Support Vector Machine, Random Forest, Decision Tree, and Boosted Decision Tree Regression.
  • Selected the Boosted Decision Tree Regression model based on its lowest Root Mean Squared Error (RMSE) of 5,849.8 on the test set.
  • Trained the final model in Microsoft Azure Machine Learning Studio and deployed it as a RESTful web service with input parameters including model, year, battery, miles, and date.
  • Integrated the deployed web service into a full-stack MERN (MongoDB, Express.js, React.js, Node.js) application, using VIN to extract vehicle details and retrieve predicted prices.

Experimental results

Research questions

  • RQ1Which machine learning algorithm yields the most accurate second-hand price prediction for Tesla vehicles based on model, year, battery, and mileage?
  • RQ2How does temporal variation (e.g., January vs. March 2019) affect used Tesla vehicle pricing, and can it be effectively modeled?
  • RQ3Can a trained machine learning model be successfully deployed as a scalable web service for real-time price prediction in a production environment?
  • RQ4How does the integration of VIN-based vehicle identification enhance the usability and accuracy of the prediction system?

Key findings

  • The Boosted Decision Tree Regression model achieved the lowest RMSE of 5,849.8, outperforming other models including Deep Learning (6,110.2) and Support Vector Machine (10,108.7).
  • The model demonstrated strong generalization, with test results showing a close alignment between predicted and actual prices, as validated via API testing using Postman.
  • The web service API was successfully deployed and tested, returning accurate predictions in JSON format, such as a predicted price of $81,789.66 for a 2017 Model X with 19,000 miles.
  • The final system, built on the MERN stack, successfully ingests VIN data to extract vehicle attributes and deliver real-time price predictions through the deployed ML model.
  • The study confirms that temporal factors (e.g., month of sale) significantly influence used Tesla pricing and must be included as a feature for accurate prediction.
  • The system's architecture enables future scalability and integration with additional data sources or more sophisticated models to further improve accuracy.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.