未越狱设备提取数据_从三星设备中提取健康数据

未越狱设备提取数据

Health data is collected every time you have your phone in your pocket. Apple or Android, the phones are equipped with a pedometer that counts your steps. Hence, health data is recorded. This data could be your one free data mart for a simple Machine Learning or some other project related to Health data. It’s yours and free to use!. Let’s see how we can export data from the Samsung S-Health App.

每当您将手机放在口袋中时,都会收集健康数据。 在Apple或Android上,手机配有计步器,可以计算您的步数。 因此,记录健康数据。 该数据可以是简单机器学习或其他与健康数据相关的项目的免费数据集市。 它是您的,免费使用! 让我们看看如何从Samsung S-Health App导出数据。

从手机导出 (Exporting from Phone)

The data download feature is available in your Samsung health app.

三星健康应用程序中提供了数据下载功能。

  • Open health app

    打开健康应用
  • Open the left side panel — click on the settings wheel

    打开左侧面板-单击设置轮
  • Find “Download personal data” button

    找到“下载个人数据”按钮

  • Follow instructions (you’ll need to login) and click Download

    按照说明进行操作(您需要登录),然后单击下载。

  • You’ll be shown with the location to find your health data

    系统会向您显示可以找到您的健康数据的位置

This probably is the easiest thing to do. However, understanding the data is a bit complicated. Let’s go through each of the file and its content to understand how Samsung health app stores data.

这可能是最容易的事情。 但是,了解数据有点复杂。 让我们浏览每个文件及其内容,以了解Samsung Health App如何存储数据。

导出数据 (Exported Data)

You will see the following set of files with data. In place of T you’ll see the export timestamp. In the files folder, you’ll see the profile picture image. In the folder named jsons, you can find the JSON objects for data referred in the CSV files (I’ll not talk about JSONS in this article). Please note that the data columns of CSV files will also contain the package extension com.samsung.health. However, for the simplicity of the text, I will ignore when I explain the content of the CSV files.

您将看到以下带有数据的文件集。 代替T您将看到导出时间戳。 在文件文件夹中,您将看到个人资料图片图像。 在名为jsons的文件夹中,您可以找到CSV文件中引用的数据的JSON对象(本文中不再讨论JSONS)。 请注意,CSV文件的数据列还将包含软件包扩展名com.samsung.health 。 但是,为了文字简洁起见,当我解释CSV文件的内容时,我将忽略它。

com.samsung.health.device_profile.T.csv  com.samsung.shealth.preferences.T.csv  com.samsung.health.floors_climbed.T.csv  com.samsung.shealth.report.T.csv  com.samsung.health.food_info.T.csv  com.samsung.shealth.rewards.T.csv  com.samsung.health.height.T.csv  com.samsung.shealth.sleep.T.csv  com.samsung.health.sleep_stage.T.csv  com.samsung.shealth.social.leaderboard.T.csv  com.samsung.health.user_profile.T.csv  com.samsung.shealth.social.public_challenge.T.csv  com.samsung.health.water_intake.T.csv  com.samsung.shealth.social.public_challenge.detail.T.csv  com.samsung.health.weight.T.csv  com.samsung.shealth.social.public_challenge.extra.T.csv  com.samsung.shealth.activity.day_summary.T.csv  com.samsung.shealth.social.public_challenge.history.T.csv  com.samsung.shealth.activity.goal.T.csv  com.samsung.shealth.social.public_challenge.leaderboard.T.csv  com.samsung.shealth.activity_level.T.csv  com.samsung.shealth.social.service_status.T.csv  com.samsung.shealth.best_records.T.csv  com.samsung.shealth.stand_day_summary.T.csv  com.samsung.shealth.breathing.T.csv  com.samsung.shealth.step_daily_trend.T.csv  com.samsung.shealth.caloric_balance_goal.T.csv  com.samsung.shealth.stress.T.csv  com.samsung.shealth.calories_burned.details.T.csv  com.samsung.shealth.stress.histogram.T.csv  com.samsung.shealth.exercise.T.csv  com.samsung.shealth.tracker.heart_rate.T.csv  com.samsung.shealth.exercise.weather.T.csv  com.samsung.shealth.tracker.pedometer_day_summary.T.csv  com.samsung.shealth.food_frequent.T.csv  com.samsung.shealth.tracker.pedometer_event.T.csv  com.samsung.shealth.food_goal.T.csv  com.samsung.shealth.tracker.pedometer_recommendation.T.csv  com.samsung.shealth.goal.T.csv  com.samsung.shealth.tracker.pedometer_step_count.T.csv  com.samsung.shealth.goal_history.T.csv  com.samsung.shealth.insight.milestones.T.csv  com.samsung.shealth.permission.T.csv  
jsons
files

来自传感器的健康数据 (Health Data from Sensors)

Image for post
Photo by Emiliano Cicero on Unsplash
Emiliano Cicero在Unsplash上的照片

These are the files that contain data from the sensors including heart rate data and steps from the Galaxy Watch and the Phone itself. Step counts are collected from pedometer and accelerometer sensors. Heart rate is measured through the PPG (Photoplethysmogram) sensor in your watch. For these data, you have to look into the following files.

这些文件包含来自传感器的数据,包括心率数据以及Galaxy Watch和Phone本身的步骤。 步数是从计步器加速度计传感器收集的。 心率通过手表中的PPG(光电容积描记)传感器测量。 对于这些数据,您必须查看以下文件。

心率数据 (Heart Rate Data)

Heart rate data are included in the following file.

心率数据包含在以下文件中。

com.samsung.shealth.tracker.heart_rate.T.csv

The important information in this file is the update_time and heart_rate columns. You will also find the min and max values along with end_time, which shows the end of the recording.

该文件中的重要信息是update_timeheart_rate列。 您还将找到最小和最大值以及显示记录结束的end_time

Image for post
Heart Rate Information
心率信息

Out of curiosity, I plotted a histogram of my heart rates to see how my heart behaves. It seems I have a heart rate in the range 65–80bps. Googling resulted in “A normal resting heart rate for adults ranges from 60 to 100 beats per minute”. I guess the histogram makes sense. One of the main concerns, when I bought the watch, was to keep a note of my heart rate. Because, usually at the doctors, I have an above-average heart rate with a panicked person’s blood pressure. Read here if you want to know more about that scenario at Doctors.

出于好奇,我绘制了心率的直方图,以查看我的心脏的行为。 看来我的心律在65-80bp s范围内。 谷歌搜索导致“成年人的正常静息心率范围为每分钟60到100次跳动” 。 我猜直方图是有道理的。 当我购买手表时,主要要考虑的问题之一是记下我的心律。 因为通常在医生那里,我的心跳速度高于平均水平,而患者的血压却感到恐慌。 如果您想在Doctors上了解有关该场景的更多信息,请阅读此处

Image for post
Hear Rata Histogram
听到Rata直方图

步跟踪数据 (Step Tracker Data)

Image for post
Photo by Chander R on Unsplash
Chander R在Unsplash上的照片

Step tracker data are available in the following files;

以下文件中提供了步骤跟踪器数据;

com.samsung.shealth.step_daily_trend.202008162231.csv
com.samsung.shealth.tracker.pedometer_step_count.202008162231.csv
com.samsung.shealth.tracker.pedometer_day_summary.202008162231.csv
Image for post
Daily Summary
每日总结

In the step_daily_trend you will see the daily values with step count, calories burnt, distance walked and the speed. However, in the pedometer_step_count you will find all the step information including running steps, walking steps. Basically this file contains the pedometer tracking information. In the last file (pedometer_day_summary), you can find the daily step summaries. Which might be enough for most of the tasks.

step_daily_trend中,您将看到每日数值,包括步数,燃烧的卡路里,行走的距离和速度。 但是,在pedometer_step_count中,您将找到所有步骤信息,包括跑步步骤,步行步骤。 基本上,此文件包含计步器跟踪信息。 在最后一个文件( pedometer_day_summary )中,您可以找到每日步骤摘要。 对于大多数任务而言,这可能就足够了。

Let’s try to do some simple analysis of these data.

让我们尝试对这些数据进行一些简单的分析。

Image for post
Step Counts vs Date
步数与日期

The above observation sort of aligns with the seasonal changes here in Australia. During the time June to December, we have cold temperatures. From December to June, we have much better running weather. However, COVID-19 came into play here in Canberra during the April and May, hence the low activity. However, in June my wife and I walked and tried to get back on the shape so we can eat out a lot during our anniversary period.

上述观察结果与澳大利亚这里的季节性变化相吻合。 在6月至12月的这段时间里,气温较低。 从12月到6月,我们的跑步天气要好得多。 但是,COVID-19在4月和5月在堪培拉开始活动,因此活动量很低。 但是,在六月,我和妻子走过路,试图恢复身材,这样一来周年纪念期间我们可以吃很多东西。

Step count isn’t quite a generic measure of activity. One might workout in a gym without any step count yet burning a lot of fat. Such activities are usually measured by calories using the heart rate sensor. However, as you can see below, my calorie counts are somewhat correlated with the step counts (There is a slight deviation of the X-axis, but they are close). This is because the only workout I prefer is running or jogging.

步数并不是一般的活动量度。 一个人可以在健身房锻炼而无需花费很多时间,却消耗了大量脂肪。 通常使用心率传感器通过卡路里来测量此类活动。 但是,正如您在下面看到的那样,我的卡路里数与步数有一定的相关性(X轴略有偏差,但是很接近)。 这是因为我更喜欢的唯一锻炼是跑步或慢跑。

Image for post
Calories Burnt vs Date
卡路里消耗与日期

Something interesting is visible. On days I have run, I haven’t made many steps. In contrast, on walking days I have made it over 10000 steps. I wonder, whether I get tired on days I walk or the running steps aren’t counted for daily step count. Something I shall investigate in another article though.

有趣的东西是可见的。 在跑步的日子里,我并没有采取很多步骤。 相反,在步行的日子里,我走了10000多步。 我想知道,无论是在走路的日子里是否累了,还是每天的跑步步数都不算在内。 不过,我将在另一篇文章中对此进行调查。

其他资讯 (Other Information)

There is more information including, weight and carb intakes. For that, you’ll have to have them recorded manually. However, there are some insightful data in the following file.

有更多信息,包括体重和碳水化合物摄入量。 为此,您必须手动记录它们。 但是,以下文件中有一些有见地的数据。

com.samsung.shealth.exercise.weather.T.csv
Image for post
Exercise Weather Data
运动天气数据

However, in order to use this file, you’ll have to combine this with the exercise file. That is for another article!

但是,为了使用此文件,您必须将其与练习文件结合在一起。 那是另一篇文章!

I hope this article would make a useful outcome of the data that you most often get rid of. Happy reading!

我希望本文能为您最常用的数据带来有益的结果。 祝您阅读愉快!

翻译自: https://towardsdatascience.com/extract-health-data-from-your-samsung-96b8a2e31978

未越狱设备提取数据

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/390951.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

[BZOJ2599][IOI2011]Race 点分治

2599: [IOI2011]Race Time Limit: 70 Sec Memory Limit: 128 MBSubmit: 3934 Solved: 1163[Submit][Status][Discuss]Description 给一棵树,每条边有权.求一条简单路径,权值和等于K,且边的数量最小.N < 200000, K < 1000000 Input 第一行 两个整数 n, k第二..n行 每行三…

分词消除歧义_角色标题消除歧义

分词消除歧义折磨数据&#xff0c;它将承认任何事情 (Torture the data, and it will confess to anything) Disambiguation as defined in the vocabulary.com dictionary refers to the removal of ambiguity by making something clear and narrowing down its meaning. Whi…

北航教授李波:说AI会有低潮就是胡扯,这是人类长期的追求

这一轮所谓人工智能的高潮&#xff0c;和以往的几次都有所不同&#xff0c;那是因为其受到了产业界的极大关注和参与。而以前并不是这样。 当今世界是一个高度信息化的世界&#xff0c;甚至我们有一只脚已经踏入了智能化时代。而在我们日常交流和信息互动中&#xff0c;迅速发…

在加利福尼亚州投资于新餐馆:一种数据驱动的方法

“It is difficult to make predictions, especially about the future.”“很难做出预测&#xff0c;尤其是对未来的预测。” ~Niels Bohr〜尼尔斯波尔 Everything is better interpreted through data. And data-driven decision making is crucial for success in any ind…

阿里云ESC上的Ubuntu图形界面的安装

系统装的是Ubuntu Server 16.04 64位版的图形界面&#xff0c;这里是转载的一个大神的帖子 http://blog.csdn.net/dk_0228/article/details/54571867&#xff0c; 当然自己也再记录一下&#xff0c;加深点印象 1.更新apt-get 保证最新 apt-get update 2.用putty或者Xshell连接远…

近似算法的近似率_选择最佳近似最近算法的数据科学家指南

近似算法的近似率by Braden Riggs and George Williams (gwilliamsgsitechnology.com)Braden Riggs和George Williams(gwilliamsgsitechnology.com) Whether you are new to the field of data science or a seasoned veteran, you have likely come into contact with the te…

VMware安装CentOS之二——最小化安装CentOS

1、上文已经创建了一个虚拟机&#xff0c;现在我们点击开启虚拟机。2、虚拟机进入到安装的界面&#xff0c;在这里我们选择第一行&#xff0c;安装或者升级系统。3、这里会提示要检查光盘&#xff0c;我们直接选择跳过。4、这里会提示我的硬件设备不被支持&#xff0c;点击OK&a…

在Python中使用Seaborn和WordCloud可视化YouTube视频

I am an avid Youtube user and love watching videos on it in my free time. I decided to do some exploratory data analysis on the youtube videos streamed in the US. I found the dataset on the Kaggle on this link我是YouTube的狂热用户&#xff0c;喜欢在业余时间…

老生常谈:抽象工厂模式

在创建型模式中有一个模式是不得不学的,那就是抽象工厂模式(Abstract Factory),这是创建型模式中最为复杂,功能最强大的模式.它常与工厂方法组合来实现。平时我们在写一个组件的时候一般只针对一种语言,或者说是针对一个区域的人来实现。 例如:现有有一个新闻组件,在中国我们有…

数据结构入门最佳书籍_最佳数据科学书籍

数据结构入门最佳书籍Introduction介绍 I get asked a lot what resources I recommend for people who want to start their Data Science journey. This section enlists books I recommend you should read at least once in your life as a Data Scientist.我被很多人问到…

函数式编程概念

什么是函数式编程 简单地说&#xff0c;函数式编程通过使用函数&#xff0c;将值转换成抽象单元&#xff0c;接着用于构建软件系统。 面向对象VS函数式编程 面向对象编程 面向对象编程认为一切事物皆对象&#xff0c;将现实世界的事物抽象成对象&#xff0c;现实世界中的关系抽…

多重插补 均值插补_Feature Engineering Part-1均值/中位数插补。

多重插补 均值插补Understanding the Mean /Median Imputation and Implementation using feature-engine….!了解使用特征引擎的均值/中位数插补和实现…。&#xff01; 均值或中位数插补&#xff1a; (Mean or Median Imputation:) The mean or median value should be calc…

linux 查看用户上次修改密码的日期

查看root用户密码上次修改的时间 方法一&#xff1a;查看日志文件&#xff1a; # cat /var/log/secure |grep password changed 方法二&#xff1a; # chage -l root-----Last password change : Feb 27, 2018 Password expires : never…

客户行为模型 r语言建模_客户行为建模:汇总统计的问题

客户行为模型 r语言建模As a Data Scientist, I spend quite a bit of time thinking about Customer Lifetime Value (CLV) and how to model it. A strong CLV model is really a strong customer behavior model — the better you can predict next actions, the better yo…

【知识科普】解读闪电/雷电网络,零基础秒懂!

知识科普&#xff0c;解读闪电/雷电网络&#xff0c;零基础秒懂&#xff01; 闪电网络的技术是革命性的&#xff0c;将实现即时0手续费的小金额支付。第一步是解决扩容问题&#xff0c;第二部就是解决共通性问题&#xff0c;利用原子交换协议和不同链条的状态通道结合&#xff…

Alpha 冲刺 (5/10)

【Alpha go】Day 5&#xff01; Part 0 简要目录 Part 1 项目燃尽图Part 2 项目进展Part 3 站立式会议照片Part 4 Scrum 摘要Part 5 今日贡献Part 1 项目燃尽图 Part 2 项目进展 已分配任务进度博客检索功能&#xff1a;根据标签检索流程图 -> 实现 -> 测试近期比…

多维空间可视化_使用GeoPandas进行空间可视化

多维空间可视化Recently, I was working on a project where I was trying to build a model that could predict housing prices in King County, Washington — the area that surrounds Seattle. After looking at the features, I wanted a way to determine the houses’ …

机器学习 来源框架_机器学习的秘密来源:策展

机器学习 来源框架成功的机器学习/人工智能方法 (Methods for successful Machine learning / Artificial Intelligence) It’s widely stated that data is the new oil, and like oil, data needs the right refinement to evolve to be utilised perfectly. The power of ma…

WebLogic调用WebService提示Failed to localize、Failed to create WsdlDefinitionFeature

在本地Tomcat环境下调用WebService正常&#xff0c;但是部署到WebLogic环境中&#xff0c;则提示警告&#xff1a;[Failed to localize] MEX0008.PARSING_MDATA_FAILURE<SOAP_1_2 ......警告&#xff1a;[Failed to localize] MEX0008.PARSING_MDATA_FAILURE<SOAP_1_1 ..…

呼吁开放外网_服装数据集:呼吁采取行动

呼吁开放外网Getting a dataset with images is not easy if you want to use it for a course or a book. Yes, there are many datasets with images, but few of them are suitable for commercial or educational use.如果您想将其用于课程或书籍&#xff0c;则获取带有图像…