Peak-Detector: Explainable Peak Detection via Instruction-Tuned Large Language Models in Physiological Signal
Executive Summary
This study introduces Peak-Detector, a novel, explainable peak detection framework for physiological signals (ECG, PPG, BCG, BSG) that leverages instruction-tuned large language models (LLMs). The methodology centers on a modality-agnostic 'Peak Representation' that compresses time-series data into symbolic sequences, enabling efficient and interpretable LLM-based reasoning. The model is trained via a two-stage process—supervised fine-tuning on a custom Peak-Explanation dataset, followed by reinforcement learning with a multi-objective reward function. Across seven datasets, Peak-Detector achieves state-of-the-art or statistically equivalent performance to deep learning baselines in F1-score and heart rate/HRV estimation, while uniquely providing structured, physiologically grounded rationales for each detection. This approach enhances auditability and trust in cardiovascular metric extraction, especially in heterogeneous or noisy sensing environments.
Answer Machine Insights
Q: How does Peak-Detector perform compared to traditional and deep learning baselines for peak detection in noisy or arrhythmic signals?
Peak-Detector matches or outperforms both traditional and deep learning baselines in F1-score and HR/HRV error, especially in noisy or arrhythmic BCG/BSG signals, and uniquely provides structured explanations for its decisions.
On the challenging mechanical signals (Kansas, Arrhy, BSG ICU), Peak-Detector demonstrates its strongest advantage. For the Arrhythmia dataset, our model achieved a statistically significant improvement in HRV MAE (36.85 ms vs. 57.44 ms, p<0.05) against the best baseline, highlighting its superior ability to track heart rate variability in irregular rhythms.
Q: What is the practical role of Peak-Detector in real-world cardiovascular monitoring workflows?
Peak-Detector is best used as a selectively invoked, high-fidelity analyzer for flagged or uncertain signal segments, providing explainable outputs that support expert verification and error triage.
We do not view Peak-Detector as a strict real-time, always-on model for edge execution on battery-constrained wearables. Rather, we consider its most appropriate role to be that of a selectively invoked second-stage analyzer within broader ubiquitous cardiovascular sensing workflows, particularly in settings where interpretability, auditability, and higher-confidence peak localization are important.
Q: How does the explainability of Peak-Detector compare to other methods?
Peak-Detector uniquely outputs concise, physiologically grounded rationales for each detected peak, supporting auditability and clinical trust, unlike black-box deep learning models.
Peak-Detector is designed to output not only peak timestamps but also concise rationales aligned with domain criteria. Concretely, Peak-Detector summarizes evidence across four complementary dimensions: morphology (shape consistency), temporal consistency (interval constraints), amplitude dominance (relative prominence), and waveform context (local neighborhood patterns)... These cues align with how practitioners reason about fiducial points, making model outputs easier to audit and validate than predictions that provide no rationale.
Key Results
Peak-Detector achieved state-of-the-art or statistically equivalent F1-scores (e.g., 0.991 on PPG Capnobase, 0.973 on ECG MIT-BIH) compared to deep learning baselines across all modalities.
On challenging BCG Arrhythmia data, Peak-Detector reduced HRV MAE to 36.85 ms, significantly outperforming the best baseline (57.44 ms, p<0.05), and maintained high arrhythmic peak recall (>97%) on unseen datasets.
Visual Evidence

Fig. 4. A representative sample from the Peak-Explanation Dataset (BCG Arrhythmia subset). The figure illustrates the instruction-tuning triplet structure, comprising the task instruction, the input peak representation, and the ground-truth output with explanatory reasoning.
Clinical Snapshot
Evidence Rating
Relevance
high Priority