Skip to main content
. 2017 Oct 27;12(10):e0186068. doi: 10.1371/journal.pone.0186068

Fig 1. Proposed closed-loop control system, based on a fully-connected state transition model (STM).

Fig 1

The system consists of three components: a real-time control application, a neuromodulator prototype and a sheep used for animal experimentation. An intracardiac electrogram (EGM) is obtained via a cardiac lead implanted into the right ventricle of the sheep, analogically processed by the neuromodulator, and acquired via the analog to digital converter into the real-time control application. R-wave instants are detected and used for calculating a Weighted Moving Average of the RR intervals WMARR(b), which will be used as control variable. An error ϵ is obtained from the difference between the target (RRT) and WMARR(b). The STM-based controller estimates a new set of VNS parameters Si, minimizing ϵ. VNS is triggered synchronously to the R-wave, with the new set of parameters Si, to deliver VNS to the right vagus nerve of the sheep. VNS with these new parameters will modify the acquired EGM and a weighted moving average of the new RR interval is computed, closing the loop.