Skip to content

Machine learning model to predict emergency room outcomes using MIMIC-IV-ED data.

Notifications You must be signed in to change notification settings

gauravrmore007/Predictive-Analysis

Repository files navigation

πŸ₯ Predictive-Analysis: Emergency Department Outcome Prediction

This project predicts Emergency Department (ED) outcomes using machine learning (ML) models on data from MIMIC-IV-ED.

We used demographic info, vital signs, and chief complaints to predict outcomes like hospital admission, discharge, or mortality. The models help with early triage decisions and resource planning.


πŸ“Š Problem Statement

Emergency Departments are resource-constrained and need fast decisions. Using ML models trained on structured and unstructured data, we aim to:

  • Predict disposition (e.g., discharge, admit)
  • Estimate mortality risk
  • Improve triage support using early-available data

🧠 Data & Tools

  • Dataset: MIMIC-IV-ED v2.2 (PhysioNet)
  • Tools: Python 3, Google Colab
  • Libraries: Pandas, NumPy, Matplotlib, Plotly, Scikit-learn, XGBoost

πŸ§ͺ Features Used

  • Demographics: age, gender, race
  • Chief complaint (text, processed using NLP)
  • Vital signs: temperature, heart rate, BP, SpOβ‚‚, respiratory rate
  • Social factors: marital status, insurance, language
  • ED details: arrival method, triage acuity, length of stay

πŸ› οΈ ML Workflow

  1. Preprocessing

    • Filter ICD-10 cases only
    • Cleaned triage, vitals, and meds tables
    • Categorical encoding + scaling
    • NLP categorization of chief complaints (reduced to 19 groups)
  2. Modeling

    • Feature selection + PCA
    • K-Means clustering (4 clusters)
    • Classification models:
      • Logistic Regression
      • Decision Tree
      • XGBoost (best performer)
      • LLM (Me-LLaMA)
  3. Performance

    • Best AUC-ROC: 0.88
    • Evaluated with accuracy, precision, recall, F1-score

πŸ“Œ Key Insights

  • Chief Complaints + Vital Signs were the most predictive
  • XGBoost outperformed all baseline models
  • NLP helped convert free-text into structured inputs

πŸ“ Files in Repo

πŸ“¦ Predictive-Analysis β”œβ”€β”€ Clustering_and_Classification.ipynb # ML model and clustering β”œβ”€β”€ ED_exploratory_analysis.ipynb # EDA & preprocessing β”œβ”€β”€ Final Report.pdf # Detailed report └── README.md # Project summary


πŸ“¬ Contact

Gaurav More
πŸ“§ more.56@buckeyemail.osu.edu
πŸ”— LinkedIn


πŸ“Ž Data Sources

About

Machine learning model to predict emergency room outcomes using MIMIC-IV-ED data.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published