Prifina for Developers
  • Docs
  • Getting Data
  • Support
  • Slack
  • Blog
  • Prifina.com

Artificial Huawei Healthkit Data for Software Development

2/28/2023

 
In this post, we are going deeper into the Dynamic Data project, looking at the Huawei dynamic data (library available here on GitHub and at NPM). Opening the library, you’ll see there are 3 types of data objects: ActivityRecord, DataCollector, and HealthRecord.
Learn more about dynamic data generators and the benefits of artificial data in software development.
Picture

About the data source

Huawei is a company that develops and sells a range of other consumer electronics products such as laptops, tablets, wearables, and smart home devices. Huawei has grown into a global technology giant and is now one of the world's largest providers of telecommunications equipment and smartphones.

Huawei Healthkit is a software development kit (SDK) developed by Huawei that provides developers with access to health and fitness-related data from Huawei wearable devices and smartphones. This data includes information such as step count, heart rate, sleep data, and workout data. The Healthkit API provides developers with a simple and standardized way to access and utilize this data in their own applications, allowing them to create innovative and personalized health and fitness experiences for users. Huawei Healthkit is part of the company's larger ecosystem of software and hardware products designed to enhance the user experience across a range of devices.

Approach used

Huawei provides both an API and SDK to access and mutate user health data. By inspecting the example data and the reference, several JSON objects were constructed and then stored in an NPM package. Each of these JSON objects then had an associated 'Async' version created. The index file of the package imports these data objects and exports them in a collection called “Data”. These mockup files make up the huawei-data package.
ActivityRecord
DataCollector
HealthRecord
The huawei-mockups package imports the files above and goes through each attribute generating artificial (new) data using proprietary functions, such as those found in the utils package.

For example, with the ActivityRecord object:

    

    

Use case ideas

  • Health and fitness tracking apps: ActivityRecord and HealthRecord data objects can be used to track user activities, such as steps taken, distance traveled, and calories burned. This data can be used to create fitness plans and provide personalized recommendations for diet and exercise.
  • Healthcare apps: HealthRecord data objects can be used to track health metrics such as blood pressure, heart rate, and blood sugar levels. This data can be used by healthcare providers to monitor patient health and provide personalized treatment plans.
  • Wearable device apps: The DataCollector data object can be used to integrate data collected from wearable devices, such as smartwatches and fitness trackers, into a health or fitness app.
  • Research and analysis: The Healthkit API data objects can be used for research and analysis purposes, allowing researchers to collect and analyze large amounts of health and fitness data from a diverse population.

Explore entirely new use cases

  • ActivityRecord: The ActivityRecord object can be used to track different types of physical activities such as walking, running, cycling, and swimming. The API provides detailed information about the duration, distance, calories burned, heart rate, and other relevant metrics.
  • HealthRecord: The HealthRecord object can be used to monitor various health parameters such as blood pressure, blood glucose, body temperature, and weight. This data can be used purposes such as tracking progress towards health goals.
  • DataCollector: The DataCollector object can be used to collect and analyze data from various sources such as wearables, sensors, and other devices. This data can be used to gain insights into user behavior, identify patterns, and improve the user experience.

Ideas to combine with some other data sources

  • Calendar API:
    • Fitness Planner: An app that integrates the user's fitness data, such as steps taken and calories burned, with their calendar events to help them plan their workouts around their schedule. For example, the app could suggest a workout routine for the user based on their availability and fitness goals.
    • Health Tracker: An app that tracks the user's health data, such as blood pressure and heart rate, along with their calendar events to help them identify patterns and correlations between their health and their daily activities. This could help the user make lifestyle changes to improve their overall health.
    • Wellness Reminder: An app that sends the user reminders throughout the day to take breaks and engage in healthy activities, such as going for a walk or practicing mindfulness, based on their calendar events and fitness data.
    • Fitness Challenge: An app that allows users to compete with friends and colleagues in fitness challenges based on their Huawei HealthKit data and calendar events. For example, the app could suggest a step challenge during a busy workweek to encourage users to stay active despite their busy schedules.
    • Healthy Habits: An app that helps users build and track healthy habits, such as drinking more water or getting enough sleep, based on their Huawei HealthKit data and calendar events. The app could provide personalized recommendations and progress tracking to help users achieve their goals.
  • Entertainment API:
    • Personalized entertainment recommendations based on user's health data: By combining user's health data with their entertainment preferences gathered from the entertainment APIs, apps can provide personalized recommendations for movies, TV shows, or games that are not only entertaining but also align with the user's health goals.
    • Fitness challenges with rewards: Apps could create fitness challenges where users can compete against each other based on their health data and earn rewards like free subscriptions to entertainment services.
    • Integration with gaming platforms: Apps could integrate with gaming platforms like Twitch to encourage users to take a break from gaming after a certain period of time or when certain health goals are met.
    • Health and wellness education: Apps could use data from the Huawei Healthkit API and entertainment APIs to create educational content on health and wellness topics that are engaging and entertaining.
    • Mood tracking: Apps could use data from the entertainment APIs and Huawei Healthkit API to track user's mood and provide recommendations for activities that are both entertaining and help improve their mood.
  • Financial API:
    • Personal finance management app: This app could help users manage their expenses and track their spending habits. By combining health data with financial data, the app could help users identify patterns in their spending that could be impacting their health.
    • Health insurance app: By integrating Huawei Healthkit data with insurance data, an app could provide personalized health insurance plans to users. For example, if a user has a high level of physical activity and good sleep habits, the app could suggest an insurance plan that rewards healthy behavior with lower premiums.
    • Online shopping app: An app that integrates Huawei Healthkit data with online shopping data could provide personalized recommendations to users based on their health and fitness goals. For example, if a user is trying to lose weight, the app could recommend healthy snacks or workout equipment.
  • Other APIs:
    • Weather API: An app that combines Huawei Healthkit data with weather data can help users adjust their fitness activities based on weather conditions. For example, the app can suggest indoor activities on rainy days or provide reminders to stay hydrated during hot and humid weather.
    • Transportation API: An app that combines Huawei Healthkit data with transportation data can encourage users to walk or bike to work by tracking the number of steps or distance traveled. The app can also suggest walking or biking routes based on the user's fitness level.
    • Social media API: An app that combines Huawei Healthkit data with social media data can help users connect with like-minded people who share similar fitness goals. For example, the app can suggest fitness challenges or group workouts based on the user's interests.
    • Travel API: An app that combines Huawei Healthkit data with travel data can help users maintain their fitness routine while on vacation. The app can suggest local workout facilities, hiking trails, or other fitness activities based on the user's location.
    • Education API: An app that combines Huawei Healthkit data with education data can provide users with personalized health and fitness advice based on their age, gender, and fitness level. The app can also suggest workout routines or healthy eating plans based on the user's preferences and goals.

Open-source data library

We welcome contributions and forks to this data set, and look forward to seeing what developers build in our Liberty. Equality. Data. Slack channel.

Considerations for next version/improvements

  • Changes to Activity Record faker that fakes all the structure depending on the acitivity type
    • Some Activities already acheive this (as seen in the example) but definitely can be improved
  • More complete data such that the data returned by the dynamic data faker looks completely authentic
Join our Slack community; Liberty. Equality. Data. to brainstorm and collaborate with other app developers, designers, and our team.

Comments are closed.

    Categories

    All
    23andme
    Ancestry
    Apple
    Dynamic Data
    Fitbit
    Garmin
    Google
    Huawei
    Ios
    Movesense
    Open Source
    Oura
    Peloton
    Polar
    Runkeeper
    Sensor BNO055
    Spotify
    Strava
    Twitch
    Uber
    Use Case
    Veri
    Whoop
    Withings

    RSS Feed

© 2023 PRIFINA INC. ​
Terms of Service
Privacy Policy
About Prifina
  • Docs
  • Getting Data
  • Support
  • Slack
  • Blog
  • Prifina.com