How Fresenius Medical Care goals to avoid wasting dialysis affected person lives utilizing real-time predictive analytics on AWS

This submit is co-written by Kanti Singh, Director of Information & Analytics at Fresenius Medical Care.

Fresenius Medical Care is the world’s main supplier of kidney care services, and operates greater than 2,600 dialysis facilities within the US alone. The corporate gives complete options for folks residing with persistent kidney illness and associated situations, with a mission to enhance the standard of life of each affected person, day-after-day, by remodeling healthcare by way of analysis, innovation, and compassion. Information evaluation that results in well timed interventions is important to this mission, and important to scale back hospitalizations and stop adversarial occasions.

On this submit, we stroll you thru the answer structure, efficiency issues, and the way a analysis partnership with AWS round medical complexity led to an automatic resolution that helped ship alerts for potential adversarial occasions.

Why Fresenius Medical Care selected AWS

The Fresenius Medical Care technical staff selected AWS as their most popular cloud platform for 2 key causes.

First, we decided that AWS IoT Core was extra mature than different options and would probably face fewer points with deployment and certificates. As a corporation, we wished to go along with a cloud platform that had a confirmed monitor file and established technical options and providers within the IoT and knowledge analytics area. This included Amazon Athena, which is an easy-to-use serverless service that you should utilize to run queries on knowledge saved in Amazon Easy Storage Service (Amazon S3) for evaluation.

One other issue that performed a significant function in our resolution was the truth that AWS supplied the most important set of serverless providers for analytics than another cloud supplier. We finally decided that AWS improvements met the corporate’s present wants in addition to positioned the corporate for the long run as we labored to broaden our predictive capabilities.

Answer overview

We would have liked to develop a near-real-time analytics resolution that may gather dynamic dialysis machine knowledge each 10 seconds throughout hemodialysis therapy in near-real time and personalize it to foretell each half-hour if a affected person is at a well being threat for intradialytic hypotension (IDH) throughout the subsequent 15–75 minutes. This resolution wanted to scale to all our dialysis facilities nationwide, with every location sending 10 MBps of therapy knowledge at peak instances.

The complexities that wanted to be managed within the resolution included dealing with excessive throughput knowledge, a low-latency time-sensitive resolution of 10 seconds from knowledge origination to reporting and notification, a extremely out there resolution, and an economical resolution with on-demand scaling up or down based mostly on knowledge quantity.

Fresenius Medical Care partnered with AWS on this mission and developed an structure that met our technical and enterprise necessities. Core parts within the structure included Amazon Kinesis Information Streams, Amazon Kinesis Information Analytics, and Amazon SageMaker. We selected Kinesis Information Streams and Kinesis Information Analytics primarily as a result of they’re serverless and extremely out there (99.9%), supply very excessive throughput, and are simple to scale. We selected SageMaker as a result of its distinctive functionality that permits ease of constructing, coaching, and working machine studying (ML) fashions at scale.

The next diagram illustrates the structure.

The answer consists of the next key parts:

  1. Information assortment
  2. Information ingestion and aggregation
  3. Information lake storage
  4. ML Inference and operational analytics

Let’s focus on every stage within the workflow in additional element.

Information assortment

Dialysis machines situated in Fresenius Medical Care facilities assist sufferers within the therapy of end-stage renal illness by performing hemodialysis. The dialysis machines present rapid entry to all therapy and scientific trending knowledge throughout the fleet of hemodialysis machines in all facilities within the US.

These machines transmit a knowledge payload each 10 seconds to Kafka brokers situated in Fresenius Medical Care’s on-premises knowledge heart to be used by a number of purposes.

Information ingestion and aggregation

We use a Kinesis-Kafka connector hosted on self-managed Amazon Elastic Compute Cloud (Amazon EC2) cases to ingest knowledge from a Kafka matter in near-real time into Kinesis Information Streams.

We use AWS Lambda to learn the information factors and filter the datasets accordingly to Kinesis Information Analytics. Upon reaching the batch measurement threshold, Lambda sends the information to Kinesis Information Analytics for instream analytics.

We selected Kinesis Information Analytics as a result of ease-of-use it gives for SQL-based stream analytics. Through the use of SQL with KDA (KDA Studio/Flink SQL), we are able to create dynamic options based mostly on machine interval knowledge arriving in actual time. This knowledge is joined with the affected person demographic, historic scientific, therapy, and laboratory knowledge (enriched with Amazon S3 knowledge) to create the entire set of options required for a downstream ML mannequin.

Information lake storage

Amazon Kinesis Information Firehose was the best strategy to constantly load streaming knowledge to construct a uncooked knowledge lake in Amazon S3. Kinesis Information Firehose micro-batches knowledge into 128 MB file sizes and delivers streaming knowledge to Amazon S3.

Scientific datasets are required to counterpoint stream knowledge sourced from on-premises knowledge warehouses through AWS Glue Spark jobs on a nightly foundation. The AWS Glue jobs extract affected person demographic, historic scientific, therapy, and laboratory knowledge from the information warehouse to Amazon S3 and rework machine knowledge from JSON to Parquet format for higher storage and retrieval prices in Amazon S3. AWS Glue additionally helps construct the static options for the intradialytic hypotension (IDH) ML mannequin, that are required for downstream ML inference.

ML Inference and Operational analytics

Lambda batches the stream knowledge from Kinesis Information Analytics that has all of the options required for IDH ML mannequin inference.

SageMaker, a totally managed service, trains and deploys the IDH predictive mannequin. The deployed ML mannequin gives a SageMaker endpoint that’s utilized by Lambda for ML inference.

Amazon OpenSearch Service helps retailer the IDH inference outcomes it obtained from Lambda. The outcomes are then used for visualization by way of Kibana, which shows a customized well being prediction dashboard visible for every affected person present process therapy and is on the market in near-real time for the care staff to supply intervention proactively.

Observability and traceability for failures

As a result of this resolution gives the potential for life-saving interventions, it’s thought-about enterprise important. The next key measures are taken to proactively monitor the AWS jobs in Fresenius Medical Care’s VPC account:

  • For AWS Glue jobs which have failures and errors in Lambda features, a direct electronic mail and Amazon CloudWatch alert is shipped to the Information Ops staff for decision.
  • CloudWatch alarms are additionally generated for Amazon OpenSearch Service at any time when there are blocks on writes or the cluster is overloaded with shard capability, CPU utilization, or different points, as advisable by AWS.
  • Kinesis Information Analytics and Kinesis Information Streams generate knowledge high quality alerts on knowledge rejections or empty outcomes.
  • Information high quality alerts are additionally generated at any time when knowledge high quality guidelines on knowledge factors are mismatched. To test mismatched knowledge, we use high quality rule comparability and sanity checks between message payloads within the stream with knowledge loaded within the knowledge lake.

These systematic and automatic monitoring and alerting mechanisms assist our staff keep one step forward to make sure that techniques are working easily and efficiently, and any unexpected issues might be resolved as shortly as doable earlier than it causes any adversarial influence on customers of the system.

AWS partnership

After Fresenius Medical Care took benefit of the AWS Information Lab to create a working prototype inside one week, skilled Options Architects from AWS grew to become trusted advisors, serving to our staff with prescriptive steering from ideation to manufacturing. The AWS staff helped with each solution-based and service-specific greatest practices, helped resolve key blockers in each section from improvement by way of manufacturing, and carried out structure opinions to make sure the answer was strong and resilient to enterprise wants.

Answer outcomes

This resolution permits Fresenius Medical Care to raised personalize care to sufferers present process dialysis therapy with a proactive intervention by clinicians on the level of care that has the potential to avoid wasting affected person lives. The next are a number of the key advantages as a result of this resolution:

  • Cloud computing assets allow the event, evaluation, and integration of real-time predictive IDH that may be simply and seamlessly scaled as wanted to succeed in further clinics.
  • Using our instrument could also be notably helpful in establishments going through employees shortages and, probably, throughout residence dialysis. Moreover, it might present insights on methods to forestall and handle IDH.
  • The answer allows trendy and revolutionary options that enhance affected person care by offering world-class analysis and data-driven insights.

This resolution has been confirmed to scale to an appropriate efficiency degree of 6,000 messages per second, translating to 19 MB/sec with 60,000/sec concurrent Lambda invocations. The flexibility to adapt by scaling up and down each part within the structure with ease saved prices very low, which wouldn’t have been doable elsewhere.


Profitable implementation of this resolution led to a suppose massive strategy in modernizing a number of legacy knowledge belongings and has set Fresenius Medical Care on the trail of constructing an enterprise unified knowledge analytics platform on AWS utilizing Amazon S3, AWS Glue, Amazon EMR, and AWS Lake Formation. The unified knowledge analytics platform gives strong knowledge safety and knowledge sharing for multi-tenants in varied geographies throughout the US. Much like Fresenius, you may speed up time to market by utilizing the precise instrument for the job, utilizing the broad and deep number of AWS analytic native providers.

In regards to the authors

Kanti Singh is a Director of Information & Analytics at Fresenius Medical Care, main the massive knowledge platform, structure, and the engineering staff. She likes to discover new applied sciences and how one can leverage them to resolve complicated enterprise issues. In her free time, she loves touring, dancing, and spending time with household.

Harsha Tadiparthi is a Specialist Principal Options Architect specialised in analytics at Amazon Internet Providers. He enjoys fixing complicated buyer issues in databases and analytics, and delivering profitable outcomes. Exterior of labor, he likes to spend time along with his household, watch motion pictures, and journey at any time when doable.

Similar Posts

Leave a Reply

Your email address will not be published.