Skip to content

Sample application to demonstrate the functionality of PeakSwift

License

Notifications You must be signed in to change notification settings

CardioKit/PeakWatch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PeakWatch

PeakWatch is a project to demonstrate, evaluate, and validate the functionality of the PeakSwift package, which implements algorithms for cleaning up electrocardiogram (ECG) signals, detecting R-peaks, and evaluating signal quality. The associated application PeakWatch takes advantage of all the features PeakSwift has to offer and presents this content in a visually appealing way. Calculations are performed using Apple's HKElectrocardiogram on the device. The results, including electrocardiogram signals, detected R-peaks, transit time, and signal quality, can be exported as a JSON file for further analysis. A Jupyter notebook is provided for analysis of the data to provide insight into runtime, consistency of signal quality assessment, and accuracy of detected peaks compared to the established NeuroKit library.

Features

  • Demonstrates the functionality of PeakSwift's ECG signal processing and R-peak detection algorithms.
  • Displays ECG data in an intuitive and visually appealing format.
  • Utilizes Apple's HealthKit for on-device ECG signal analysis.
  • Allows exporting of results, including ECG signals, detected R-peaks, runtime, and signal quality, as a JSON file.
  • Includes a Jupyter notebook for in-depth data analysis and comparison with the NeuroKit library.

Screenshots

Installation

To install PeakWatch:

  1. Clone this repository: git clone https://github.com/CardioKit/PeakWatch.git
  2. Navigate to src
  3. Open the project in Xcode.
  4. Build and run on a simulator or device.

Usage

Follow these steps to use PeakWatch:

  1. Launch the app on your iOS device.
  2. Provide necessary permissions for accessing HealthKit data.
  3. Explore the ECG data, detected R-peaks, and signal quality presented by the app.
  4. Export results as a JSON file for further analysis.

Data Analysis

Use the provided Jupyter notebook to perform detailed data analysis:

  1. Navigate to the analysis folder.
  2. Open the Jupyter notebook file.
  3. Follow the instructions within the notebook to analyze runtime, signal quality assessment consistency, and peak detection accuracy.

Dependencies

PeakWatch relies on the following libraries:

Contributing

We welcome contributions to enhance PeakWatch:

  1. Fork the repository.
  2. Create a new branch: git checkout -b feature/your-feature-name
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin feature/your-feature-name
  5. Create a pull request.

License

This project is licensed under the Apache License 2.0.

About

Sample application to demonstrate the functionality of PeakSwift

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published