<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Shakeel Ahmed</title>
    <description>The latest articles on DEV Community by Shakeel Ahmed (@shakeelahmedneuroai).</description>
    <link>https://dev.to/shakeelahmedneuroai</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4144794%2Fdfdaf7d9-316a-4918-a84c-0af483576246.png</url>
      <title>DEV Community: Shakeel Ahmed</title>
      <link>https://dev.to/shakeelahmedneuroai</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/shakeelahmedneuroai"/>
    <language>en</language>
    <item>
      <title>How I Built a Real-Time rPPG Heart Rate Tracker in Python (POS Algorithm &amp; Butterworth Filtering)</title>
      <dc:creator>Shakeel Ahmed</dc:creator>
      <pubDate>Sat, 26 Sep 2026 19:46:52 +0000</pubDate>
      <link>https://dev.to/shakeelahmedneuroai/how-i-built-a-real-time-rppg-heart-rate-tracker-in-python-pos-algorithm-butterworth-filtering-1koe</link>
      <guid>https://dev.to/shakeelahmedneuroai/how-i-built-a-real-time-rppg-heart-rate-tracker-in-python-pos-algorithm-butterworth-filtering-1koe</guid>
      <description>&lt;p&gt;Continuous biometric monitoring usually requires dedicated contact hardware like smartwatches or pulse oximeters. However, standard laptop webcams can capture subtle skin color variations caused by blood volume pulses (BVP).&lt;/p&gt;

&lt;p&gt;To explore non-contact vital signs monitoring without specialized sensors, I built BioSense Tracker Pro—a real-time remote photoplethysmography (rPPG) framework in Python.&lt;/p&gt;

&lt;p&gt;Here is a breakdown of the core signal processing behind the project and how to overcome ambient camera noise.&lt;/p&gt;

&lt;p&gt;The Challenge: Ambient Noise &amp;amp; Specular Reflection&lt;br&gt;
When light strikes skin, the reflected signal contains two components:&lt;/p&gt;

&lt;p&gt;Specular Reflection: Light reflecting directly off the skin surface (contains no blood volume data).&lt;/p&gt;

&lt;p&gt;Diffuse Reflection: Light penetrating skin tissue, absorbed/reflected by hemoglobin fluctuations during heartbeats.&lt;/p&gt;

&lt;p&gt;In standard RGB video streams, lighting changes, head movement, and camera auto-exposure introduce heavy noise that masks the diffuse pulse signal. Simple RGB averaging across facial regions isn't enough for clean signal extraction.&lt;/p&gt;

&lt;p&gt;The Architecture: POS Algorithm + Bandpass Filtering&lt;br&gt;
To isolate the blood volume pulse from optical interference without requiring heavy neural networks or GPUs, I combined spatial-temporal color projection with bandpass frequency selection:&lt;/p&gt;

&lt;p&gt;Plane-Orthogonal-to-Skin (POS) Algorithm: POS projects temporal RGB signals onto a plane orthogonal to the skin tone vector. By defining two orthogonal signals that separate intensity variations from pulsatile variations, POS eliminates specular reflections caused by light fluctuations.&lt;/p&gt;

&lt;p&gt;Butterworth Bandpass Filtering: Human resting heart rates fall between 45 BPM and 240 BPM (0.75 Hz to 4.0 Hz). The raw POS signal passes through a Butterworth Bandpass Filter to eliminate high-frequency sensor noise and low-frequency motion drift before computing Fast Fourier Transform (FFT) peaks for instantaneous BPM estimation.&lt;/p&gt;

&lt;p&gt;Tech Stack &amp;amp; Performance&lt;br&gt;
Core Stack: Python 3.10+, OpenCV, NumPy, SciPy&lt;/p&gt;

&lt;p&gt;Processing: Low-latency pipeline running on standard CPU threads.&lt;/p&gt;

&lt;p&gt;Hardware: Works with standard, off-the-shelf webcams.&lt;/p&gt;

&lt;p&gt;Code &amp;amp; Executable Setup&lt;br&gt;
Source Code: You can inspect the source code and implementation on my GitHub Repository. &lt;a href="https://github.com/ShakeelAhmed-NeuroAI/BioSense-Tracker-Pro" rel="noopener noreferrer"&gt;https://github.com/ShakeelAhmed-NeuroAI/BioSense-Tracker-Pro&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Standalone Package: If you want to test it without setting up Python environments or OpenCV dependencies, I packaged a launcher available as a 1-Click Executable on Gumroad. &lt;a href="https://shakeelengineer27.gumroad.com/l/biosense-tracker" rel="noopener noreferrer"&gt;https://shakeelengineer27.gumroad.com/l/biosense-tracker&lt;/a&gt;&lt;/p&gt;

</description>
      <category>python</category>
      <category>machinelearning</category>
      <category>opensource</category>
      <category>computerscience</category>
    </item>
  </channel>
</rss>
