---
# System prepended metadata

title: 作業一

---

# Assignment 1 / Group (2 people)
Goal：Using Polar H10 (ECG) and Polar Verity sense (PPG) to investigate your question about heart function.

Deadline：2024/6/7 (Friday)

Written Report：Including **Question**, **Experiment Design**, **Methods**, **Experiment Results**, **Conclusions**
## Sample of experiment design
> Just example (You still have to design your own experiments.)
* Goal : Heart rate change after seeing scary pictures
*  Experiment design 
  The  task consisted of two different event types : Scary trials and Control trials. Fixation marks were displayed for 5s. The two event types were presented in pseudorandom order. Visual stimuli were controlled using Psychtoolbox on Matlab ([psychtoolbox.org](http://psychtoolbox.org)). Participants viewed these stimuli through the screen. Each session contained three runs of this task.
    
    * Scary trials : Let subjects watch scary pictures intently for 10s, then let them rate the intensity of the worry.
    * Intertrial : 5s
    * Control trials : Let subjects watch normal pictures intently for 10s, then let them rate the intensity of the worry.
![EXP](https://hackmd.io/_uploads/rJaxGrr-A.jpg)


---
## Suggestion and Notice

1. Methods
    * t test, ANOVA
    * correlation
    * ML
    
2. It depends on you that how to utilize PPG and ECG.
3. [Tool: Psychtoolbox](http://psychtoolbox.org)

    * If you have any problems on Psychtoolbox, you may read the [official documents](http://psychtoolbox.org/docs/Psychtoolbox.html) first and try to fix the problems by yourself. 
    * There are some [demo codes](https://peterscarfe.com/ptbtutorials.html) for beginners.
### <font color="#aa0000">Note that you have to collect data from at least **3** subjects</font>
### <font color="#aa0000">And you have to finish experiment design before borrowing the devices.</font>
---
## The devices
* You need to fill the [sheet here](https://docs.google.com/spreadsheets/d/1gyYSP6b-B7NRl1rxZCKOnMBBFAUY3o_cqhJj3zwfwEQ/edit?usp=sharing) for borrowing the devices.(**Use NCKU Gsuit email for editting**)
* You must return the devices on time.
* The following links are the documents of H10 and Verity Sense, you have to read them before you start to use the devices.

[H10](https://support.polar.com/e_manuals/h10-heart-rate-sensor/polar-h10-user-manual-chinese-traditional/introduction.htm)

![ryQPdrMbA](https://hackmd.io/_uploads/r1X_fBHWC.jpg)


[Verity Sense](https://support.polar.com/e_manuals/verity-sense/polar-verity-sense-user-manual-chinese-traditional/introduction.htm)

![ry9ndHfbR](https://hackmd.io/_uploads/HksOfBHbC.jpg)


### [Tool: WebPolarReader](https://github.com/cjs30/WebPolarReader)
* Read data from the devices.
* UI
    1. Connect the device.
    2. After connecting, press "Start all streams" to start recording data.
    3. You may need to add mark for your experiment.
    4. Finally, press "Download data"
    5. If you want to re-collect data, you need to refresh the page.
    
![as](https://hackmd.io/_uploads/BJ5uBvBW0.jpg)


---
### Contact TA: P76121144@gs.ncku.edu.tw(蔡文賓)