A DSP for sensing the bladder volume through afferent neural pathways.In this paper, we present a digital signal processor (DSP) capable of monitoring the urinary bladder volume through afferent neural pathways.  The DSP carries out real-time detection and can discriminate extracellular action potentials, also known as on-the-fly spike sorting.  Next, the DSP performs a decoding method to estimate either three qualitative levels of fullness or the bladder volume value, depending on the selected output mode.  The proposed DSP was tested using both realistic synthetic signals with a known ground-truth, and real signals from bladder afferent nerves recorded during acute experiments with animal models.  The spike sorting processing circuit yielded an average accuracy of 92% using signals with highly correlated spike waveforms and low signal-to-noise ratios.  To assess feasibility, the DSP was deployed in the Actel FPGA Igloo AGL1000V2, which showed a power consumption of 0.5 mW and a latency of 2.1 ms at a 333 kHz core frequency. 
DSP
The volume estimation circuits, tested with real signals, reproduced accuracies achieved by offline simulations in Matlab, i.e., 94% and 97% for quantitative and qualitative estimations, respectively. 
Matlab