Smartphone-Based AI: Rapid, Scalable COVID Screening with AWS

Author
.
2025

Overview

Virufy, a global nonprofit initiative, sought to create an accessible, fast, and reliable solution to help detect COVID-19 infections using the sound of a person’s cough. In partnership with AWS and applying DevOps best practices, Virufy launched a cloud-native web app capable of analyzing cough recordings using machine learning (ML) models. The platform provided rapid, early screening through any smartphone, with the scalability needed to respond to an evolving global health crisis.

Challenge

Developing an effective health-tech solution during a global pandemic required addressing several critical challenges:

  • Need for Rapid Adaptation: COVID-19 was evolving rapidly, requiring a model deployment and infrastructure management approach that could adapt in real time to new insights and data.
  • High Compute Demand: Training the ML models required intensive compute resources, but only during brief, high-load periods, making traditional infrastructure purchase inefficient.
  • Sensitive Health Data: Ensuring strong data privacy and compliance was crucial, given the nature of the personal health data being processed.
  • Agile Deployment Requirements: The detection model needed continuous tuning and deployment without downtime or manual bottlenecks.
  • Scalable Architecture: With users across multiple countries and fluctuating demand, the platform had to scale seamlessly while maintaining high performance.

Solution

To meet these demands, Virufy implemented a robust architecture on AWS and embraced a full DevOps approach to automate development, testing, and deployment:

DevOps Automation:

  • AWS CloudFormation was used to define infrastructure as code, ensuring repeatable and scalable environments.
  • AWS CodeCommit acted as a secure version control repository.
  • CI/CD pipelines enabled continuous updates to the detection model with minimal manual intervention.

Cloud Architecture Components:

  • Amazon S3 stored cough recordings and processed data reliably and at scale.
  • Amazon SageMaker was used to develop, train, and deploy machine learning models for COVID-19 detection.
  • Amazon API Gateway and AWS Lambda provided a serverless interface to ingest and process user-submitted audio.
  • These services were combined into a highly flexible architecture that scaled automatically as demand increased.

Impact

The optimized infrastructure delivered several strategic outcomes:

  • Global Accessibility: The solution supported cough submissions from more than ten countries, expanding reach for respiratory health screening
  • Affordable Scalability: Infrastructure costs dropped while throughput increased, ensuring service affordability even as demand rose.
  • Faster Updates: The CI/CD pipelines enabled more frequent and reliable model tuning, increasing overall system responsiveness to new data and medical findings.
  • Zero-Downtime Deployment: New versions of the detection model were pushed to production in minutes through fully automated pipelines, improving responsiveness without compromising availability.

Key Data Points

41.5%
reduction in cloud infrastructure costs
60%
faster model training and deployment cycles
Over 10 countries
providing cough recordings