| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
AMIE (Artificial Medical Intelligence Engine) is the most accurate AI doctor, designed to provide medical diagnostics with unparalleled precision and reliability.
Here is my model please use for the medical-test repo! Model
This application leverages advanced machine learning models trained on comprehensive medical datasets to deliver accurate diagnostic suggestions and medical guidance. AMIE aims to assist healthcare professionals with accurate diagnostics and provide reliable medical information to patients.
# Clone the repository
git clone https://github.com/yourusername/AMIE-app.git
cd AMIE-app
# Create and activate a virtual environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install dependencies
pip install -r requirements.txt
# Download necessary model weights (if applicable)
python scripts/download_models.pyfrom doctorpoc.src import working
# Initialize the diagnostic process
diagnosis = working.start_diagnostic_process(patient_data)
# Get diagnostic questions
questions = diagnosis.get_next_questions()
# Process patient responses
diagnosis.update_with_responses(patient_responses)
# Get final diagnosis
final_diagnosis = diagnosis.get_diagnosis()# Run Supervised Fine-Tuning
python machine_learning/SFT/train_llama_maverick.py --dataset datasets/SFT/combined_dataset.jsonl
# Run GRPO optimization
python machine_learning/GRPO/perform_grpo.py --model-path sft_output/modelAMIE-app/ ├── .gitignore ├── README.md ├── todos.txt ├── requirements.txt # Project dependencies # ===== Datasets ===== ├── datasets/ # General datasets for model training and experimentation │ ├── SFT/ # Datasets for Supervised Fine-Tuning │ │ ├── counter_d.json # Dataset for counter-deductive reasoning questions │ │ ├── augmented_clinical_notes_qa.jsonl # Augmented QA from clinical notes │ │ └── combined_dataset.jsonl # Combined dataset for SFT │ ├── SFT-FUTURE/ # Future/planned SFT datasets │ │ ├── generalize1.json # Generalization dataset 1 │ │ ├── generalize2.json # Generalization dataset 2 │ │ └── converted_augmented_clinical_notes_qa.jsonl │ ├── icliniq.json # Dataset from iCliniq │ ├── prompts_gpto1mini_0912_toshare.json # Dataset of prompts │ └── other/ # Other miscellaneous datasets ├── medical_dataset/ # Core medical knowledge database ├── doctor_oriented_qa_with_ids.jsonl # Doctor-patient dialogue dataset ├── doctor_patient_qa.jsonl # Doctor-patient dialogue dataset # ===== Diagnostic Process Components ===== ├── questioning_doctor_outputs/ # Outputs from questioning phase ├── patient_followups/ # Patient follow-up data ├── summarizer_outputs/ # Conversation summary outputs ├── diagnosing_doctor_outputs/ # Diagnostic outputs ├── treatment_plans/ # Generated treatment plans ├── validated_disease_vignettes.json # Verified disease presentations # ===== Benchmarking Tools ===== ├── aci-bench/ # Benchmarking suite for clinical NLP tasks │ ├── README.md │ ├── SETUP.md │ ├── baselines/ # Baseline model implementations │ ├── data/ # Benchmark datasets │ ├── evaluation/ # Evaluation scripts │ ├── metric/ # Custom metrics │ ├── results/ # Stored results │ └── tables/ # Formatted results tables # ===== Diagnostic Process Implementation ===== ├── doctorpoc/ # Proof-of-concept for the "AI Doctor" │ └── src/ │ ├── __init__.py │ ├── agents/ │ │ └── probability_agent.py # Agent for disease probabilities │ ├── models/ │ │ ├── __init__.py │ │ ├── blocks.py # Diagnostic questioning blocks │ │ └── case.py # Patient case structures │ ├── runners/ │ │ ├── __init__.py │ │ ├── diagnostic_utils.py # Diagnostic utilities │ │ ├── run_counter.py # Counter-deductive questions runner │ │ ├── run_deductive.py # Deductive/elimination questions runner │ │ ├── run_expand.py # Disease hypothesis expansion runner │ │ ├── run_gpt.py # GPT-based doctor benchmark │ │ └── run_info_gain.py # Information gain questions runner │ ├── benchmark_main.py # Benchmarking script │ └── working.py # Main diagnostic process script # ===== Machine Learning Components ===== ├── machine_learning/ │ ├── SFT/ # Supervised Fine-Tuning resources │ │ ├── guide.txt # SFT process guide │ │ └── train_llama_maverick.py # Training script for SFT │ ├── dataset_generation/ # Dataset creation scripts │ │ ├── patient_GRPO.py # Transform prompts for GRPO/PPO │ │ └── SFT/ │ │ └── iCliniq/ │ │ └── add.py # Convert iCliniq data to instructions │ └── GRPO/ # GRPO/PPO resources │ ├── perform_grpo.py # Script to perform GRPO │ └── summarize.py # Conversation to Patient Vignette converter ├── sft_output/ # Default output directory for SFT models ├── explanation/ │ └── file_explanation.txt # Developer notes on project files
Our core machine learning strategy involves a two-stage process to develop a highly capable medical AI:
Supervised Fine-Tuning (SFT):
Reinforcement Learning (RL) for Response Optimization:
This iterative approach of SFT followed by RL aims to create a robust and reliable AI doctor.
We welcome contributions to AMIE-app! Here's how you can help:
For major changes, please open an issue first to discuss what you would like to change.
This project is licensed under the MIT License - see the LICENSE file for details.
| Back | FazBrowse Home | New Git URL |