# AI-Powered-Sleep-Stage-Classification **Repository Path**: carl_luo/AI-Powered-Sleep-Stage-Classification ## Basic Information - **Project Name**: AI-Powered-Sleep-Stage-Classification - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-02-04 - **Last Updated**: 2026-02-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # ๐Ÿง  AI-Powered Sleep Stage Classification Using Snoring Audio This project detects a person's sleep stage (e.g., Awake, DeepSleep) by analyzing snoring audio using machine learning. It features a trained model and an interactive web interface built with Streamlit. ## ๐Ÿ” Problem Statement Manual sleep monitoring is time-consuming and often expensive. This project aims to simplify and automate sleep stage detection through AI using only snoring audio. ## ๐ŸŽฏ Motivation Sleep health is critical. By enabling affordable, contactless, and accessible analysis via audio, we empower people to track their sleep quality from home. ## ๐Ÿ—๏ธ Architecture Overview - ๐Ÿ“ Dataset: Labeled snoring audio samples (Awake = 0, DeepSleep = 1) - ๐ŸŽš๏ธ Preprocessing: Convert and extract MFCC (Mel-Frequency Cepstral Coefficients) - ๐Ÿง  Model: RandomForestClassifier trained on extracted features - ๐ŸŒ UI: Streamlit frontend for uploading and predicting sleep stages ## ๐Ÿ› ๏ธ Features - Upload `.wav` audio of snoring - Display waveform and MFCC plots - Predict sleep stage instantly - Clean, modern UI with emoji animation ๐ŸŽง ## ๐Ÿ“ฆ Tech Stack - Python, Librosa, Scikit-learn, Pydub - Streamlit (for web UI) - GitHub (version control) ## ๐Ÿงช Run Locally ```bash git clone https://github.com/VISHAL-RAJA-25/Sleep-Stage-Classification cd Sleep-Stage-Classification streamlit run app.py