โ— PHANTOM
๐Ÿ‡ฎ๐Ÿ‡ณ IN
โœ•
Skip to content

Laos_System provides a configurable end-to-end pipeline that converts clinical speech/text notes into structured JSON documents for: admission, surgery and discharge.

License

Notifications You must be signed in to change notification settings

AQ-MedAI/Laos_System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LAOS: LLM-based Auxiliary Ophthalmic System

Project Background

Using "specialty voice-to-text and RAG," LAOS creates a full-cycle, closed loop from doctor-patient dialogue to evidence-based medical records. It also introduces a groundbreaking "clinical-semantic" dual-evaluation model, which allows the AI to understand doctors' jargon while ensuring the medical logic is perfectly sound. The study is the first to systematically address the issue of documentation overload for ophthalmologists. It proves the superiority of AI-generated records in a clinical environment, achieving a 62% boost in documentation speed, cutting doctors' daily overtime by an hour, and showing a significantly lower rate of critical medical errors compared to manual entry. image

Key features

  1. Data-Driven, Highly Customized Architecture
image 3) A Pioneering "NLP + Clinical" Dual-Evaluation Framework image

Experimental Results

LAOS delivers outstanding performance in both efficiency and professionalism.

  • Rapid Response: Average speech-to-text latency is just 0.3 seconds. The system supports 30 minutes of continuous processing, with generation times far shorter than manual documentation.
  • Leading Scores: It achieved a comprehensive clinical evaluation score of 84.1, significantly higher than the available baseline.
image

Scenario-Specific Performance Comparison

Discharge summaries showed the best performance due to their standardized structure. Although surgical records are more challenging (with variable procedures and frequent unexpected intraoperative events), the system still delivered statistically significant improvements in key sections like "Intraoperative Findings." image

Project layout

Laos_System
โ”œโ”€โ”€ README.md                                    # Project documentation
โ”œโ”€โ”€ requirements.txt                             # Python dependencies
โ”œโ”€โ”€ prompt.py                                    # LLM prompts
โ”œโ”€โ”€ utils.py                                     # Utility functions
โ”œโ”€โ”€ main.py                                      # Launch script
โ”œโ”€โ”€ configs/                                     # Configuration files
โ”‚ โ””โ”€โ”€ laos_default.yaml                          # Detail parameters
โ”œโ”€โ”€ data/                                        # Data files
โ”‚ โ”œโ”€โ”€ inputs/patient_001.json                    # Patient information
โ”‚ โ””โ”€โ”€ refs/patient_001_admission_ref.json        # Admission Struction
โ””โ”€โ”€ outputs/ generated after running             # Generated results

Quick start

  1. Install dependencies

    • Python 3.10+ recommended
    • For GPU: install a PyTorch build that matches your environment (see โ€œDependency installation tipsโ€)
    • Other dependencies: pip install -r requirements.txt
  2. Run a sample (for Qwen/LLaMA, ensure you can pull from Hugging Face or have local weights)

    • Edit paths in configs/laos_default.yaml (e.g., patient_json / audio_path)
    • Run:
      python main.py --config configs/laos_default.yaml
      
    • Outputs will be written to outputs/, for example:
      outputs/patient_001_admission_pred.json
      

Config reference (configs/*.yaml)

  • task: admission | surgery | discharge
  • io:
    • patient_json: input patient info / composed JSON including transcribed speech
    • out_dir: directory for outputs
  • asr: optional, enable FunASR Paraformer for speech-to-text and append to input
  • search: optional, unified retrieval interface (leave base_url empty if you donโ€™t have a service)
  • doctor_feedback: optional, clinician review notes (text or file)
  • llm: choose inference backend and model (suggest Qwen2-*-Instruct or Meta-Llama-3/3.1-Instruct)
  • logging: log level

About

Laos_System provides a configurable end-to-end pipeline that converts clinical speech/text notes into structured JSON documents for: admission, surgery and discharge.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages