Skip to content

利用鼠标位移测量心率(或者抖腿频率)/Measure heartrate (or leg shaking frequency) using mouse displacement

License

Notifications You must be signed in to change notification settings

sszzz830/Mouse_Heartrate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Mouse_Heartrate

利用鼠标位移测量心率(或者抖腿频率)的程序
-Measure heart rate (or leg shaking frequency) using mouse displacement

原理/Method

测量时把鼠标倒过来放在桌子上,然后把手指悬在鼠标传感器上一点点高的位置(测量抖腿频率时也可以把鼠标搭在腿上)
读取一段时间内(默认5s,采样速度100/s)的鼠标位移数据,然后做ICA变换和滤波处理,最后以频谱图上最高峰作为心率/抖腿频率
心率测量准确率受手的位置等影响较大
-Place the mouse upside down on a flat surface and hover your finger slightly above the mouse sensor (you can also place the mouse on your leg to measure leg shaking frequency)
-Read the mouse displacement data over a period of time (default 5s, sampling rate 100/s), then apply ICA transform and filtering to the data. Finally, take the highest peak in the frequency spectrum as the estimated heart rate or leg shaking frequency
-The accuracy of heart rate measurement can be significantly affected by the positioning of the hand and other factors

演示/Demo

测量心率:

(整只手臂悬空,右手中指放在鼠标传感器上面一点点)
Screenshot 2023-07-19 at 10 13 47
Screenshot 2023-07-19 at 10 13 50
Galaxy Watch 4测量结果:
gw4 result

测量抖腿:

(右手食指放在鼠标传感器上面一点点,同时抖腿)
Screenshot 2023-07-19 at 09 53 24
Screenshot 2023-07-19 at 09 53 42

看到这个然后想做的(原推主未附代码)
tw

About

利用鼠标位移测量心率(或者抖腿频率)/Measure heartrate (or leg shaking frequency) using mouse displacement

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages