A Machine Learning Approach for Emergency Detection in Medical Scenarios Using Large Language Models
Ferit Akaybicen, Aaron Cummings, Lota Iwuagwu, Xinyue Zhang, Modupe, Adewuyi

TL;DR
This paper introduces a novel system using large language models and prompt engineering to accurately and rapidly detect medical emergencies in digital communications, enhancing telemedicine safety.
Contribution
It demonstrates the effective use of LLMs with prompt engineering for emergency detection, achieving near-perfect accuracy and providing a publicly available evaluation framework.
Findings
LLaMA 2 (7B) achieved 99.7% accuracy
Optimal performance with 10 prompt examples
Processing speed varies from 0.05 to 2.2 seconds
Abstract
The rapid identification of medical emergencies through digital communication channels remains a critical challenge in modern healthcare delivery, particularly with the increasing prevalence of telemedicine. This paper presents a novel approach leveraging large language models (LLMs) and prompt engineering techniques for automated emergency detection in medical communications. We developed and evaluated a comprehensive system using multiple LLaMA model variants (1B, 3B, and 7B parameters) to classify medical scenarios as emergency or non-emergency situations. Our methodology incorporated both system prompts and in-prompt training approaches, evaluated across different hardware configurations. The results demonstrate exceptional performance, with the LLaMA 2 (7B) model achieving 99.7% accuracy and the LLaMA 3.2 (3B) model reaching 99.6% accuracy with optimal prompt engineering. Through…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsArtificial Intelligence in Healthcare · Anomaly Detection Techniques and Applications · Machine Learning in Healthcare
MethodsLLaMA
