An AI-powered web application that predicts Bengaluru house prices using Machine Learning. This project leverages Linear Regression, One-Hot Encoding, and an interactive Streamlit dashboard to estimate property prices based on user inputs such as location, total area, bedrooms, and bathrooms.
Real estate pricing is influenced by several factors including location, property size, and amenities. Estimating the correct market value manually can be difficult.
This project builds a Machine Learning model trained on the Bengaluru House Price Dataset to predict house prices instantly through a modern web interface.
The application follows a complete Data Science workflow:
- Data Collection
- Data Cleaning
- Exploratory Data Analysis
- Feature Engineering
- Machine Learning Model Training
- Interactive Visualization
- Web Deployment using Streamlit
β Predict Bengaluru House Prices
β AI-powered Property Valuation
β Interactive Streamlit Dashboard
β Beautiful Modern UI
β Real-time Price Prediction
β Property Summary
β Market Insights
β Price Distribution Analysis
β Area vs Price Visualization
β BHK Analysis
β Top Locations Analysis
β Download Prediction Report
β Prediction History
Dataset Name
Bengaluru House Price Dataset
The dataset contains thousands of Bengaluru property listings with information such as:
- Property Location
- Total Square Feet
- Number of Bedrooms
- Number of Bathrooms
- Property Price
- Area Information
The dataset undergoes several preprocessing steps before training.
- Removed unnecessary columns
- Removed missing values
- Converted area ranges into numeric values
- Extracted Bedrooms from Size column
- Removed invalid records
- Created Bedrooms feature
- Converted total_sqft into numerical values
- Grouped rare locations into "Other"
- Removed outliers using percentile method
- Location
- Total Square Feet
- Bathrooms
- Bedrooms
Target Variable
- Price (Lakhs βΉ)
The project uses
combined with
using a Scikit-Learn Pipeline.
Pipeline
OneHotEncoder
β
Linear Regression
β
Price Prediction
Dataset
β
βΌ
Data Cleaning
β
βΌ
Feature Engineering
β
βΌ
Outlier Removal
β
βΌ
Train Test Split
β
βΌ
One Hot Encoding
β
βΌ
Linear Regression
β
βΌ
Model Evaluation
β
βΌ
Prediction
β
βΌ
Streamlit Deployment
- Python
- Pandas
- NumPy
- Scikit-Learn
- Category Encoders
- Plotly
- Streamlit
House-Price-Prediction/
βββ app.py
βββ Bengaluru_House_Data.csv
βββ House Price Prediction Model.ipynb
βββ requirements.txt
βββ README.md
git clone https://github.com/shreya975/House-Price-Prediction.gitcd House-Price-Predictionpip install -r requirements.txtstreamlit run app.py(Add Screenshot Here)
(Add Screenshot Here)
(Add Screenshot Here)
The application includes
- Price Distribution
- Area vs Price Scatter Plot
- BHK Distribution
- Top Locations
- Feature Importance
- Property Score
- AI Confidence Meter
- Affordability Meter
Users provide
- π Location
- π Total Square Feet
- π Bedrooms
- π Bathrooms
The application predicts
π‘ Estimated House Price (βΉ Lakhs)
- Random Forest Regression
- XGBoost Regression
- LightGBM
- Deep Learning Models
- Google Maps Integration
- Property Recommendation System
- User Login
- Database Support
- API Deployment
- Mobile Responsive Version
The application is deployed using Streamlit Cloud
π https://house-price-prediction-cbrveafrrwmzxsneuttr6u.streamlit.app/