Skip to main content

Project Overview

About Co.Vita

Co.Vita is a 12-month cohousing community initiative designed for seniors between the ages of 65 and 85. The project will not function as a nursing home, and will culminate in the development of three buildings. The seniors can come and go as they please, just like they would in a hotel or residence. They are welcome to have visitors, and they can even take vacations and leave their smart suite vacant for any length of time.
Co.Vita’s mission is to detect, anticipate and help to manage life-shortening conditions and improve health and longevity, through active engagement, both physical and mental.

Our Solution

We built a multi-agent system comprising of 3 dynamic agents (Patient, Coach and Doctor) which interact with Patient 0 data.

Patient Agent

Provides data analytics and visualizations from patient health data. Limited to providing factual information without offering health recommendations or insights.

Coach Agent

Analyzes patient data and provides fitness and dietary recommendations based on health metrics, sleep patterns, and heart data.

Doctor Agent

Reviews comprehensive patient health data to provide medical recommendations and insights based on heart rate, blood pressure, sleep quality, and other vital metrics.

Guardrails System

Ensures appropriate use of the system with role-specific guardrails that limit functionality based on agent type and prevent misuse of the system.

Getting Started with Covita Alpha

This guide will help you understand the Covita Alpha multi-agent system and how to interact with Patient 0’s health data.

Overview

Covita Alpha is a comprehensive solution designed to analyze and provide insights from health data, including heart and sleep metrics. With its multi-agent approach and powerful features, Covita helps manage senior health monitoring efficiently. Covita Dashboard Light

System Requirements

Application Requirements

  • Web Browser: Latest version of Chrome, Firefox, Safari, or Edge
  • Internet Connection: Required for accessing the application
Covita Alpha is optimized for modern browsers and responsive design, allowing you to access it from any device with an internet connection.

Quick Start

Follow these steps to quickly get started with Covita Alpha:
1

Access Covita

Visit covita.nivara.io to access the Covita interface.
2

Select Agent Type

Choose your agent type (Patient, Coach, or Doctor) based on your role and needs.
3

Select Model

Choose your preferred model (OpenAI or Gemini) for interaction.
4

Start Interacting

Begin asking questions and interact with the selected agent to get insights from Patient 0’s data.

Core Components

Covita Alpha offers a comprehensive set of features designed to analyze health data:

Cardiovascular Monitoring

Comprehensive analysis of heart-related metrics with statistical insights and trend detection.

  • Heart rate analytics (min, max, average, trends)
  • Blood pressure monitoring (systolic and diastolic)
  • Statistical analysis with standard deviations
  • ECG data processing

Sleep Quality Assessment

Detailed sleep metrics analysis with pattern recognition and efficiency measurements.

  • Deep sleep duration tracking and optimization
  • Sleep efficiency scoring and analysis
  • Heart rate during sleep monitoring
  • Sleep duration and quality metrics with statistical analysis

Respiratory Analysis

Advanced respiratory monitoring with trend analysis and statistical insights.

  • Breathing frequency monitoring (min, max, average)
  • Respiration rate during sleep tracking
  • Statistical variance analysis
  • Respiratory pattern recognition

Comprehensive trend analysis and relationship detection between different health metrics.

  • Multi-biomarker trend analysis
  • ECG-heart rate relationship assessment
  • Sleep disruption impact on heart rate
  • Long-term heart rate trend monitoring

Guardrails System

Ensures appropriate use of the system with role-specific limitations.

  • Patient agent: Limited to data analytics only
  • Coach agent: Fitness and dietary recommendations
  • Doctor agent: Medical recommendations and insights
  • Content filtering and validation

Natural Language Interface

Intuitive conversation-based interface for all agent interactions.

  • Natural language processing of health queries
  • Contextual understanding of medical terminology
  • Agent-specific response generation
  • Conversational health data exploration

Tech Stack

Frontend

  • CSS, TypeScript: Core web technologies

Backend

  • FastAPI: Modern, high-performance web framework for building APIs
  • PostgreSQL (on Google Cloud Platform): Database for storing patient health data
  • Python: Programming language

Deployment

  • Docker: Containerization for consistent deployment
  • Cloud Run: Serverless deployment platform
  • GitHub Actions: CI/CD pipeline for automated deployment
  • Netlify: Frontend hosting and deployment

Agent Details

Covita uses an agent-based architecture powered by AI language models:

Agent Implementation

  • Models Used:
    • OpenAI o3-mini: Default model for all agent types
    • OpenAI GPT-4o: Advanced model option for detailed analysis
    • Gemini: Alternative model option available in UI
  • Framework: Open AI Agents SDK for agent creation and management
  • Agent Types:
    • Patient Agent: Provides data analysis without recommendations
    • Coach Agent: Offers fitness and dietary recommendations
    • Doctor Agent: Delivers medical insights and recommendations

Agent Tools

Each agent has specialized tools for accessing and analyzing Patient 0’s health data:
  • get_min_heart_rate: Retrieves minimum heart rate value
  • get_max_heart_rate: Retrieves maximum heart rate value
  • get_average_heart_rate: Calculates average heart rate
  • get_average_heart_rate_last_month: Retrieves heart rate average for past 30 days
  • get_min_systolic_blood_pressure: Gets minimum systolic reading
  • get_max_systolic_blood_pressure: Gets maximum systolic reading
  • get_average_systolic_blood_pressure: Calculates average systolic pressure
  • get_systolic_blood_pressure_std: Calculates standard deviation of systolic readings
  • get_min_diastolic_blood_pressure: Gets minimum diastolic reading
  • get_max_diastolic_blood_pressure: Gets maximum diastolic reading
  • get_average_diastolic_blood_pressure: Calculates average diastolic pressure
  • get_diastolic_blood_pressure_std: Calculates standard deviation of diastolic readings
  • get_ecg_std: Retrieves standard deviation of ECG measurements
  • get_min_breathing_frequency: Retrieves minimum breathing rate
  • get_max_breathing_frequency: Retrieves maximum breathing rate
  • get_average_breathing_frequency: Calculates average breathing frequency
  • get_breathing_frequency_std: Calculates standard deviation of breathing rates
  • get_min_respiration_rate: Gets minimum respiration rate during sleep
  • get_max_respiration_rate: Gets maximum respiration rate during sleep
  • get_average_respiration_rate: Calculates average respiration rate
  • get_respiration_rate_std: Calculates standard deviation of respiration measurements
  • get_min_deep_sleep_duration: Gets minimum deep sleep time
  • get_max_deep_sleep_duration: Gets maximum deep sleep time
  • get_average_deep_sleep_duration: Calculates average deep sleep duration
  • get_deep_sleep_duration_std: Calculates standard deviation of deep sleep periods
  • get_min_sleep_heart_rate: Retrieves minimum heart rate during sleep
  • get_max_sleep_heart_rate: Retrieves maximum heart rate during sleep
  • get_average_sleep_heart_rate: Calculates average heart rate during sleep
  • get_sleep_heart_rate_std: Calculates standard deviation of sleep heart rate
  • get_min_sleep_efficiency: Gets minimum sleep efficiency score
  • get_max_sleep_efficiency: Gets maximum sleep efficiency score
  • get_average_sleep_efficiency: Calculates average sleep efficiency
  • get_sleep_efficiency_std: Calculates standard deviation of sleep efficiency
  • get_min_total_sleep_time: Gets minimum total sleep duration
  • get_max_total_sleep_time: Gets maximum total sleep duration
  • get_average_total_sleep_time: Calculates average total sleep time
  • get_total_sleep_time_std: Calculates standard deviation of sleep durations
  • get_current_datetime: Retrieves current date and time for reporting
  • get_sleep_metrics_summary: Generates comprehensive sleep quality report
  • analyze_ecg_heart_rate_relationship: Examines correlation between ECG and heart rate
  • get_heart_rate_trends: Analyzes heart rate changes over time
  • analyze_sleep_disruptions_heart_rate_relationship: Studies impact of sleep disruptions on heart rate
  • get_all_biomarker_trends: Comprehensive analysis of all health metrics and their trends

Other Experiments

During the development of Covita Alpha, we experimented with various LLM providers to evaluate their performance and compatibility with our system.

Claude Compatibility Issues

We evaluated Claude as an alternative model for our agent implementation but found compatibility issues:

Key Findings

  • Claude doesn’t support structured responses required by OpenAI Agents SDK
  • Incompatible with the Pydantic-based architecture of our system
  • Conclusion

    While Claude showed promising natural language capabilities, its incompatibility with our OpenAI Agents SDK framework made integration unfeasible for this version.

    Need Help?

    If you encounter any issues or have questions, our team is here to help.