Skip to content

Latest commit

 

History

23 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

🏠 Smart Home Controller

πŸ“‹ Description

Smart Home Controller is a desktop application that translates natural human language into structured system commands. Built to overcome the limitations of rigid, rule-based parsers, this project integrates Azure Conversational Language Understanding (CLU) to process unstructured input and accurately extract user intents and entities.

Instead of relying on hard-coded keywords, the application uses machine learning and probabilistic inference to understand semantic context, manage positional invariance (free word order), and handle lexical variations (e.g., "Turn on the lights" vs. "Kill the lights"). The result is a robust, asynchronous dashboard that acts as the "brain" of a simulated smart home environment.

⭐ Key Features

  • AI-Driven Inference (Azure CLU): Maps natural language queries to structural JSON objects, extracting the Top Intent (e.g., LightOn) and Entities (e.g., Location: kitchen).
  • Semantic Post-Processing: Uses Regular Expressions (Regex) to automatically format raw CamelCase labels into human-readable text (e.g., converting TurnOnSmartLight to TURN ON SMART LIGHT).
  • Confidence Scoring Validation: Exposes the AI's confidence percentage for every inference, providing transparency into the model's decision-making process.
  • Contextual Command History: Maintains an active, chronological log of user inputs and system outputs during the session.

πŸ› οΈ Tech Stack

Component Technology
Language Python
Cloud & AI Engine Azure Cognitive Services (Conversational Language Understanding)
GUI Framework CustomTkinter

πŸ“‚ Project Structure

SmartHomeController/
β”œβ”€β”€ pictures/
β”‚   β”œβ”€β”€ logo.ico                        # Application window icon
β”‚   └── background.jpg                  # Dashboard decorative background
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ main.py                         # UI initialization and main application loop
β”‚   └── clu_logic.py                    # Azure API communication and regex formatting logic
β”œβ”€β”€ .gitignore                          
└── README.md                           

πŸ–ΌοΈ Screenshots

image Schema definition - Intents


image
Schema definition - Entities


image
Data labelling


image
Model performance


image
image
Testing the deployed model


The app's dashboard

image

image

image

image

image

image

Releases

Packages

Contributors

Languages