Bufang Yang†
Siyang Jiang†
Lilin Xu
Kaiwei Liu
Hai Li
Guoliang Xing
Hongkai Chen
Xiaofan Jiang
Zhenyu Yan‡
The Chinese University of Hong Kong Columbia University
We introduce DrHouse, a novel LLM-based multi-turn consultation virtual doctor system, which incorporates three significant contributions: 1) It utilizes sensor data from smart devices in the diagnosis process, enhancing accuracy and reliability. 2) DrHouse leverages continuously updating medical knowledge bases to ensure its model remains at diagnostic standard’s forefront. 3) DrHouse introduces a novel diagnostic algorithm that concurrently evaluates potential diseases and their likelihood, facilitating more nuanced and informed medical assessments. Through multi-turn interactions, DrHouse determines the next steps, such as accessing daily data from smart devices or requesting in-lab tests, and progressively refines its diagnoses.
DrHouse/
├─ checkpoints/
├─ data/
├─ exp_real/
├─ exp_simulation/
├─ prompt/
├─ src/
│ ├─ adaptive_retrieval/
│ ├─ baselines/
│ ├─ baseLLMs/
│ ├─ guideline_tree_retrieval/
│ ├─ simulation/
│ ├─ create_medical_database.py
│ ├─ eval_dialogues.py
│ ├─ main.py
│ ├─ semantic_filter.py
│ ├─ utils.py
├─ .gitignore
├─ environment.yml
├─ README.md
├─ requirements.txt
- Clone the repository:
git clone https://github.com/bf-yang/DrHouse.git
cd DrHouse- Install packages:
conda env create -f environment.yml
conda activate drhouseCreate the medical database:
python src/create_medical_database.pyTrain semantic filter:
python src/semantic_filter.pyReal-world data consultation:
python src/main.py --exp real --user_name cj_t2Simulation data consultation:
- Two-agent consultation:
python src/simulation/simulation_consultation.py - Real person interactions:
python src/main.py --exp simulation --user_name sim_data_ab_1
python src/eval_dialogues.pyWeb UI:
python src/mainWebUI.pyAndroid UI:
- Start the server:
python src/mainAndroidUIServer.py - Run the Android app:
Interaction-Speak-Sockets-Android
If you find our work helpful, please consider citing:
@article{yang2024drhouse,
title={DrHouse: An LLM-empowered diagnostic reasoning system through harnessing outcomes from sensor data and expert knowledge},
author={Yang, Bufang and Jiang, Siyang and Xu, Lilin and Liu, Kaiwei and Li, Hai and Xing, Guoliang and Chen, Hongkai and Jiang, Xiaofan and Yan, Zhenyu},
journal={Proceedings of the ACM on Interactive, Mobile, Wearable and Ubiquitous Technologies},
volume={8},
number={4},
pages={1--29},
year={2024},
publisher={ACM New York, NY, USA}
}