Used-car fair value evaluator and market analytics CLI, built with real vehicle sales data and machine learning.
Trust Wheel estimates whether a used car is fairly priced, forecasts how its value and mileage will change over the next few years, and visualizes broader market trends — all from a colorized command-line interface.
Originally built during the Columbia University Pre-College Program.
Trust Wheel grounds its predictions in the Maryland MVA's public vehicle sales dataset (2002–2026), then generates a realistic synthetic dataset of individual car listings (year, mileage, type, condition, price) calibrated against those real market price trends. Two machine learning models are trained on that data:
- A linear regression model that predicts a car's fair market price and projects its price and mileage 1–3 years into the future.
- A logistic regression classifier that labels a listing as "Good Value" or "Overpriced" relative to the market median.
The app reports full evaluation metrics for both models (accuracy, precision, recall, F1, R², MAE, RMSE) so the predictions aren't a black box.
- Vehicle valuation & mileage forecasting — enter a car's year, mileage, type, and condition to get its fair market price plus 1-year and 3-year price/mileage projections.
- Multi-currency support — view results in USD, AED, EUR, GBP, or CAD.
- Market analytics charts — depreciation curve (price vs. mileage), historical MVA sales volume (2002–2026), and average price by vehicle type & condition.
- Model evaluation dashboard — accuracy, precision, recall, F1 score, confusion matrix, R², MAE, and RMSE for full transparency into model performance.
- Python 3
- pandas / numpy — data loading and feature engineering
- scikit-learn — linear & logistic regression, train/test split, evaluation metrics
- matplotlib / seaborn — market visualizations
TrustWheel/
├── main.py # CLI entry point and menu loop
├── data_loader.py # Loads the real MVA dataset and synthesizes enriched listing data
├── models.py # ValuationEngine: trains the regression & classification models
├── visualization.py # Depreciation, historical trend, and category/condition charts
├── ascii_art.py # Terminal logo, colors, and helpers
├── used_cars.csv # Sample listings data
├── MVA_Vehicle_Sales_Counts_by_Month_for_Calendar_Year_2002...csv # Real Maryland MVA sales data
├── ZHVI_State.csv # Supplementary housing/market reference data
└── LICENSE
Prerequisites: Python 3.8+
# 1. Clone the repo
git clone https://github.com/TheExterminator67/TrustWheel.git
cd TrustWheel
# 2. Install dependencies
pip install -r requirements.txt
# 3. Run the app
python main.pyThe MVA dataset CSV must stay in the project folder —
data_loader.pyloads it directly from the working directory.
Trust Wheel runs as an interactive menu in your terminal:
--- TRUST WHEEL SERVICES MENU ---
[Current Currency Setting: USD]
[1] Estimate Car Valuation & Predict Future Mileage Impact
[2] Change Currency Setting (USD, AED, EUR, GBP, CAD)
[3] Explore Market Charts (Depreciation, MVA History, Category Specs)
[4] View Model Evaluation Metrics (Accuracy, Precision, Recall, F1, R²)
[0] Exit Application
Example — valuing a car: choose [1], then enter a model year (e.g. 2019), current mileage (e.g. 55000), vehicle type (Sedan, SUV, Truck, Luxury, or Sports), and condition (Excellent, Good, or Fair). Trust Wheel returns the estimated fair market price along with 1-year and 3-year mileage and price projections.
Option [4] in the menu reports how well the underlying models perform on held-out test data:
- Classification ("Good Value" classifier): accuracy, precision, recall, F1 score, and a full confusion matrix.
- Regression (price & mileage predictor): R² (variance explained), MAE, and RMSE.
Released under the MIT License.
Copyright © 2026 Sultan Alnuaimi
- Built during the Columbia University Pre-College Program.
- Vehicle sales data sourced from the Maryland Motor Vehicle Administration (MVA) public dataset.