Skip to content

shreya975/House-Price-Prediction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

11 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🏑 House Price Prediction using Machine Learning

Python Streamlit Scikit Learn Pandas Plotly License

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.


🌐 Live Demo

πŸš€ Click below to use the application


πŸ“Œ Project Overview

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

✨ Features

βœ… 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 Information

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

🧹 Data Preprocessing

The dataset undergoes several preprocessing steps before training.

Data Cleaning

  • Removed unnecessary columns
  • Removed missing values
  • Converted area ranges into numeric values
  • Extracted Bedrooms from Size column
  • Removed invalid records

Feature Engineering

  • Created Bedrooms feature
  • Converted total_sqft into numerical values
  • Grouped rare locations into "Other"
  • Removed outliers using percentile method

Final Features

  • Location
  • Total Square Feet
  • Bathrooms
  • Bedrooms

Target Variable

  • Price (Lakhs β‚Ή)

πŸ€– Machine Learning Model

The project uses

Linear Regression

combined with

One-Hot Encoding

using a Scikit-Learn Pipeline.

Pipeline

OneHotEncoder
        ↓
Linear Regression
        ↓
Price Prediction

πŸ“ˆ Project Workflow

Dataset
   β”‚
   β–Ό
Data Cleaning
   β”‚
   β–Ό
Feature Engineering
   β”‚
   β–Ό
Outlier Removal
   β”‚
   β–Ό
Train Test Split
   β”‚
   β–Ό
One Hot Encoding
   β”‚
   β–Ό
Linear Regression
   β”‚
   β–Ό
Model Evaluation
   β”‚
   β–Ό
Prediction
   β”‚
   β–Ό
Streamlit Deployment

πŸ› οΈ Tech Stack

Programming Language

  • Python

Libraries

  • Pandas
  • NumPy
  • Scikit-Learn
  • Category Encoders
  • Plotly
  • Streamlit

πŸ“‚ Project Structure

House-Price-Prediction/

│── app.py
│── Bengaluru_House_Data.csv
│── House Price Prediction Model.ipynb
│── requirements.txt
│── README.md

βš™οΈ Installation

Clone Repository

git clone https://github.com/shreya975/House-Price-Prediction.git

Move into Project

cd House-Price-Prediction

Install Requirements

pip install -r requirements.txt

Run Streamlit

streamlit run app.py

πŸ’» Application Screens

Home Page

(Add Screenshot Here)


Prediction Dashboard

(Add Screenshot Here)


Analytics Dashboard

(Add Screenshot Here)


πŸ“Š Visualizations

The application includes

  • Price Distribution
  • Area vs Price Scatter Plot
  • BHK Distribution
  • Top Locations
  • Feature Importance
  • Property Score
  • AI Confidence Meter
  • Affordability Meter

🎯 Model Inputs

Users provide

  • πŸ“ Location
  • πŸ“ Total Square Feet
  • πŸ› Bedrooms
  • πŸ› Bathrooms

The application predicts

🏑 Estimated House Price (β‚Ή Lakhs)


πŸš€ Future Improvements

  • Random Forest Regression
  • XGBoost Regression
  • LightGBM
  • Deep Learning Models
  • Google Maps Integration
  • Property Recommendation System
  • User Login
  • Database Support
  • API Deployment
  • Mobile Responsive Version

πŸ“ˆ Deployment

The application is deployed using Streamlit Cloud

Live Website

πŸ‘‰ https://house-price-prediction-cbrveafrrwmzxsneuttr6u.streamlit.app/


πŸ‘©β€πŸ’» Author

Shreya Mahajan

GitHub

https://github.com/shreya975

LinkedIn

https://www.linkedin.com/in/shreya-mahajan-b38b28385/

About

AI-powered House Price Prediction using Python, Scikit-Learn, Linear Regression, Pandas, Plotly, and Streamlit with an interactive web application.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors