File size: 1,410 Bytes
48b3884
 
 
 
 
 
d8f7fc7
48b3884
 
e606cee
 
 
48b3884
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d8f7fc7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
---
title: Pneumonia Detection AI
emoji: 🩺
colorFrom: blue
colorTo: indigo
sdk: gradio
sdk_version: "4.26.0"
app_file: app.py
pinned: false
secrets:
  - MONGODB_CONNECTION_STRING
  # HF_TOKEN is no longer needed here, it's a secret for the runner
---

# 🩺 Pneumonia Detection AI

This Space demonstrates a complete, end-to-end MLOps pipeline for medical image classification.

## ✨ Features

-   **AI-Powered Diagnosis:** Upload one or more chest X-ray images to get an instant classification of **Normal** or **Pneumonia**.
-   **Advanced Model:** Powered by a fine-tuned **Vision Transformer (ViT)** for high accuracy.
-   **Multi-Image Analysis:** The AI provides both an overall prediction for the patient and individual watermarked results for each image.
-   **Patient History:** All analyses are logged to a **MongoDB** database and can be reviewed.
-   **Sample Library:** Test the app instantly with a library of sample X-ray images.

## 🛠️ Tech Stack

-   **Model:** Google's `vit-base-patch16-224-in21k`
-   **MLOps Pipeline:** DVC & MLflow
-   **Frontend:** Gradio
-   **Database:** MongoDB Atlas
-   **Hosting:** Hugging Face Spaces

This project was developed by **Alyyan Ahmed** and **Munim Akbar**.

---
**Disclaimer:** This is a demo application for educational and portfolio purposes. It is **not a certified medical device** and should not be used for actual medical diagnosis.