Skip to content

A FastAPI-based machine learning API for sepsis prediction, aiding in early detection and intervention. Real-time predictions empower healthcare professionals for timely critical care management. Easy integration for healthcare applications.

License

Notifications You must be signed in to change notification settings

Elphoxa/FastAPI-Sepsis-Prediction-API

Repository files navigation

Sepsis Image

FastAPI-Sepsis-Prediction-API

📕 Table of Contents

🎈 Introduction

In the fast-paced world of healthcare, every second counts. Timely intervention can mean the difference between life and death, especially when it comes to critical conditions like sepsis. Our FastAPI Sepsis Prediction project aims to harness the power of AI to transform patient care and save lives by predicting sepsis onset in real-time.

♻ Data Features

  • ID: Unique patient identification number.
  • PRG: Plasma glucose level (mmol/L).
  • PL: Blood work result 1 (mu U/ml).
  • PR: Blood pressure (mm Hg).
  • SK: Blood work result 2 (mm).
  • TS: Blood work result 3 (mu U/ml).
  • M11: Body mass index (weight in kg/(height in m)²).
  • BD2: Blood work result 4 (mu U/ml).
  • Age: Patient’s age (years).
  • Insurance: Indication of whether the patient holds a valid insurance card.
  • Sepsis: Classification indicating whether the patient has sepsis (Positive) or not (Negative).

📝 Overview

This project utilizes machine learning algorithms and FastAPI to predict sepsis onset in real-time. By analyzing patient data, our API provides clinicians with early warnings of potential sepsis occurrences, enabling proactive intervention and improved patient outcomes.

📊 Exploratory Data Analysis

Explore the dataset used for training the machine learning model. View data visualizations and insights gained from the analysis in the Exploratory Data Analysis notebook.

alt text alt text alt text

🔧 Installation

  1. Clone this repository to your local machine.

    git clone https://github.com/Elphoxa/FastAPI-Sepsis-Prediction-API.git
  2. Navigate into the repository directory:

    cd FastAPI-Sepsis-Prediction-API
  3. Create a virtual environment

    python -m venv env
  4. Activate the virtual environment

    virtual_env/Scripts/activate
  5. Install the required dependencies

    pip install -r requirements.txt

🚀 Usage

  1. Navigate to main.py
  2. Run the FastAPI application:
    uvicorn app:app --host 0.0.0.0 --port 8000
  3. Access the API endpoints to predict sepsis onset and integrate the API into existing healthcare systems. alt text alt text

Docker Image: The Docker image for the FastAPI Sepsis Prediction API is available on Docker Hub.

📝 Article

Read the article on this project Here

🤝 Contributing

If you'd like to contribute to this project, please follow these steps:

  • Fork the repository.
  • Create a new branch (git checkout -b feature/your-feature).
  • Make your changes.
  • Commit your changes (git commit -am 'Add some feature').
  • Push to the branch (git push origin feature/your-feature).
  • Create a new Pull Request.

🔏 License

This project is licensed under the MIT License. See the LICENSE file for details.

📚 References

👤 AUTHOR

🤵 Efosa Dave Omosigho

About

A FastAPI-based machine learning API for sepsis prediction, aiding in early detection and intervention. Real-time predictions empower healthcare professionals for timely critical care management. Easy integration for healthcare applications.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages