Skip to content

AsMetOP/Doccy-AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

7 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

DoccyAI Banner

๐Ÿฉบ DoccyAI

Multimodal Medical Assistant for Preliminary Health Assessments

Because getting a first opinion shouldn't require a waiting room.

Flutter FastAPI scikit-learn Docker HuggingFace License: MIT


๐Ÿ“– Overview

DoccyAI is a cross-platform mobile application that acts as a preliminary health assessment companion. Users describe their symptoms through a conversational interface, and DoccyAI uses a trained ML model to suggest possible conditions โ€” all without a single phone call to a clinic.

โš ๏ธ Disclaimer: DoccyAI is designed for preliminary, informational purposes only. It is not a substitute for professional medical advice, diagnosis, or treatment. Always consult a qualified healthcare provider.

The project bridges mobile-first UX (Flutter) with a Python ML backend (FastAPI + scikit-learn), packaged in Docker and deployed on HuggingFace Spaces.


โœจ Features

  • ๐Ÿ” Symptom-based Disease Prediction โ€” Logistic Regression model trained on curated symptomโ€“disease datasets
  • ๐Ÿ“ฑ Cross-platform Mobile App โ€” Flutter frontend supporting Android & iOS from a single codebase
  • โšก REST API Backend โ€” FastAPI backend with clean, auto-documented endpoints (/docs)
  • ๐Ÿณ Fully Containerised โ€” Docker setup for consistent local and production environments
  • ๐ŸŒ Cloud Deployed โ€” Live inference API hosted on HuggingFace Spaces
  • ๐Ÿ”„ CORS-Configured โ€” Secure cross-origin handling between the Flutter app and API

๐Ÿ—๏ธ Architecture

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                    Flutter App (Dart)                   โ”‚
โ”‚         Cross-platform Mobile UI (Android / iOS)        โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                         โ”‚ HTTP REST (JSON)
                         โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚              FastAPI Backend (Python)                   โ”‚
โ”‚     /predict  โ†’  Logistic Regression (.pkl model)       โ”‚
โ”‚     Auto-docs at /docs  |  CORS enabled                 โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                         โ”‚
            โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
            โ–ผ                         โ–ผ
     ๐Ÿณ Docker Container     ๐Ÿค— HuggingFace Spaces
     (Local Dev / Prod)       (Live Deployment)

๐Ÿง  ML Model

Property Details
Algorithm Logistic Regression (scikit-learn)
Input Binary symptom vector
Output Predicted disease label + confidence
Serialisation .pkl (Git LFS tracked)
Library Version scikit-learn == 1.5.2 (pinned)

Why Logistic Regression? It's interpretable, fast at inference, and performs surprisingly well on structured symptom-disease datasets โ€” a conscious choice of a model that a doctor could actually reason about, rather than a black-box neural net.


๐Ÿš€ Getting Started

Prerequisites

  • Flutter SDK โ‰ฅ 3.x
  • Python 3.9+
  • Docker (optional, for containerised setup)
  • Git LFS (for .pkl model files)
git lfs install
git clone https://github.com/AsMetOP/DoccyAI.git
cd DoccyAI

๐Ÿ Backend Setup (FastAPI)

cd backend

# Create and activate virtual environment
python -m venv venv
source venv/bin/activate        # Windows: venv\Scripts\activate

# Install dependencies
pip install -r requirements.txt

# Start the development server
uvicorn main:app --reload --host 0.0.0.0 --port 8000

API will be live at http://localhost:8000 Interactive docs at http://localhost:8000/docs


๐Ÿณ Docker Setup

cd backend
docker build -t doccyai-backend .
docker run -p 8000:8000 doccyai-backend

๐Ÿ“ฑ Flutter App Setup

cd frontend

# Fetch dependencies
flutter pub get

# Run on a connected device or emulator
flutter run

Update the API base URL in the app config to point to your local backend or the live HuggingFace endpoint.


๐Ÿ“ก API Reference

POST /predict

Accepts a list of symptoms and returns the predicted condition.

Request Body:

{
  "symptoms": ["headache", "fever", "fatigue"]
}

Response:

{
  "prediction": "Influenza",
  "confidence": 0.87
}

๐Ÿ“‚ Project Structure

DoccyAI/
โ”œโ”€โ”€ backend/
โ”‚   โ”œโ”€โ”€ main.py               # FastAPI app & CORS config
โ”‚   โ”œโ”€โ”€ model/
โ”‚   โ”‚   โ””โ”€โ”€ model.pkl         # Trained LR model (Git LFS)
โ”‚   โ”œโ”€โ”€ requirements.txt      # Pinned dependencies
โ”‚   โ””โ”€โ”€ Dockerfile
โ”‚
โ”œโ”€โ”€ frontend/
โ”‚   โ”œโ”€โ”€ lib/
โ”‚   โ”‚   โ”œโ”€โ”€ main.dart         # App entry point
โ”‚   โ”‚   โ”œโ”€โ”€ screens/          # UI screens
โ”‚   โ”‚   โ””โ”€โ”€ services/         # API service layer
โ”‚   โ””โ”€โ”€ pubspec.yaml
โ”‚
โ””โ”€โ”€ README.md

๐Ÿ‘ฅ Team

Contributor Role
Asmet Sahoo ML Engineer โ€” Model, FastAPI Backend, Docker, HuggingFace Deployment
Astha Upadhyay Database
Krish Agrawal Testing
Sneha Das Frontend Development

๐Ÿ› ๏ธ Tech Stack

Layer Technology
Mobile Frontend Flutter / Dart
ML Backend FastAPI + scikit-learn
ML Model Logistic Regression
Containerisation Docker
Cloud Deployment HuggingFace Spaces
Version Control Git + Git LFS

๐Ÿ”ฎ Roadmap

  • Add multimodal input (image + symptom text)
  • Expand disease coverage with a richer dataset
  • Add explainability layer (SHAP values per prediction)
  • Integrate appointment booking / doctor referral
  • Offline inference with on-device model (TFLite / ONNX)

๐Ÿ“„ License

This project is licensed under the MIT License.


Built with โค๏ธ by the DoccyAI team ยท KIIT University, Bhubaneswar

About

Multimodal Medical Assistant for Preliminary Health Assessment

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors