(Research Project) "A "Streamlit-based application for predicting Perceived Stress Scale (PSS) scores using machine learning models."
This project is a machine learning application designed to predict Perceived Stress Scale (PSS) scores using various behavioral, psychological, and lifestyle features.
- Predict your stress levels based on factors like personality, sleep, and activity data.
- Streamlit-powered user interface for easy input and real-time predictions.
- Machine Learning Model: Trained on a dataset including personality traits, sleep metrics, and mobility data to accurately predict PSS scores.
- Interactive UI: User-friendly interface built with Streamlit for effortless data entry and stress prediction.
- Customizable Predictions: Input key features like Openness, Conscientiousness, sleep duration, and more for personalized predictions.
- API Ready: Integrates seamlessly with larger systems or functions as a personal stress tracking application.
The project utilizes a dataset encompassing the following features:
- Personality Traits: Openness, Conscientiousness, Extraversion, Agreeableness, Neuroticism
- Sleep Metrics: Sleep time, Wake time, Sleep duration
- Other Features: Skin conductance, Mobility radius, and others
- Python 3.7+
- Libraries: pandas, numpy, scikit-learn, joblib, streamlit
-
Clone the repository:
git clone [https://github.com/yourusername/pss-score-prediction.git](https://github.com/yourusername/pss-score-prediction.git) cd pss-score-prediction -
Install required dependencies:
pip install -r requirements.txt
-
Run the Streamlit app:
streamlit run app.py
- Open the app in your browser (URL: http://localhost:8501).
- Enter feature values using the provided sliders or input boxes.
- Click the "Predict" button to see your predicted PSS score.
The machine learning model was chosen after evaluating multiple algorithms. The best-performing model was trained and saved using joblib. It predicts PSS scores based on user-provided data.
A demo of the application is available. (Link to be added if available)
Created by Ranjan.
This project is licensed under the MIT License.
