P4ALL - Affect Sensing Module

A module that enables stress detection through features extracted by Emphatical Sensors.
The Final Version is assessed and validated by the data produced by the ProComp5 Infiniti Hardware(link is external) paired with the SA9309M skin conductance sensor(link is external) and the EKG™ Sensor - T9306M (link is external).

The source code contains two main directories:

  1. Affect Sensing Module(link is external): This folder includes the cpp and the 2 header files that produce the features needed for stress detection.

  2. Affect Sensing Module Desktop App(link is external): This folder includes the test App for the Affect Sensing Module

User Instructions

  1. Include the cpp and h files found in the Affect Sensing Module(link is external) folder to your programm.

Then follow the next lines inside your code to produce the features:

affect_sensing_module *afsm = new affect_sensing_module( 0 );
afsm->set_fileName("filename\\to\\the\\Test_Data\\Procomp_1_rest.txt");
/*
OR  affect_sensing_module *afsm = new affect_sensing_module("filename\\to\\the\\Test_Data\\Procomp_1_rest.txt" , 0 );
*/
afsm->enable_print_txt();

afsm->set_time_segments();

afsm->calculate_GSR_mean();
afsm->calculate_GSR_Standard_Deviation();
afsm->calculate_GSR_RootMeanSquare();
afsm->calculate_GSR_SCR_Features();
afsm->calculate_GSR_Picard_1();
afsm->calculate_GSR_Picard_2();
afsm->calculate_GSR_Picard_3();
afsm->calculate_GSR_Picard_F2();
afsm->calculate_GSR_SCR_Percentile_Features();
afsm->calculate_GSR_MIN_MAX_Features();
afsm->calculate_GSR_Kurtosis_Skewness();
afsm->calculate_GSR_1st_Derivative_negativeSamplesProportion();
afsm->calculate_GSR_Smooth_Derivative_Avg_RMS_NegSamplesProportion();
afsm->calculate_GSR_SCR_Features_gsr31_AeriaUnderSCR_Avg();

afsm->calculate_EKG_LFdivHF_Avg();
afsm->calculate_EKG_RMSSD();
afsm->calculate_EKG_SD1_SD2();
afsm->calculate_EKG_Picard_F2();

afsm->~affect_sensing_module();
  1. Open MFC App(link is external) and customize the code according to your needs.

Funding Acknowledgement

The research leading to these results has received funding from the European Union's Seventh Framework Programme (FP7) under grant agreement No.610510

Rating

0 out of 5 Stars 0 Review

5 Stars
 
0.00%
4 Stars
 
0.00%
3 Stars
 
0.00%
2 Stars
 
0.00%
1 Star
 
0.00%

About

  • There are no comments yet

Thank you! Review submitted.

Ok