- 📕 Table of Contents
- 🎈 Introduction
- ♻ Data Features
- 📝 Overview
- 📊 Exploratory Data Analysis
- 🔧 Installation
- 🚀 Usage
- 📝 Article
- 🤝 Contributing
- 🔏 License
- 📚 References
- 👤 Author
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.
- 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).
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.
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.
-
Clone this repository to your local machine.
git clone https://github.com/Elphoxa/FastAPI-Sepsis-Prediction-API.git
-
Navigate into the repository directory:
cd FastAPI-Sepsis-Prediction-API -
Create a virtual environment
python -m venv env
-
Activate the virtual environment
virtual_env/Scripts/activate
-
Install the required dependencies
pip install -r requirements.txt
- Navigate to
main.py - Run the FastAPI application:
uvicorn app:app --host 0.0.0.0 --port 8000
- Access the API endpoints to predict sepsis onset and integrate the API into existing healthcare systems.

Docker Image: The Docker image for the FastAPI Sepsis Prediction API is available on Docker Hub.
Read the article on this project Here
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.
This project is licensed under the MIT License. See the LICENSE file for details.
🤵 Efosa Dave Omosigho



