Welcome to the Student Affairs Analysis project! This repository contains a Jupyter Notebook that dives deep into the Quries_in_English.csv dataset, providing insights into student affairs processes at the University of Engineering and Technology (UET), Lahore. From obtaining Detailed Marks Certificates (DMCs) to degree issuance, fee structures, and hostel inquiries, this project uncovers patterns in student queries. Additionally, it leverages Word2Vec and GloVe models to explore semantic relationships in the dataset, paving the way for applications like a UET chatbot or knowledge base.
This project aims to:
- Analyze student queries to identify common concerns (e.g., DMC issuance, degree applications, hostel allotments).
- Visualize key metrics like fees and processing times to streamline administrative understanding.
- Use NLP models (Word2Vec and GloVe) to explore semantic similarities, supporting future chatbot development.
- Provide a foundation for improving student services at UET through data-driven insights.
The dataset (Quries_in_English.csv) contains questions and answers related to student affairs at UET, Lahore. It covers topics such as:
- DMC/Transcript: Procedures, fees, and documents for obtaining Detailed Marks Certificates.
- Degree: Application processes, fees, and timelines for degree issuance.
- Hostel: Allotment, fees, and facilities.
- Admission: Entry tests, merit lists, and document requirements.
- Fees: Payment methods, challans, and refund policies.
- Grades/CGPA: Minimum requirements and grade impacts.
- Certificates: Bonafide, percentage equivalence, and provisional certificates.
- Clearance: Departmental and dues clearance processes.
The dataset is a CSV file with two columns: Questions and Answers. It includes detailed procedural information and is ideal for both statistical analysis and NLP tasks.
- Python 3.9
-
Clone the Repository:
git clone https://github.com/anonduke/EmbeddingClusteringVectorizationWorkshop.git
-
Set Up a Virtual Environment (optional but recommended):
python -m venv .venv On Windows: .venv\Scripts\activate
-
Install Dependencies:
pip install -r requirements.txt
-
Download NLTK Data:
import nltk nltk.download('punkt')
-
Download GloVe Embeddings:
- Download the
glove.6B.50d.txtfile from GloVe's official site or another source. - Place it in a
glove.6Bfolder in the project directory.
- Download the
-
Place the Dataset:
- Ensure
Quries_in_English.csvis in thedatafolder of the project directory.
- Ensure
-
Run the Notebook:
jupyter notebook Student_Affairs_Analysis.ipynb
The Jupyter Notebook (EmbeddingClusteringVectorizationWorkshop.ipynb) is organized as follows:
-
Importing Libraries:
- Loads
pandas,matplotlib,seaborn,gensim, andnltkfor data processing and visualization.
- Loads
-
Loading and Preprocessing Data:
- Reads the CSV file and cleans it by removing empty rows, standardizing column names, and normalizing text.
-
Categorizing Queries:
- Categorizes questions into groups (e.g., DMC/Transcript, Degree, Hostel) using keyword-based rules.
- Visualizes category frequencies with a bar plot.
-
Analyzing Fee Structures:
- Extracts fee amounts using regex and visualizes their distribution across categories with a box plot.
-
Processing Times Analysis:
- Extracts processing times (in days) and visualizes them with a bar plot.
-
Document Requirements Analysis:
- Identifies common documents required for processes and visualizes the top 10 with a bar plot.
-
NLP Analysis with Word2Vec and GloVe:
- Trains a Word2Vec model (Skip-gram) on the dataset to find semantic similarities (e.g., words similar to "DMC").
- Loads pretrained GloVe embeddings (50d) to compare similarities.
- Evaluates similarity for domain-specific word pairs (e.g., "dmc-form", "challan-fee").
- Compares Word2Vec and GloVe performance in a table.
-
Interesting Fact:
- Highlights the most frequently required document (e.g., DMC form).
-
Conclusion:
- Summarizes findings and suggests extensions for further analysis.
- Query Distribution: DMC/Transcript and Degree-related queries dominate, reflecting their importance in student affairs.
- Fee Insights: Fees range from Rs. 300 (incomplete DMC) to Rs. 10,000 (loan clearance for final DMC). The box plot reveals outliers in certain categories.
- Processing Times: Most processes (e.g., DMC, certificates) take 3-4 days, while degrees require 40 days.
- Document Requirements: The DMC form is the most frequently required document, appearing in multiple processes.
- NLP Insights:
- Word2Vec (Skip-gram) captures domain-specific relationships well (e.g., "dmc" is highly similar to "form" with a score of 0.959).
- GloVe struggles with niche terms like "dmc" due to its general-purpose vocabulary but performs well for common terms like "student-account" (score: 0.427).
- Word2Vec is better suited for a UET-specific chatbot due to its ability to learn from the dataset directly.
The notebook includes an NLP analysis to explore semantic relationships in the dataset, useful for building a chatbot or knowledge base:
- Word2Vec (Skip-gram): Trained on the dataset to capture context-specific word relationships. For example, "dmc" is closely related to "form" (0.959) and "fee" (0.945).
- GloVe (50d): Uses pretrained embeddings to compare general-purpose word similarities. It performs less effectively for UET-specific terms like "dmc" but is robust for broader terms.
- Comparison: A table compares similarity scores for word pairs (e.g., "dmc-form", "challan-fee"). Word2Vec outperforms GloVe for this dataset due to its domain-specific training.