Published January 22, 2026 | Version 1.0.0
Software Open

RRalglib

  • 1. Elektronikas un datorzinātņu institūts

Description

Rralglib is a portable, quality-aware peak detection library for embedded biosignal processing. It implements a real-time processing block designed for robust peak detection and signal quality assessment in physiological signals (e.g., respiration, heart rate). The library uses a multi-stage approach optimized for performance on embedded systems:

  1. Detrending: Single-pole low-pass filter subtraction to remove baseline wander and prevent integer overflows.
  2. Bandpass Filtering: Dual biquad IIR filters (Direct Form 1) to isolate the frequency band of interest.
  3. SRMAC Stage: A performance-optimized real-time peak detection algorithm using three exponentially weighted moving average (EWMA) filters (fast, slow, and cross).
  4. Zero-Crossing Detection: Extracts peaks from the centered SRMAC output using a dynamic threshold (0.0625 * average peak height).
  5. Signal Quality Index (SQI): Calculates morphological similarity using the Pearson correlation coefficient between individual peaks and the average peak shape.

More details in the README.md

Files

README.md

Files (22.1 kB)

Name Size Download all
md5:38b296a38f6e7e4557ec2cde85c33947
4.4 kB Preview Download
md5:976970caad61e0fe12ade22a52e9b87d
17.7 kB Preview Download

Additional details

Funding

European Commission
SUSTRONICS - Sustainable and green electronics for circular economy 101112109

Dates

Available
2026-01-23

Software

Programming language
C
Development Status
Active