R-peak detection for improved analysis in health informatics