AI-Powered Recommendation Engine for a Leading Health App

Elevating user experience and driving engagement with relevant recommendations.

DRL Team
AI R&D Center
24 Jul 2024
7 min
AI-Powered Recommendation Engine for a Leading Health App
Client Services
independent verified review on clutch.co
Read independent verified review on Clutch.co

Summary

  • The client is a popular weight loss app that focuses on changing behavior to adopt a healthy lifestyle and appearance. The app makes it entertaining to build new habits as part of a supportive community. Among other features, it enables users to listen to live sessions from wellness coaches, other experts, and leading voices.

  • To increase user engagement and loyalty, the client imagined building a recommendation engine as a core function of the app. Its key task would be an effective matching system between user goals and preferences AND relevant live streams and health-related trending topics.

  • Our team has developed an AI-powered recommendation engine that works with both audio and text formats. By leveraging a siamese-architecture-inspired network, the system considers multiple parameters to produce relevant and engaging content recommendations.

Tech stack

AWS
ECS Fargate
Lambda
MSK (Kafka)
OpenSearch
Milvus
Python
Gunicorn
aiohttp
OpenSearch-py
boto3
PyTorch
Transformers
Scikit-Learn
Pandas
Numpy
Terraform
AWS CloudFormation
GitHub
CodePipelines

Delivery Timeline

3 weeks
Collection of Initial Requirements
Solution Architect
Solution Architecture Design
Solution Architect
System Engineer
6 weeks
Engineering Development
System Engineer
NLP Engineer
Dev Ops
Data Integration With the App (via Kafka)
Data Engineer
Dev Ops
4 weeks
Data Cleaning & Preprocessing
Data Engineer
NLP Engineer
Model Training
Data Engineer
NLP Engineer
Performance Dashboards Setup
NLP Engineer
Every 4 weeks
Review the recommendations' performance
Data Engineer
NLP Engineer
Modify / Retrain recommendation model and tune algorithms if needed
System Engineer
Data Engineer
NLP Engineer

Imagine Emma, a busy married professional with two young kids, who is trying to lose weight and sleep better to be healthier and live a better longer life for her children and husband. She tried several apps to reach her goals but none of them stuck. Emma realizes that she feels most empowered to pursue a wholesome lifestyle when she has a community helping healthy habits take root.

Tech Challenge

  • Audio content, with its multifaceted attributes, poses a significant challenge for recommendation systems. The answer itself, along with the question's topic, relevance, provided value, and wisdom, all play crucial roles in the process of suggesting.

  • All the inputs are usually recorded via phone. Thus, many things might contribute to overall audio quality — mic sensitivity, environmental noise, speech loudness, speed, pitch, etc.

  • A key requirement is the real-time generation of recommendations influenced by the user's current activity. The system must ensure that new content is instantly available. This requirement eliminates the possibility of caching or pre-computed recommendations. The system should be designed to handle a growing user base. Services should be scalable and able to adjust quickly to changes in user volume.

  • All recommendation systems have the cold start problem. It is usually related to new users who don't have historical activity. Such users should still be able to get hints right after signup and eventually should get a more personalized experience.

Solution

  • We trained an ML model to create embeddings for answers and users. The model features include audio transcription, question text, author description, and historical stats like listen rate, likes, comments, etc. Every day, the model is automatically retrained to tune weights and adjust embeddings based on the latest user's activity.

  • All answers on the platform were moderated by humans and scored according to rules. Those scores reflected how good the answers were, how precisely they answered the topic, and how much value they gave to the listener.

  • At the later stage of the project, we implemented an auto-scoring mechanism to reduce the amount of human work on the platform. We developed a comprehensive set of OpenAI ChatGPT prompts to evaluate the content score by the same criteria as humans did.

  • Additionally, we developed an audio processing pipeline to analyze the audio quality based on a set of features like speech ratio, short-time objective intelligibility (STOI), perceptual evaluation of speech quality (PESQ), signal-to-noise ratio (SNR), etc.

  • The system is primarily built using Python tech stack and scalable databases and is deployed on AWS Cloud. All the services are running on Lambdas and ECS. External integration with the app is performed via Kafka. Utilizing the OpenSearch and Milvus databases allows the creation of on-the-fly recommendations of 20-50 items in ~100-300ms time.

By using this app, Emma has access to various cool features like a step, workout, meditation tracker, and habit tracker. Most importantly, all of those are incentivized by a supporting community. By listening to relevant live conversations with coaches, health experts and other app members, Emma finally feels inspired and supported to achieve her wellness goals and is making a steady incremental progress in loosing weight and having a restful sleep.

Impact

  • The recommendation engine serves as a key to the app's functionality ensuring the increase in daily active usage. Customers can easily find relevant content, be it audio clips, podcasts, chats, or trending topics.

  • Thanks to a truly curated experience, millions of users enjoy better content that impacts their lives positively. Due to robust architecture and infrastructure design, the app can sustain supporting a large user base without latency issues.

  • The consistent performance, great usability, and content relevancy ensure that the company consistently finds itself among the top players in digital health and weight management app ratings.

MAKE CUSTOMERS FEEL YOUR APP IS JUST FOR THEM

Book a meeting
Yuliya Sychikova
Yuliya Sychikova
COO @ DataRoot Labs
Do you have questions related to your AI-Powered project?

Talk to Yuliya. She will make sure that all is covered. Don't waste time on googling - get all answers from relevant expert in under one hour.
OR
Send us a note
Optional
File requirements pdf, docx, pptx
dataroot labs logo
Copyright © 2016-2024 DataRoot Labs, Inc.