beamai / BeamAILite-iOS

Monitor stress, heart rate and heart rate variability through the selfie camera. Source code for the Beam AI Lite iOS app.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Beam AI Lite (iOS)

This repository contains the source code for Beam AI Lite built using the Beam AI SDK. With Beam AI Lite, users can monitor their stress, heart rate and heart rate variability through the selfie camera in real-time. You can download Beam AI Lite from App Store.

Beam AI Lite Demo 1Beam AI Lite Demo 2

How Does It Work?

The core stress monitoring technology comes from the Beam AI SDK which enables iOS apps to monitor the user's heart rate, heart rate variability and stress through the selfie-camera. Our technology extracts the user’s pulse wave by analyzing subtle color variations across the skin regions of the user’s face. The user’s pulse is then used to determine stress, heart rate, and heart rate variability. To determine stress, we analyze the variability of the user's heartbeats according to the Baevsky Stress Index which has been shown to provide an accurate quantitative measure of physiological stress.

This is one of the two sample projects provided by Beam AI. To explore how the Beam AI SDK can be used to monitor user stress as they browse the web, see Beam AI Browser. You can find Beam AI Browser's source code here on GitHub.

Setup & Run (in less than 15 minutes)

  1. Clone this repository and open it up in Xcode.
  2. Add the Beam AI SDK to the project inside Xcode. Simply click File > Add Packages. Then, look up https://github.com/beamai/BeamAISDK-iOS/ and click + to add the Beam AI SDK package to your project.
  3. Update the beamID on line 53 of ViewController.swift. You will need a beamID to be able to use the Beam AI SDK. You can sign up to get your beamID dashboard.beamhealth.ai.
self.beamAI = try! BeamAI(beamID: "your-20-char-beamID", frameRate: 30, window: 60.0, updateEvery: 1.0)
  1. Update app team to your App Store developer account, and deploy onto an iPhone device.
  2. Enjoy the build and race to build the super cool application you are thinking about 😎! Note that the SDK works on iPhone and iPad devices, but not the Xcode simulators as those do not support camera access. You will therefore need to build and test this sample project on a physical iPhone device.

Contact

For feature requests, questions and support, please open a GitHub issue. For all other inquiries, please email us directly at contact@beamhealth.ai!

Follow us on LinkedIn, Instagram, Twitter and YouTube to stay up-to-date with our latest news, updates and releases - and lots of fun demos and posts!

About

Monitor stress, heart rate and heart rate variability through the selfie camera. Source code for the Beam AI Lite iOS app.


Languages

Language:Swift 100.0%