mlsanityData to 14 Oct 2026

Show, Don't Tell: Learning Reward Machines from Demonstrations for Reinforcement Learning-Based Cardiac Pacemaker Synthesis

arXiv 2411.01750 ↗First posted 4 Nov 2024cs.LG eess.SPcited by 1

On the map: Deep reinforcement learning methods → Interpretable and logic-guided RL

Abstract (arXiv)

An (artificial cardiac) pacemaker is an implantable electronic device that sends electrical impulses to the heart to regulate the heartbeat. As the number of pacemaker users continues to rise, so does the demand for features with additional sensors, adaptability, and improved battery performance. Reinforcement learning (RL) has recently been proposed as a performant algorithm for creative design space exploration, adaptation, and statistical verification of cardiac pacemakers. The design of correct reward functions, expressed as a reward machine, is a key programming activity in this process. In 2007, Boston Scientific published a detailed description of their pacemaker specifications. This document has since formed the basis for several formal characterizations of pacemaker specifications using real-time automata and logic. However, because these translations are done manually, they are challenging to verify. Moreover, capturing requirements in automata or logic is notoriously difficult. We posit that it is significantly easier for domain experts, such as electrophysiologists, to observe and identify abnormalities in electrocardiograms that correspond to patient-pacemaker interactions. Therefore, we explore the possibility of learning correctness specifications from such labeled demonstrations in the form of a reward machine and training an RL agent to synthesize a cardiac pacemaker based on the resulting reward machine. We leverage advances in machine learning to extract signals from labeled demonstrations as reward machines using recurrent neural networks and transformer architectures. These reward machines are then used to design a simple pacemaker with RL. Finally, we validate the resulting pacemaker using properties extracted from the Boston Scientific document.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Placed in Interpretable and logic-guided RL, one of 15 directions in Deep reinforcement learning methods. Builds on 3 of its 37 references that are in the map. First posted on arXiv 4 Nov 2024.

Builds on

3 of 37 references.

References · 3

  1. 2018Soft Actor-Critic: Off-Policy Maximum Entropy Deep Reinforcement Learning with a Stochastic Actorcited by 4,885
  2. 2020Reward Machines: Exploiting Reward Function Structure in Reinforcement Learningcited by 191
  3. 2020Deep Learning for ECG Analysis: Benchmarks and Insights from PTB-XLcited by 158

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2025Guardian-regularized Safe Offline Reinforcement Learning for Smart Weaning of Mechanical Circulatory Devices
  2. 2026Learning Cardiac Electrophysiology Digital Twins Through Agentic Discovery of Hybrid Structure
  3. 2026AutoREC: A reinforcement learning platform for equivalent circuit model generation
  4. 2021Deep reinforcement learning for guidewire navigation in coronary artery phantom
  5. 2025Physics-Informed Reward Machines
  6. 2025Machine Intelligence on the Edge: Interpretable Cardiac Pattern Localisation Using Reinforcement Learning
  7. 2025Towards Physiologically Sensible Predictions via the Rule-based Reinforcement Learning Layer
  8. 2024Reward Machines for Deep RL in Noisy and Uncertain Environments