Abstract
Emergency physicians frequently face information overload when navigating extensive Electronic Health Records (EHRs) under time-sensitive conditions. While Large Language Models (LLMs) offer powerful summarization capabilities, their deployment in clinical settings is often hindered by privacy regulations regarding Protected Health Information (PHI) and the need for reliable internet connectivity. This paper introduces a dual-stage, lightweight summarization system designed for edge computing. Utilizing Small Language Models (SLMs) on NVIDIA Jetson hardware, the proposed architecture achieves high-quality, context-aware clinical summaries locally. Evaluation on both public and real-world datasets demonstrates that this offline approach maintains high factual accuracy and low latency, providing a viable path for privacy-preserving AI at the point of care.
Introduction
In the Emergency Department (ED), every second counts. Physicians must often synthesize years of unstructured patient notes to make critical decisions. Although cloud-based LLMs like GPT-4 excel at such tasks, they present significant hurdles: the risk of exposing PHI to external servers and the requirement for high-speed connectivity, which may be unavailable in rural or disaster-stricken areas. This research addresses these challenges by developing an "Edge AI" solution—a summarization engine capable of running on low-power, inexpensive hardware situated directly in the clinical environment.
Dual-Stage Architecture
The core innovation is a dual-stage architecture that distributes the computational load across two NVIDIA Jetson Orin Nano devices to overcome memory limitations.
- Stage 1: Nano-R (Retrieve): This device processes the raw EHR data. It generates vector embeddings using the BGE-M3 model and employs FAISS (Facebook AI Similarity Search) to identify the top-5 most relevant text segments based on the patient's presenting complaint.
- Stage 2: Nano-S (Summarize): The retrieved context is transmitted via a local socket to the second device. This unit hosts a 4-bit quantized SLM which generates two distinct outputs: a list of "Critical Findings" (three key bullet points) and a "Context-Specific Summary" tailored to the current clinical scenario.
By pipelining these tasks, the system avoids memory contention on the 8GB RAM devices, allowing the SLM to remain resident in memory while the retrieval stage prepares subsequent data batches.
Evaluation and Results
The system was tested using the MIMIC-IV-Note dataset and de-identified real-world EHRs from Rockyview General Hospital. Performance was measured using an "LLM-as-Judge" framework to assess Factual Accuracy (FA), focusing on penalizing hallucinations and rewarding evidence-linked claims.
Key findings include:
- Prompting Efficiency: Zero-shot prompting often outperformed more complex techniques like Chain-of-Thought for SLMs. In resource-constrained environments, shorter prompts preserve the limited context window for actual patient data.
- Latency: The dual-device setup significantly reduced processing time. Summaries were typically generated in under 30 seconds for 2.7B parameter models and approximately 70 seconds for 7B models.
- Accuracy: The OpenChat model paired with Zero-Shot prompting achieved a high factual accuracy score, proving that smaller models can be highly reliable when supplied with precise, retrieved context.
Conclusion
This work demonstrates that effective clinical AI does not necessitate massive cloud infrastructure. By optimizing SLMs for edge hardware through a dual-stage pipeline, it is possible to provide emergency physicians with rapid, accurate, and private patient summaries. Future work will focus on human-in-the-loop validation with practicing clinicians and further fine-tuning models on specialized medical corpora.
Summary updated