Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

🎓 Student Academic Stream Prediction System

Python Flask Scikit-Learn Pandas GitHub License

An end-to-end Machine Learning web application that analyzes student academic performance across multiple subjects to predict the most suitable educational stream (Science, Commerce/Arts, etc.) using a tuned Random Forest Classifier deployed via a Flask web server.


⚡ Project Overview

Choosing the right academic stream is a critical decision for students. This system leverages historical student marks data to build a predictive model. The workflow includes:

  1. Data Preprocessing & Feature Engineering: Cleaning marks datasets, merging categories (e.g., Commerce & Arts), one-hot encoding categorical features like gender, and applying Min-Max scaling across all core subjects.
  2. Model Training & Hyperparameter Tuning: Utilizing a RandomForestClassifier optimized via GridSearchCV to maximize prediction accuracy.
  3. Model Persistence: Saving the trained model using pickle (stream_predict_final.pkl).
  4. Web Deployment: A lightweight Flask application providing an intuitive web form for users to input grades and receive instant stream predictions.

📂 Project Structure

Student-Stream-Prediction/
│
├── app.py                      # Flask web application server
├── stream_predict_final.pkl    # Serialized/Trained Random Forest model
├── studentmarksheetupdated.xlsx# Historical student dataset
├── templates/
│   ├── index.html              # Input form interface
│   └── prediction_result.html  # Result rendering template
└── README.md                   # Project documentation


🛠️ Tech Stack & Libraries

  • Core Language: Python
  • Machine Learning: Scikit-learn (RandomForestClassifier, GridSearchCV, OneHotEncoder, MinMaxScaler, train/test splitting, metrics)
  • Data Processing: Pandas, NumPy
  • Backend & Web Framework: Flask, Jinja2 Templates
  • Model Serialization: Pickle

🚀 Getting Started & Local Setup

To run this application locally on your machine, follow these steps:

  1. Clone the repository:
git clone [https://github.com/Vighnesh1045/Student-Stream-Prediction.git](https://github.com/Vighnesh1045/Student-Stream-Prediction.git)
cd Student-Stream-Prediction
  1. Install required dependencies: Make sure you have Python installed, then install the necessary libraries:
pip install pandas scikit-learn flask openpyxl
  1. Verify Dataset & Model Paths: Ensure studentmarksheetupdated.xlsx and stream_predict_final.pkl are located in your project directory (or update the file paths inside app.py to match your local file layout).
  2. Run the Flask Application:
python app.py
  1. Access the App: Open your web browser and navigate to: http://127.0.0.1:5000/

📊 Model Performance & Features

  • Features Evaluated: Gender, Maths, Physics, Chemistry, English, Biology, Economics, History, and Civics.
  • Tuned Hyperparameters: Optimized via GridSearchCV assessing n_estimators, max_depth, and min_samples_split.
  • Evaluation Metrics: Evaluated using Accuracy Score, Confusion Matrix, Classification Report, and Feature Importance Rankings.

📫 Connect with Me


About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages