CIS_6005_Project

🧠 Personality Predictor - AI Model

A machine learning application that predicts personality types (Introvert/Extrovert) based on behavioral patterns with 96.9% accuracy.

🌐 Live Application

πŸš€ Try the Live App

Note: The web application is now live at the root URL above. Click the link to access the interactive personality predictor!

✨ Features

🎯 How It Works

The application analyzes 7 key behavioral patterns:

  1. Time Spent Alone (hours per day)
  2. Social Event Attendance (per month)
  3. Going Outside (times per week)
  4. Friends Circle Size
  5. Post Frequency (per week)
  6. Stage Fear (Yes/No)
  7. Drained After Socializing (Yes/No)

Based on these inputs, the AI model predicts whether you’re an Introvert or Extrovert with a confidence score.

πŸš€ Quick Start

Option 1: Use the Live App

Simply visit https://samuux23.github.io/CI_project/ and start predicting!

Option 2: Run Locally

  1. Clone the repository
    git clone https://github.com/Samuux23/CI_project.git
    cd CI_project
    
  2. Static HTML App (Recommended)
    • Open webapp/index.html in your web browser
    • No server setup required!
  3. Flask App (Single File)
    cd webapp
    pip install -r requirements_single_app.txt
    python personality_predictor_app.py
    # Open: http://localhost:5000
    
  4. Windows Quick Start
    • Double-click webapp/start_app.bat

πŸ“Š Model Performance

πŸ—οΈ Project Structure

CIS_6005/
β”œβ”€β”€ backend/                      # πŸ”§ Backend API Services
β”‚   β”œβ”€β”€ main.py                  # FastAPI backend server
β”‚   β”œβ”€β”€ requirements.txt         # Backend dependencies
β”‚   └── requirements_simple.txt  # Simplified dependencies
β”œβ”€β”€ frontend/                    # 🎨 React Frontend Application
β”‚   β”œβ”€β”€ package.json            # Node.js dependencies
β”‚   β”œβ”€β”€ public/                 # Static assets
β”‚   └── src/                    # React source code
β”œβ”€β”€ webapp/                      # 🌐 Web Applications Folder
β”‚   β”œβ”€β”€ index.html              # Static web app (GitHub Pages)
β”‚   β”œβ”€β”€ personality_predictor_app.py # Flask version (single file)
β”‚   └── README.md               # Web app documentation
β”œβ”€β”€ Final_Code.py               # 🧠 Complete ML Pipeline
β”œβ”€β”€ requirements.txt            # Python dependencies
β”œβ”€β”€ best_comprehensive_model.pkl # Trained model
β”œβ”€β”€ preprocessor_comprehensive.pkl # Data preprocessor
β”œβ”€β”€ train.csv                   # Training dataset
β”œβ”€β”€ test.csv                    # Test dataset
β”œβ”€β”€ README.md                   # This file
└── .github/workflows/          # GitHub Actions
    └── streamlit-deploy.yml    # Deployment workflow

🎨 Technologies Used

πŸ“ˆ Model Training

The model was trained using:

πŸ”§ Development

🌐 Web Applications (in webapp/ folder)

πŸ“– Detailed Documentation: See webapp/README.md for comprehensive guide

The webapp/index.html file contains a complete static version that:

Flask Version (Single File)

The webapp/personality_predictor_app.py provides:

πŸš€ Deployment

GitHub Pages (Current)

Streamlit Cloud (Alternative)

πŸ“ Usage Examples

Extrovert Pattern

Introvert Pattern

🀝 Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Submit a pull request

πŸ“„ License

This project is open source and available under the MIT License.

πŸ™ Acknowledgments


🎯 Ready to discover your personality type? Click here to start!