Skip to content
I

Infant Pulse

Where Every Heartbeat Matters

Created on 17th March 2026

•

I

Infant Pulse

Where Every Heartbeat Matters

The problem Infant Pulse solves

The Problem Infant Pulse Solves

Neonatal Intensive Care Units (NICUs) operate in a high-risk, high-pressure environment where even a few seconds of delayed response can be life-threatening. Current monitoring systems face several critical limitations:

Reactive Monitoring — Most systems alert only after vitals cross dangerous thresholds

Fragmented Data — ECG, SpO₂, respiration, and temperature are often viewed separately

Alarm Fatigue — Frequent false alarms reduce trust and slow response times

Lack of Predictive Insight — No early warning for deterioration using intelligent analysis

Limited Remote Visibility — Parents and doctors cannot easily monitor infants in real time outside the NICU

What People Can Use Infant Pulse For

Infant Pulse is an AI-driven real-time neonatal monitoring platform designed to make NICU care smarter, faster, and safer.

For Doctors & NICU Staff

Monitor live vitals and ECG waveforms from a centralized dashboard

Detect early signs of anomalies using ML models (e.g., Isolation Forest)

Receive predictive alerts before conditions become critical

Reduce cognitive load with integrated, unified data visualization

For Hospitals

Improve patient safety and response time

Enable scalable monitoring across multiple infants simultaneously

Maintain continuous surveillance without manual intervention

Enhance decision-making with data-driven insights

For Parents

View real-time health updates of their infant remotely

Gain reassurance through transparent monitoring

Stay informed about alerts and condition changes

Challenges we ran into

Challenges I Ran Into

Building Infant Pulse was not just about connecting sensors and displaying charts — the real challenge was making it truly real-time, reliable, and clinically meaningful. Here are the key hurdles I faced and how I solved them:

1. Static Data Despite “Live” UI
Problem

Even after deploying the frontend, the dashboard looked live (timestamps updating), but:

ECG waveform was frozen

Heart rate and SpO₂ didn’t change

Charts were repeating the same values

Root Cause

Backend was returning precomputed/static data

Data structures were defined globally and reused across requests

Frontend was correctly polling, but data itself wasn’t changing

Solution

Refactored backend to generate fresh data on every API request

Removed all global/static variables

Introduced:

time-based signals for ECG (using sine + noise)

randomized vitals within medical ranges

Verified by hitting API multiple times and ensuring values changed

2. Next.js Automatic Static Optimization
Problem

Even after fixing backend, frontend still behaved like a static site:

Pages didn’t update dynamically

Data appeared cached

Root Cause

Next.js automatically pre-rendered pages as static

No explicit server-side rendering → no fresh data fetch

Solution

Added getServerSideProps to all live routes:

/

/parent

/baby/[id]

Forced Next.js to render on every request

Confirmed using build output (ƒ instead of ○)

3. WebSocket vs Polling Instability
Problem

WebSocket connection was inconsistent on deployment (Render)

Live updates would randomly stop

Root Cause

WebSocket lifecycle issues in cloud deployment

No fallback mechanism

Solution

Implemented polling fallback (every 2 seconds)

Eventually switched to polling-first debugging strategy

Added logs:

FETCH OK

FETCH ERROR

Ensured UI updates even if WebSocket fails

4. Render Deployment Not Updating
Problem

Backend changes were not reflected in production

/debug endpoint returned 404 even after pushing code

Root Cause

Render was using cached build / old commit

Deployment not triggered properly

Solution

Used:

“Clear build cache & deploy”

Verified deployment using:

/debug endpoint to confirm correct file running

Ensured correct:

branch (main)

root directory

start command

5. ECG Waveform Not Realistic
Problem

ECG appeared:

flat (all zeros) OR

noisy but not medically meaningful

Root Cause

Missing proper signal modeling

Backend not generating continuous waveform

Solution

Implemented time-dependent waveform generation

Used:

sine wave + noise (initial)

rolling buffer for smooth animation

Added frontend interpolation to keep waveform moving between updates

Key Learning
A system is only "real-time" if BOTH frontend AND backend are dynamic.

I initially fixed UI behavior, but the real bottleneck was data generation and deployment consistency.

Discussion

Builders also viewed

See more projects on Devfolio