TL;DR
Physio is a specialized chat-based application that uses Retrieval-Augmented Generation (RAG) to provide trustworthy physical rehabilitation advice. By grounding GPT-4 in a curated knowledge base of verified medical sources, the system offers initial diagnoses, exercise recommendations, and over-the-counter medication suggestions, all while providing inline citations to safeguard against LLM hallucinations.
What Problem Does This Paper Address?
While Large Language Models (LLMs) like GPT-4 are impressively conversational, they suffer from a well-documented "hallucination" problem—the tendency to generate plausible-sounding but factually incorrect information. In the healthcare domain, these errors aren't just annoying; they are potentially dangerous.
The authors address the challenge of bringing generative AI into the sensitive field of physiotherapy. Users often seek immediate advice for musculoskeletal pain, but general-purpose LLMs lack the necessary guardrails to ensure their advice aligns with clinical standards. The paper proposes a system that balances the natural language capabilities of LLMs with the strict reliability required for medical information.
Methods
The authors developed a multi-stage data pipeline to ensure every response is grounded in reality:
- Validation: Before processing a query, the system uses a prompt template to verify if the input is related to physiotherapy and written in English. If not, it returns a default response, preventing the model from being used for off-topic or potentially unsafe tasks.
- Condition Identification: Using few-shot prompting, the model extracts the specific condition (e.g., "ankle sprain") from the user's natural language input.
- Database Linking: The identified condition is matched against a curated database using a hierarchy of exact matching, alias matching (e.g., "lumbago" for "back pain"), and substring matching.
- Retrieval-Augmented Generation (RAG): Once a condition is linked, the system uses the BM25 retrieval model to find the top five most relevant documents from its knowledge base. These documents are fed into GPT-4 along with the user's query to generate a grounded response.
- Automated Citation: To ensure transparency, the system ranks sentences from the source documents against the generated sentences using BM25. It then inserts citations so users can verify the information at the source.
- Exercise & Medication Extraction: Finally, the system pulls specific instructional videos from a collection of exercises and suggests over-the-counter medications by querying the DrugBank database.
Datasets
The researchers did not rely on the LLM's internal (and potentially outdated) training data. Instead, they built a "curated knowledge base" by:
- Scraping Rehab Hero for exercises and instructional videos.
- Aggregating clinical information from 20 reliable health websites, including the Mayo Clinic, NHS, and OrthoInfo.
- Utilizing the DrugBank database for medication-related information.
- Validating the entire source list with a professional physiotherapist.
The data is stored in a MongoDB database organized into three collections: exercises, webpages, and medications.
Key Insights and Ideas
- The "AI Physiatrist" Workflow: The system doesn't just "chat"; it mimics a clinical appointment by identifying a condition, explaining it, and then providing a multi-modal treatment plan (text, video exercises, and medication).
- Heuristic-Based Citations: One of the cleverer aspects is the citation mechanism. Because LLMs don't naturally "know" which sentence came from which source during generation, the authors use a post-hoc BM25 ranking to map generated sentences back to the source documents.
- Safety as a Feature: The inclusion of a "Validation" step at the very beginning of the pipeline acts as a crucial gatekeeper, ensuring the model stays within its "domain of expertise."
Key Results
The primary output of this work is the functional Physio application. The authors demonstrate that by constraining the LLM to a specialized set of documents, they can produce responses that are both conversational and verifiable.
As shown in Figure 1, the system successfully handles vague queries like "I feel pain on my lower back," providing a structured response that includes rest recommendations, potential treatments, and clear links to reputable sources like Johns Hopkins Medicine and the Cleveland Clinic.
Limitations and Future Work
The authors are transparent about the system's current boundaries:
- Research Only: It is currently a research demonstration, not a replacement for professional medical advice.
- Limited Scope: Medication recommendations are strictly limited to over-the-counter (OTC) options to minimize risk.
- Citation Heuristics: The current method for selecting citations is based on a heuristic (Top-N ranking). The authors note that ongoing research is focused on refining this process using more sophisticated similarity scores.
- Language: The current pipeline is optimized for English-language queries.
Summary updated