TL;DR
Resp-Agent is a first-of-its-kind autonomous agent system that closes the loop between diagnosing respiratory diseases and generating synthetic lung sounds. By using a "Thinker" Large Language Model (LLM) to identify its own diagnostic weaknesses and a "Generator" to create targeted training data for rare conditions, it achieves state-of-the-art performance on a massive new 229,000-recording benchmark.
What Problem Does This Paper Address?
Respiratory auscultation—listening to lung sounds with a stethoscope—is a cornerstone of medicine, but automating it with AI is surprisingly difficult. The authors identify three primary bottlenecks:
- The Representation Gap: Most AI models convert audio into mel-spectrograms (images). This process blurs fine temporal details, making it hard to catch "transients"—the tiny, millisecond-long crackles or wheezes that signal specific diseases.
- The Data Gap: Medical data is notoriously "long-tailed." While there are plenty of recordings of healthy lungs or common issues like COVID-19, there is a severe lack of data for rare conditions like Bronchiolitis or Pulmonary Hemosiderosis.
- The Analysis-Generation Disconnect: Currently, models either diagnose (analysis) or create sounds (generation). There is no system that uses generation to actively improve its own diagnostic ability.
Methods
The authors introduce Resp-Agent, a framework composed of three interacting modules designed to continuously improve diagnostic accuracy.
- The Thinker (Thinker-A²CA): An LLM-based central controller. It doesn't just process data; it plans. It looks at where the system is failing (e.g., "I'm bad at identifying rare pediatric cases") and schedules the Generator to create specific "hard-to-diagnose" samples to fill those gaps.
- The Diagnoser (Modality Weaving): Instead of processing text and audio separately, this model "weaves" them together from the start. It uses Strategic Global Attention with Audio Anchors—sampling the audio every ~80ms—allowing the model to link specific words in a clinical narrative (like "wheeze") directly to the exact millisecond in the audio where that sound occurs.
- The Generator (Resp-MLLM): A flow-matching-based model that adapts a text-only LLM to produce high-fidelity audio. Crucially, it disentangles pathology (the disease) from style (the recording device or background noise), allowing it to "hallucinate" realistic clinical scenarios for training.
Datasets
The paper introduces Resp-229k, the largest and most diverse multimodal respiratory dataset to date.
- Scale: 229,101 recordings totaling 408 hours.
- Multimodality: Every audio clip is paired with a "clinical narrative"—an LLM-distilled summary of the patient's demographics, symptoms, and medical history.
- Diversity: It aggregates data from five major public databases (including ICBHI and COUGHVID), covering 15 disease categories plus a healthy control group.
- Evaluation: The authors enforce a strict "source-disjoint" split, meaning the model is tested on data from hospitals and devices it never saw during training.
Key Insights and Ideas
- Active Adversarial Curriculum: The most innovative idea is turning data augmentation from a passive process (like adding noise) into an active one. The agent "knows" it is weak on certain classes and uses the generator to "attack" those weaknesses with synthetic edge cases.
- Audio Anchors Solve the "Quadratic Problem": Transformers are computationally expensive for long sequences. By using sparse "anchors" as hubs for global attention, the Diagnoser can process long 10-second clips and long clinical texts simultaneously without the math blowing up.
- LLMs as Clinical Distillers: Raw medical records (EHRs) are messy. The authors used LLMs to "distill" these into standardized, clean paragraphs, proving that LLMs can be powerful tools for curating high-quality medical datasets at scale.
Key Results
- New SOTA on ICBHI: On the industry-standard ICBHI dataset, Resp-Agent achieved a score of 72.7, outperforming the previous state-of-the-art by over 5 points.
- Solving the Long Tail: On the new Resp-229k benchmark, the agent-guided synthesis boosted the Macro-F1 score (a metric that weighs rare classes heavily) from 0.212 to 0.598—a massive leap in diagnostic robustness.
- High-Fidelity Synthesis: The Generator achieved a Fréchet Audio Distance (FAD) of 1.13, significantly better than general-purpose audio models like AudioLDM 2, proving it creates more "clinically realistic" sounds.
Limitations and Future Work
While impressive, the authors note several areas for growth:
- Human-in-the-Loop: While the LLM-generated clinical summaries were audited and found to be 99.2% accurate, the authors emphasize that a "human-in-the-loop" is still essential for clinical safety.
- Regulatory Hurdles: Resp-Agent is currently a research framework. Moving it into a clinical setting would require rigorous regulatory approval and validation as a medical device.
- Real-time Constraints: The current system is "compute-aware" but not yet optimized for real-time use on low-power mobile devices or digital stethoscopes in the field.
Summary updated