Skip to content

This repository keeps track and progress of my projects in machine learning, natural language processing, deep learning, etc

Notifications You must be signed in to change notification settings

Irene-Busah/AI-projects

Repository files navigation

COMPLETED PROJECTS

1. πŸ₯ Predicting Medical Condition from Patient Diagnosis or Review

AI-powered NLP model to classify patient reviews and diagnoses into medical conditions

Medical Condition Prediction

πŸš€ Project Overview

Patients often describe their symptoms or medication experiences in text form. This project uses Natural Language Processing (NLP) and Machine Learning to classify these reviews/diagnoses into medical conditions (e.g., Diabetes, Hypertension, Depression).

✨ Key Features

βœ… Text Preprocessing: Tokenization, Lemmatization, Stopword Removal
βœ… Feature Engineering: TF-IDF, Word Embeddings

βœ… ML Models: Logistic Regression, Passive Aggressive Classifier, MultinomialNB for Text Classification
βœ… Evaluation Metrics: Accuracy, Confusion Matrix
βœ… Deployment: Streamlit Web App for real-time prediction


πŸ“Š Tech Stack

  • Language: Python
  • Libraries: Pandas, Scikit-Learn, SpaCy, NLTK
  • Machine Learning Models: Logistic Regression, Random Forest, LSTM, BERT
  • Deployment: Streamlit Web App

πŸ“Œ Project Links & Resources

Resource Link
πŸ”— GitHub Repository GitHub Repo
πŸ““ Google Colab Notebook Colab Notebook
πŸ† Demo Web App Streamlit App

πŸ” How It Works

1️⃣ Data Preprocessing

  • Remove special characters, stopwords, and punctuation
  • Apply lemmatization using spaCy
  • Convert text into numerical vectors using TF-IDF

2️⃣ Model Training

  • Baseline Model: TF-IDF + Logistic Regression (benchmark model)
  • Advanced Model: BERT-based Transformer for text classification

3️⃣ Evaluation Metrics

  • Accuracy: 95%
  • Confusion Matrix

4️⃣ Deployment

  • Streamlit Web App for real-time predictions

πŸ“Š Sample Predictions

Review Text Predicted Condition
"I have severe headaches and dizziness daily." Migraine
"My sugar levels are high even after taking insulin." Diabetes
"Feeling sad and hopeless for months." Depression
"Blood pressure spikes every morning." Hypertension

Releases

No releases published

Packages

No packages published