A machine learning application built with Python that automatically classifies customer support messages into different categories.
This project uses Natrual Language Processing (NLP) and machine learning to analyse customer messages and predict the most appropriate ticket category. The application can classify messages into categories such as:
- Billing
- Account Access
- Technical Issue
- Cancellation
- General Enquiry
- Customer support messages are stored in a CSV dataset.
- TF-IDF vectorisation converts the text into numerical features that the machine learning model can understand.
- A Logestic Regression model is trained using the labelled customer support messages.
- The trained model predicts the categoryof new customer messages.
- The application displayes the predicted category and confidence score.
The project uses:
-
TF-IDF Vectorizer for converting text into numerical features and giving importance to useful words.
-
Logrstic Regression for classifying customer messages into predefined categories.
-
Scikit-learn for training and evaluating the machine learning model.
-
Joblib for saving and loading the trained model and vectoriser.
Install the required packages: pip install -r requirements.txt Train the machine learning model: python train_model.py Run the application: python app.py
##Example Example customer message: "The discount was not applied to my bill" The machine learning model analyses the message and predicts the most appropriate customer support category as seen below:

##Technologies Used
- Python
- Scikit-learn
- Pandas
- TF-IDF
- Logistic Regression
- Joblib
- Tkinter
Possible future improvements include:
-
Increasing the size of the training dataset
-
Improving classification accuaracy.
-
Usinf more advanced NLP models.
-
Deploying the application as a web application or API
Deborah