Skip to content

hemanth45-gudi/AI-Powered-Smart-House-Recommendation-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

39 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🏑 AI-Powered Smart House Recommendation System β€” Production ML Project

Python Status ML Backend AI License


πŸ“Œ Project Overview

The AI-Powered Smart House Recommendation System is a production-level machine learning system that recommends houses based on user preferences such as price range, location, and bedroom requirements.

The system uses a Hybrid Recommendation Engine (Content-Based + Collaborative Filtering) with strict filtering, ranking, and explainable AI to deliver personalized and intelligent recommendations. It demonstrates real-world ML pipeline design, backend architecture, and scalable recommendation systems.


Architecture

graph TD
    Client[Client App] -->|REST/WS| Backend[Backend API]
    Backend --> DB[(PostgreSQL/SQLite)]
    Backend -->|HTTP| ML[ML Engine API]
    ML -->|Trains| Models[Model Weights / Registry]
    ML --> DB

Loading

⭐ Key Features

βœ… Hybrid recommendation system (Content + Collaborative filtering)

βœ… Strict preference-based filtering (price, location, bedrooms)

βœ… Explainable AI (why each house is recommended)

βœ… Real-time recommendation ranking

βœ… Model training and retraining pipeline

βœ… REST API backend (FastAPI)

βœ… Database integration for houses and users

βœ… Performance monitoring and logging

βœ… Production-ready architecture


πŸ— System Architecture

User β†’ Mobile/Web Client β†’ FastAPI Backend β†’ ML Recommendation Engine β†’ Database β†’ Ranked Results

Components

  • User Interface β€” sends preferences and requests
  • Backend API β€” processes requests and handles data
  • ML Engine β€” filters and ranks houses
  • Database β€” stores houses, users, and interactions
  • Recommendation Output β€” returns ranked results

🧠 Machine Learning Pipeline

  1. Data collection and preprocessing
  2. Feature extraction (price, location, bedrooms, user behavior)
  3. Content-based similarity calculation
  4. Collaborative filtering using interaction data
  5. Hybrid score computation and ranking
  6. Model evaluation (Precision, Recall, F1, Accuracy)
  7. Explainable AI output generation

Recommendation Algorithm

  • Content-based filtering β†’ feature similarity matching
  • Collaborative filtering β†’ behavior-based learning
  • Hybrid ranking β†’ combined recommendation score

πŸ”„ System Workflow

User Request β†’ Filter Houses β†’ ML Ranking β†’ Score Normalization β†’ Top Recommendations

Steps:

  • User provides preferences
  • System filters matching houses
  • ML model ranks houses
  • Top results returned with explanation

πŸ“Š Performance Metrics

  • Average API response time: ~100–200 ms
  • Model training time: few seconds (dataset dependent)
  • Recommendation ranking complexity: O(n log n)
  • Scalable architecture for large datasets

πŸ§ͺ Testing & Validation

  • Unit testing for API endpoints
  • Input validation and error handling
  • Data validation checks
  • Secure request handling

πŸš€ Deployment

Run with Docker (Production Setup)

docker build -t house-recommendation .
docker run -p 8000:8000 house-recommendation

Local Development

pip install -r requirements.txt
uvicorn apps.backend_api.main:app --reload
Backend : python -m uvicorn apps.backend_api.main:app --reload --port 8000
ML Engine : python -m uvicorn apps.ml_engine.main:app --reload --port 8001

Open API Docs:

http://localhost:8000/docs
http://localhost:8001/docs

βš™οΈ Tech Stack

  • Python
  • FastAPI
  • Scikit-learn
  • Pandas / NumPy
  • SQLite / SQL Database
  • REST API Architecture
  • Docker Deployment
  • Machine Learning Pipeline

πŸ“‚ Project Structure

apps/
 β”œβ”€β”€ backend_api/        # FastAPI backend and routes
 β”œβ”€β”€ ml_engine/          # Recommendation engine and training
 └── mobile_app/         # Frontend client (optional)

docs/                    # Documentation
infra/                   # Deployment configuration
models/                  # Saved ML models


πŸ“Έ Demo

🏑 House Recommendation API

Personalized house recommendations based on user preferences.

AI-Powered-Smart-House-Recommendation-System AI-Powered-Smart-House-Recommendation-System


βš™οΈ ML Recommendation Engine

Hybrid recommendation system generating ranked results with explainable AI.

AI-Powered-Smart-House-Recommendation-System


πŸ‘€ User Preferences

User sets preferences like price range, location, and bedrooms.

AI-Powered-Smart-House-Recommendation-System AI-Powered-Smart-House-Recommendation-System


πŸ“Š Output

System analytics including user activity and performance metrics.

AI-Powered-Smart-House-Recommendation-System AI-Powered-Smart-House-Recommendation-System


🎯 Applications

  • Real estate recommendation platforms
  • Personalized search systems
  • E-commerce recommendation engines
  • Intelligent decision support systems

⚠️ Limitations

  • Performance depends on available user data
  • Cold-start problem for new users
  • Recommendation quality improves with more interactions

πŸš€ Future Improvements

  • Cloud deployment (AWS / GCP)
  • Deep learning recommendation models
  • Real-time analytics dashboard
  • Large-scale distributed training

Output Links


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

Hemanth Gudi Computer Science Student | Full Stack Developer | Machine Learning Enthusiast

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors