This is a Streamlit application that predicts a vehicle's fuel efficiency (Miles Per Gallon) based on its specifications using a TensorFlow deep learning model.
The application uses a neural network model built with TensorFlow to predict the MPG of vehicles based on various specifications such as:
- Number of cylinders
- Displacement
- Horsepower
- Weight
- Acceleration
- Model year
- Origin (USA, Europe, Asia)
The model is trained on the Auto MPG dataset from the UCI Machine Learning Repository, which includes data from vehicles from the 1970s and early 1980s.
- MPG Prediction: Input vehicle specifications and get an estimated MPG
- Model Performance: View performance metrics like MAE and MSE
- Data Exploration: Explore the dataset with visualizations
- Feature Importance: Understand which features contribute most to the prediction
- Comparison: See how your vehicle compares to similar vehicles in the dataset
The application is built using:
- Python: Core programming language
- Streamlit: Web application framework
- TensorFlow/Keras: Deep learning library for model building
- Pandas: Data manipulation
- Matplotlib/Seaborn: Data visualization
- NumPy: Numerical operations
- Navigate to the "Predict MPG" page
- Enter the specifications of your vehicle
- Click "Predict MPG" to get the estimated fuel efficiency
- Explore the visualizations to understand the prediction
The model uses a sequential neural network with:
- Input layer of 7 features
- Two hidden layers with 64 neurons each and ReLU activation
- Output layer with a single neuron for MPG prediction
- Support for more modern vehicle specifications
- Integration with real-time vehicle databases
- Additional metrics such as carbon emissions estimates
- Support for different regional fuel efficiency standards (MPG vs. L/100km)