
Revolutionizing Remote Patient Monitoring with Cloud and AI
Leveraging the use of Generative AI to build a real-world healthcare application consisting of an IoT device, real-time streaming analytics and a realtime dashboard.
Remote patient monitoring (RPM), though having many recent breakthroughs, is not a modern concept. It is a catch-all concept that describes any way a patient can be monitored outside of the clinical setting, and has been around for decades, starting from the 1940s when X-Ray images were sent via telephone lines. Now in the modern day it has developed to encompass a suite of devices and digital solutions including wearable devices and modern fitness smartphone applications.
RPM can have broad implications, including improved care access (especially for patients in remote or underserved areas), better care for patients with chronic conditions, and reduced hospital readmissions by allowing timely interventions outside the clinical setting. In the meanwhile, developments in cloud and artificial intelligence has also skyrocketed, allowing even faster development and accelerating innovation. What we discuss in this article lies at the intersection of these breakthroughs.
Background
Now we explore recent attempts at similar solutions that push the boundaries of real-time healthcare. In academia, there were several recent notable developments, including a scalable framework for AI-driven RPM developed by Cognizant Technology Solutions in January 2025, as well as a paper on an RPM solution that leverages 5G networks to get latency down to the low double digits published in March 2025.
Latency here is of paramount importance. When the average response time of emergency services in urban areas of the United States is 8 to 12 minutes, every second counts. Here, we will explore a real-world solution that displays a real-time patient monitoring dashboard and with intelligent notifications.
Architectural Design Philosophy
The solution follows a hybrid edge-cloud model that balances real-time needs with security. The Raspberry Pi collects vital signs while AWS handles heavy lifting through IoT Core, Kinesis streams, and Lambda analytics. Security is our top priority, with implemented end-to-end encryption, strict IAM policies, and VPC isolation to protect sensitive health data.
AWS services form the backbone of our system. IoT Core manages device fleets, Kinesis handles real-time data ingestion, and Lambda processes real-time streaming analytics at scale, as well as handles the processing of notifications. DynamoDB stores patient profiles that personalize risk assessments, while security measures like TLS encryption and automated certificate rotation keep data safe. The solution is rounded out with a custom domain with SSL encryption behind a CloudFront distribution.
The real-time patient dashboard is hosted as a Python Dash web application in an ECS cluster getting data from the stream and SNS is used to send real-time patient notifications.

The Raspberry Pi acts as our intelligent edge device, using the MAX30102 pulse oximeter sensor to capture heart rate and oxygen levels. A sophisticated data pipeline filters noise, smooths readings, and validates against physiological norms before sending to the cloud. A simulation mode lets us test scenarios without real hardware, critical for rapid development cycles.
This pipeline was developed using the AWS IoT SDK for Python, numpy, and the MAX30102 python module to capture readings. The wiring setup of the sensor with the Raspberry Pi is shown below, with a standard I2C connection and two 4.7 kΩ resistors on the SDA and SCL connections.

Intelligent Analytics
Using a real-time AI algorithm, we can then determine personalized risk scores and indices based on patient history from data in DynamoDB and current vitals from the edge device. The system detects anomalies using circadian rhythms and triggers multi-channel alerts through SNS when needed. Furthermore, the dashboard provides insight with multimedia input including AI generated natural language (eg. with clinical recommendations), allowing clinicians to take rapid action without extra interpretation of the data.

The Lambda function not only processes the data in the cloud in real-time but also places it in another Kinesis Data stream, before processing clinical alert notifications, prompting action. An example of such an alert is shown below here, and can be treated consistently within a rolling window to prevent alert fatigue.

Real-World Performance
While in academia we have seen target latencies under 20ms, this system achieves 60-200ms in production, making it a groundbreaking result for real-world deployments. During simulated emergencies, the system maintained sub-second alert times while processing complex analytics. The algorithms used here are being continuously refined to push these boundaries further.
The primary modification to boost performance includes using Lambda with provisioned concurrency to run the code which enriches the real-time data with the patient-specific data to produce the intelligent analysis. By using provisioned concurrency, we ensure no cold start time, allowing for low double-digit latency for complex analyses. Another such tweak is using Kinesis enhanced fan-out which "pushes" data to consumers rather than having the consumers poll the data from the Kinesis stream.

The RPM solution demonstrates that AI and cloud computing have moved beyond abstract concepts, they're revolutionizing healthcare. While perfect latency remains an academic dream, with 14ms latency being not too far off, this system shows what's possible today, with measured average end-to-end latency of ~100ms, including the network latency of the edge device.
Healthcare innovators are invited to explore these technologies' potential and build a future where quality care isn't limited by hospital walls. This goes to show that the cloud isn't just a virtual space but it's becoming the backbone of real-world health solutions making a tangible impact.
Enjoyed reading this content? Let the author know!
Your likes, comments, shares, and saves help creators reach more builders.
Loading recommendations
Loading article