Manuscript Offprint

arXiv:2609.11231

A Voice-Interactive Multi-Agent System for Smart Operating Rooms: Architecture Design and Key Technologies

Tianxiang Zhou

Abstract

The operating room (OR) is one of the most technology-intensive clinical environments in hospitals, involving the coordinated operation of precision equipment such as surgical lights, endoscopy systems, electrosurgical units, and operating tables. In traditional ORs, healthcare professionals control devices via physical buttons, touchscreens, or foot switches, which pose cross-contamination risks and operational interruptions in sterile environments. This paper presents SurgicalRoomAgent, a voice-interactive multi-agent system for smart operating rooms based on large language models (LLMs). The system achieves natural language understanding, device control, intraoperative recording, and surgical report generation through a layered architecture comprising a voice interaction pipeline (wake → ASR → turn detection → agent reasoning → TTS) and an agent core (skill registry, skill router, task planner, task scheduler, device manager). Three key technologies are investigated: (1) KV Cache prefix warming for low-latency inference optimization, which reduces the recomputation overhead from device status changes from approximately 500 ms to tens of milliseconds via byte-level Longest Common Prefix (LCP) reuse; (2) streaming partial JSON parsing with early parallel task execution, which detects complete task arrays during LLM streaming output and immediately launches parallel execution, reducing end-to-end latency by approximately 30%; and (3) progressive skill prompt disclosure, which dynamically filters system prompts based on user role, connected devices, and surgical phase to maximize information density within limited context windows. The system is implemented using the Qwen3-27B model with llama.cpp/sglang inference engines, supporting streaming output and real-time device control. Experimental analysis demonstrates effective operation within a 16,384-token context limit, expected prompt warming hit rates, and multi-device parallel control response times meeting OR real-time requirements.

Keywords: Smart Operating Room; Voice Interaction; Large Language Model; Multi-Agent System; KV Cache Optimization; Task Planning; Progressive Disclosure

1 Introduction

References (17)

  • Artificial intelligence surgical assistant (aisa): An exploratory study of geppetto
  • Global guidelines for the prevention of surgical site infection
  • Cognitive aids in anaesthesia and surgery
  • A Survey of Large Language Models
  • ReAct: Synergizing Reasoning and Acting in Language Models
  • VISA: A voice-interactive surgical agent for robotic surgery
  • Large language model-driven robotic scrub nurse
  • A survey of large language model-based agents in medicine
  • DeviceAgent: A vision-language model-based agent for mobile device control
  • Voice control interface for surgical robots
  • CardAIc-Agents: A multi-agent system for cardiac diagnosis
  • Reinventing clinical dialogue: Structuring medical conversations with large language models
  • i-LAVA: An LLM-based voice agent framework
  • Low-latency voice agents: Design and optimization
  • llama.cpp: Efficient LLM inference
  • SGLang: Efficient execution of structured language model programs
  • FastAPI: Modern, fast web framework for building APIs with Python