Next Article in Journal
LoRaFarM: A LoRaWAN-Based Smart Farming Modular IoT Architecture
Next Article in Special Issue
NeuroVAD: Real-Time Voice Activity Detection from Non-Invasive Neuromagnetic Signals
Previous Article in Journal
Investigation of Machine Learning Approaches for Traumatic Brain Injury Classification via EEG Assessment in Mice
Previous Article in Special Issue
The Reflectance of Human Skin in the Millimeter-Wave Band
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Wireless Sensors System for Stress Detection by Means of ECG and EDA Acquisition

Polytechnic Department of Engineering and Architecture (DPIA), University of Udine, Via delle Scienze 206, 33100 Udine, Italy
Sensors 2020, 20(7), 2026; https://doi.org/10.3390/s20072026
Submission received: 15 February 2020 / Revised: 12 March 2020 / Accepted: 31 March 2020 / Published: 4 April 2020
(This article belongs to the Special Issue Electromagnetic Sensors for Biomedical Applications)

Abstract

:
This paper describes the design of a two channels electrodermal activity (EDA) sensor and two channels electrocardiogram (ECG) sensor. The EDA sensors acquire data on the hands and transmit them to the ECG sensor with wireless WiFi communication for increased wearability. The sensors system acquires two EDA channels to improve the removal of motion artifacts that take place if EDA is measured on individuals who need to move their hands in their activities. The ECG channels are acquired on the chest and the ECG sensor is responsible for aligning the two ECG traces with the received packets from EDA sensors; the ECG sensor sends via WiFi the aligned packets to a laptop for real time plot and data storage. The metrological characterization showed high-level performances in terms of linearity and jitter; the delays introduced by the wireless transmission from EDA to ECG sensor have been proved to be negligible for the present application.

1. Introduction

During recent years, the interest of scientific literature in the measurement of the stress in individuals has increased exponentially. Just in the current year, hundreds of works have been published with the aim of investigating the stress induced by several conditions of every-day life. Some works aim at the measurement of stress in the workplace [1], some others investigate stress while people are playing videogames [2], but the majority of studies investigate the mental stress while people are driving [3,4,5,6,7,8,9,10].
In recent literature [6,11], there have been several works which study driver attention by means of computer vision and eye-tracking systems, but these papers are mainly focused on mental workload and attention of the driver; it has been demonstrated in this field of research that pupil diameter measurement can be correlated to cognitive load of the driver in recognizing obstacles and pedestrians [12]. However, the mental stress of the driver seems to be poorly correlated to pupil diameter or fixation duration [13] and, moreover, the eye-tracking systems need complex and accurate calibration on each subject under test. For these reasons, currently the majority of scientific papers focusing on driver mental stress detection rely on the measurement of bio-signals.
In order to detect the mental stress level of a person, several bio-signals are measured; in Reference [14] photoplethysmogram (PPG) is acquired, in Reference [3] the authors measure the electroencephalogram (EEG), but the electrocardiogram (ECG), with the consequent heart rate variability (HRV), combined with electrodermal activity (EDA) are the most used methodologies [1,4,15,16,17,18,19,20,21,22]. The combination of HRV and EDA methodologies is also widely used to train machine learning algorithms able to detect the level of stress; in the literature, the detection accuracy of stress, obtained from ECG and EDA signals, is in the order of 80 % [23,24,25,26]. Moreover, in the recent past there was an increase in development of new sensors (either for academic or commercial purposes) able to measure the EDA with wearable devices having low invasiveness [27,28,29].
However, the main problem of using different commercial devices (having different protocols and data storage) is the capability of aligning and fusing data with an acceptable accuracy in an automatic way, since the timebase of each sensor is different. In the recent past, we developed a device measuring three channels ECG on the chest and one channel EDA on the hand [16], but the most critical point was to connect wires from the chest to the hand. So, we moved to a device which acquired two channels EDA and one channel ECG that had electrodes only on the hands [20]; however the signal to noise ratio was lower (with respect to ECG acquired on the chest) and during driving sessions (especially in simulators on Formula 1 tracks) some artifacts were recorded. So, in this paper we reintroduce the chest derivations for ECG measurement because we have the main focus on studying the mental stress of professional drivers on dynamic simulators; the importance of their psycho-physiological state during simulator sessions is of paramount importance for car factories to develop new cars without producing physical car prototypes. The dynamic model of a new car (mass distribution, springs, dampers...) is in fact simulated and, on the basis of drivers impressions, modified without creating an expensive physical prototype of the car. In this scenario, we want to add an objective indicator of mental stress to the written questionnaires currently filled by drivers after each driving session.
Even if our main research activity focuses on mental stress detection of drivers at the simulator, the sensor developed in the present paper can be applied also to other stressing conditions, for example in the literature we find application of EDA and ECG to human-robot interaction [30], but also to stress detection in the workplace [31,32]. However, the use of chest electrodes may be a little bit uncomfortable in everyday life, especially for non-professional drivers who use the car just for daily motion; in a simulator environment instead, professional drivers do not perceive the data acquisition with vest and gloves as an uncomfortable situation.
In this work we describe the design of a low cost sensor for mental stress detection, measuring two EDA channels on the hands and two ECG channels on the chest, using a completely wireless transmission from the hands to the chest and from the chest to a laptop; in this way, data packets are always aligned since they are sent from a unique sensor. In Reference [20] we also pointed out the need of two channels for EDA measurement in driving scenarios since the motion of the hands (where EDA electrodes are placed) on the steering wheel gives rise to a significant motion artifact, which makes a single channel EDA sensor quite unreliable because it is very difficult to separate the motion artifact from sympathetic activity [18]. Moreover, most of the studies in the literature make use of exosomatic EDA methodology (namely skin conductance response (SCR) or galvanic skin response GSR), where a current is injected into the body and a conductance information is extracted; in our studies, we concentrate instead on endosomatic EDA (namely skin potential response (SPR)) because it has been proved in the literature [33,34] that SPR is faster than SCR; so, when evaluating the instantaneous stress of a driver when immersed in a scenario having sudden stimuli, SPR provides a more punctual information on the sympathetic activity. Unfortunately, at the moment on the market there are no commercial solutions for the measurement of endosomatic EDA by means of wearable devices.
SPR directly acquires the nervous pulse which activates the sweat glands, thus the conditioning circuitry consists of a differential amplifier (like in the case of ECG, but with different gain and bandwidth); this methodology implies more complex signals, but the sensor readout is faster and it is less prone to electrode impedance changes due to sweating of the hands or to temperature variations. SPR signal manifests as a differential voltage when we apply one electrode in a zone with a high concentration of sweat glands (e.g., the palm of the hand) and another electrode where sweat glands are fewer (e.g., the back of the hand). In the recent literature (e.g., in Reference [21]), we find several papers where EDA and ECG are simultaneously acquired, also with commercial solutions, but ECG data are not automatically aligned with EDA because data are coming from different commercial sensors having different timebase; moreover, EDA is acquired by means of SCR, which provides a slower reaction to stimuli.
The measurement of HRV has been described in hundreds of scientific papers published in the last decade. The heart rate variability is modulated by the sympathetic nervous system and by the parasympathetic (vagal) nervous system; these two systems control HRV with different speeds of intervention: sympathetic system varies HRV slowly, while vagal varies HRV quickly. The processing methodology of HRV is still an open issue in the literature; some features are extracted in frequency domain (Low Frequency power LF, High Frequency power HF, and their ratio LF/HF), some others in time domain (Standard Deviation Normal to Normal SDNN, Root Mean Square of Successive Differences RMSSD), and newer features are moving towards symbolic approaches, especially for short time acquisitions [35,36,37]. Since SPR gives valuable information about short-term sympathetic activity, the simultaneous acquisition of HRV and EDA can help to improve the methodologies to extract HRV features related to sympathetic activity, especially in short term evaluation.
In a recent paper [26], we proved that the combination of SPR and ECG signals can provide several features for machine learning algorithms, like Support Vector Machine (SVM) and Artificial Neural Networks (ANN), which can discriminate mental stress on drivers in a simulator. In that paper, 16 healthy individuals took part in the test (performed on a professional dynamic driving simulator) and had to drive in a simulated 28 km long highway, with four obstacles, requiring some effort to cross, positioned at different distances along the road; all the intervals belonging to a road section with obstacles were supposed to be “1”, with stress, and all the intervals belonging to a section without obstacles were supposed to be “0”, without stress.. From the SPR signal we extracted five features—variance, energy, mean absolute value, mean absolute derivative and max absolute derivative. From the ECG signal we extracted eight features—the mean value of normal-to-normal RR (or NN) intervals, the standard deviation of RR intervals (SDNN), the standard deviation of successive RR interval differences (SDSD), the root mean square of successive RR interval differences (RMSSD), the number of successive RR intervals differing more than 50 ms (NN50) and the corresponding value in percentage (PNN50), the mean value of the Heart Rate (HR) and the HR mean derivative value. The experimental data demonstrated that both SVM and ANN recognized the mental condition with accuracy, specificity and sensitivity higher than 75%. The sensor that we used was that described in Reference [16], but, as stated before, there was the need to connect wires from the hands to the chest, so the wearability needed to be improved.
The aim of the present paper is the design and metrological characterization of a wearable, fully wireless system which can acquire ECG and SPR signals with the same accuracy of a wired sensor. In particular, the key point is to assure a reliable transmission with no delays or data losses because the two SPR signals must be aligned with each other and both must be aligned with ECG.
The paper is organized as follows—Section 2 describes the architecture of the sensor, with particular attention to the description of the alignment of data packets sent from SPR sensor to ECG sensor; Section 3 describes the metrological characterization of the sensors using three different approaches to evaluate the accuracy of the developed device—a first approach characterizes the linearity and bandwidth, the second approach evaluates jitter using a synthesized ECG trace and a third approach compares ECG acquisitions simultaneously with a commercial reference sensor to quantify the accuracy in the extraction of main features used in HRV. At the end of Section 3, we show an example of an application of the present sensor to detect the stress of subjects driving on a simulator available in our laboratory at the University of Udine. Finally, after Discussion, the Conclusions are drawn.

2. Material and Methods

The entire wearable sensors system is shown in Figure 1. The SPRbox A acquires the SPR on the right hand where two disposable adhesive Ag/AgCl electrodes are posed on the palm and on the back. The reference potential V R E F is imposed on the V A 1 electrode and the differential voltage V A 2 V A 1 is amplified and conditioned, acquired by an A/D converter on board a Digital Signal Processor (DSP) and sent to the ECGbox via wireless standard IEEE 802.11 (WiFi) using User Datagram Protocol (UDP). In the same way, on the left hand, the SPRbox B conditions acquires and sends the differential voltage V B 2 V B 1 to the ECGbox via WiFi UDP protocol. The ECGbox is responsible for conditioning and acquiring two ECG derivations, to receive and re-order the packets from SPRbox A and B, and to transmit the aligned data to a laptop via WiFi UDP protocol. In particular, the ECG traces are obtained conditioning and amplifying the differential voltages V 4 V 1 and V 2 V 3 on the chest, acquired with four disposable adhesive Ag/AgCl electrodes. Referring to Figure 1, it is possible to see that the block diagram of the ECGbox consists of two analog front ends, one DSP and a WiFi module; in a similar way, SPRbox A and SPRbox B consist of an analog front end, a DSP and a WiFi module.
The SPRbox A and B use single cell 3.7 V 850 mAh lithium polymer batteries which are rechargeable through a micro-USB plug. Since the current consumption of SPR boxes is 85 mA during transmission, the sensors can transmit data for 10 hours of continuous operation. The ECGbox is supplied with a single cell 3.7 V 2000 mAh lithium polymer battery and it is rechargeable through a micro-USB plug. Since the current consumption of the ECGbox is 180 mA during transmission, the sensor can transmit data for more than 11 hours of continuous operation.
Figure 2a shows the boxes inside the enclosures, realized with 3D-printing technology; Figure 2b shows the Printed Circuit Boards of ECGbox and SPRboxes. The outer dimensions of the SPRbox are 55 × 37 mm 2 , while the ECGbox outer dimensions are 108 × 41 mm 2 ; we observe that the outer dimensions are limited by the size of the batteries, so the boxes and the boards dimensions can be strongly shrunk if we decide to reduce the maximum duration of transmission. The SPR boxes are worn on wrists using velcro straps (like wearing a smart-watch) in order to keep the sensors firmly and unobtrusively adherent to the body, while the ECG box is worn with an elastic chest strap.

2.1. Analog Section

Referring to Figure 1, the analog front ends measure low-level differential voltages and, through a proper signal conditioning, provide a high level voltage which can be acquired by the A/D converter on board the DSP. The input differential voltages are filtered with passive, first order, high-pass filters (with cutoff frequency ( 2 π τ L ) 1 = 0.05 Hz). Since the output impedance of the skin is in the order of 100 k Ω , the input impedance of the filters is 100 M Ω —three orders of magnitude higher—in order to reduce the load uncertainty to less than 0.1%. Cascaded to the input filter there is an instrumentation amplifier with gain G S P R and G E C G (for SPR and ECG channels, respectively) which amplifies the input differential signals and, at the output of the amplifier, there is a third order, Butterworth, anti-alias filter with time constants τ H , S P R = 10 ms and τ H , E C G = 1 ms for SPR and ECG signals, respectively; thus, the expected 3 dB cutoff frequencies of the third order filters are 8 Hz and 75 Hz for SPR and ECG, respectively. The DC compensation block integrates (with time constant designed τ I = τ L ) the difference between the amplifier output and V R E F . Thus, the closed loop composed by the amplifier and the DC compensation block behaves as a high pass filter with cut-off frequency ( 2 π τ L ) 1 . Using this DC compensation block, we are able to remove all the DC non-idealities of the amplifier (offset voltage, bias current, offset current) [29]. The output voltage of the analog front end (for SPRbox and ECGbox, respectively), in the Fourier domain, is
V S P R A , B ( j ω ) = 2 π V R E F · δ ( ω ) + G S P R τ L , S P R 2 · ( j ω ) 2 ( 1 + τ L , S P R · j ω ) 2 ( 1 + τ H , S P R · j ω ) 3 · ( V A 2 , B 2 ( j ω ) V A 1 , B 1 ( j ω ) ) ,
V E C G 1 , 2 ( j ω ) = 2 π V R E F · δ ( ω ) + G E C G τ L , E C G 2 · ( j ω ) 2 ( 1 + τ L , E C G · j ω ) 2 ( 1 + τ H , E C G · j ω ) 3 · ( V 4 , 2 ( j ω ) V 1 , 3 ( j ω ) ) .
We set V R E F = 1.65 V at one half of the supply range that is 3.3 V. The gain of the amplifier of the SPRbox has been set G S P R 160 , since the input range is ± 10 mV and it is converted into 3.3 V P P ; the SPRbox has a band pass frequency response in the range [0.08, 8] Hz with slopes +40 dB/dec for the lower cut-off and –60 dB/dec for the higher cut-off. The gain of the amplifiers of the ECGbox has been set at G E C G 370 , since the input range is ± 5 mV and it is converted into 3.3 V P P ; the ECGbox has a band pass frequency response in the range [0.08, 75] Hz with slopes +40 dB/dec for the lower cut-off and −60 dB/dec for the higher cut-off.

2.2. DSP and A/D Conversion

The SPR and ECG signals, after the conditioning of analog front end, are acquired by the A/D input of a Digital Signal Processor (DSP), which processes the data (the processing is described in next Section) and sends them to the WiFi module via a Universal Asynchronous Receiver Transmitter (UART). The chosen DSP is a Microchip DSPIC 30F3013, it operates at 8 MIPS and has an on board 12 bit Analog-to-Digital Converter; the sampling frequency is set to 200 Hz, this value is high enough to record ECG signals with low jitter on the peak detection for HRV analysis, without sending too many data to a medium-low performance laptop. The sampling and conversion time of the A/D has been set to 50 μ s, so that the sampling transients affect the converted data by far lower than 1 LSB. The baud rate of data transfer has been set to 115.2 kbps in order to allow data transmission without crowding the channel.

2.3. Data Transmission: SPRbox

Figure 3a shows how the packets are built by the DSP on the SPRbox before transmission. The A/D module provides a 12 bit datum every 5 ms; each byte sent via UART to the ECGbox must be identified with a unique coding, since the ECGbox must recognize if the incoming datum is the higher or lower byte of the SPR box A or B. So, the DSP of SPRbox builds the lower (higher) byte of information using the six least (most) significant bits of the A/D, adding one bit for left/right box (AB bit in Figure 3a) and one bit for lower (higher) byte (L or H bit in Figure 3a).
The chosen WiFi module is the USR-IOT USR-C216; it is a low power module (60 mA consumption during transmission) and, for consumption reasons, it can send packets every 40 ms minimum. For this reason, the DSP builds a packet composed by eight data acquired every 5 ms and sends them to the ECGbox. The module is configured as station (STA) with static IP and operates as a client UDP; the gateway address is configured to be the one of ECGbox, in order to send SPR data to the ECGbox which re-aligns the data acquired by SPRbox A and B.

2.4. Data Transmission: ECGbox

Figure 3b shows how the ECGbox builds the packets for the transmission to the laptop. Every 5 ms, the ECGbox builds a packet composed by a unique header (2 bytes), two 12-bit data acquired from the two ECG channels E C G 1 H , L and E C G 2 H , L (4 bytes), the bytes coming from SPRbox A channel S P R A H and S P R A L (2 bytes) and the ones coming from SPRbox B channel S P R B H and S P R B L (2 bytes); since the packets coming from SPR boxes arrive every 40 ms, the SPR data are treated as a first-in first-out stack. This means that, in principle, there is a 40 ms delay between ECG channels and SPR channels—the ECG channels are synchronous with the data transmitted to the laptop since they are acquired directly on the ECGbox, while the SPR data belong to the last transmitted packet which is, roughly, 40 ms delayed. Since the bandwidth of SPR signals is in the order of a few hertz, this delay does not affect the accuracy of data alignment.
The WiFi module chosen for the ECGbox is the USR-IOT USR-WIFI232; the device operates as access point (AP), it is configured to be a client UDP which sends the data to the IP address of the server which is the laptop that plots and saves the traces.

2.5. Software Description

An Ad hoc control panel has been designed to acquire, plot and save the data transmitted from ECGbox, Figure 4 shows a screenshot during acquisition.
The panel has been designed in .NET framework since this tool allows a fast and easy design of Graphical User Interfaces (GUI). The GUI communicates with the ECGbox via UDP protocol, extracts the data from the received packets, plots the four signals in real time and allows the insertion of graphical markers with optional comments if the user needs to annotate which kind of stimuli are received by the subject under test. On the left of the GUI there are several controls where the user sets the SSID of the wireless network, the IP address of the server and the folder path where data are saved. The button “Acquire” starts the connection to the ECGbox and the plot of the four traces in real time. The first two graphs on top show the SPR signals, the last two graphs show the two ECG derivations.

3. Experimental Results

The sensors system has been characterized with three different approaches and test setups. The first approach characterizes the linearity and the bandwidth of the sensors using, as a reference input, sinusoidal signals and measuring the sensors response at the output. The second approach characterizes the ECG sensor sending at its input a synthesized ECG provided by a digital waveform generator; with this approach we quantify accuracy in detecting R-R intervals at the output with respect to the input. Using a free license commercial software designed to perform HRV analysis [38], we quantify the accuracy of the measured heart rate by means of the jitter introduced by the sensor. The third approach shows the results obtained on real ECG traces acquired simultaneously by the sensor and a commercial one [39], taken as reference; moreover, we quantify the deviation between our sensor and the reference one for the most common HRV parameters used in literature. Finally, at the end of this Section, we show an application example of the proposed sensor measuring the sympathetic activity of drivers in a city traffic simulated scenario.

3.1. Metrological Characterization

In this Subsection, we present the experimental characterization of the linearity and bandwidth of the sensor. For the characterization, a GUI has been developed in the Matlab environment to realize an automatic test bench for the acquisition of a large number of samples. An oscilloscope with a built-in waveform generator (RIGOL DS2302A) has been connected to the laptop through LAN and the sensor through WiFi. The test bench GUI controls the waveform generator to generate the appropriate output and a robot code controls the marker insertion and the data saving of the traces transmitted from the sensor (via WiFi) to the control panel described in Section 2.5. At the end of data acquisition, the accuracy of the sensor is evaluated accordingly to the “Guide to the expression of Uncertainty in Measurements” (GUM) [40].

3.1.1. Linearity Characterization and Resolution

For linearity characterization, the waveform generator provided a sinusoidal voltage V G with 50 linearly spaced amplitudes from 0 to 3.3 V P P and with frequency around the centre of the bandwidth for both SPRboxes and ECGbox, i.e. at 1 Hz. The output of the generator is connected to a resistive attenuator α (0.1% tolerance of the resistors) having output impedance 1 M Ω to simulate skin behavior, the value of α has been designed as in [20]. The outputs of the attenuators provide simultaneously the input voltages V I N , S P R = α S P R V G and V I N , E C G = α E C G V G which are connected to the input of SPRboxes and ECGbox. In the case of SPRbox α S P R = 5.568 × 10 3 ( 8 × 10 6 ) , in the case of ECGbox α E C G = 1.497 × 10 3 ( 3 × 10 6 ) . The uncertainty on the input voltages is then calculated using the GUM:
u ( V I N , S P R ) = [ α S P R · u ( V G ) ] 2 + [ V G · u ( α S P R ) ] 2 ,
u ( V I N , E C G ) = [ α E C G · u ( V G ) ] 2 + [ V G · u ( α E C G ) ] 2 .
In order to evaluate the accuracy of the sensors, the RMS values of the traces plotted on the control panel are evaluated over 10 periods of the input sinusoid; for each amplitude of the sinusoid, 10 RMS values have been acquired (corresponding to the evaluation of 100 periods) in order to evaluate the type A estimation of uncertainty. Thus, at the end of acquisitions, we collect a 50 × 10 matrix for each of the two ECG signals V O U T , E C G and the two SPR signals V O U T , S P R .
Then, using the least squares method, we estimated the gains G S P R and G E C G using the input voltage vectors ( V I N , S P R and V I N , E C G ) and the mean of the 10 RMS readouts ( V O U T , S P R ¯ and V O U T , E C G ¯ ) calculated on the output voltages vectors.
G S P R = V I N , S P R V O U T , S P R ¯ V I N , S P R V O U T , S P R ¯ V I N , S P R , 2 V I N , S P R 2
G E C G = V I N , E C G V O U T , E C G ¯ V I N , E C G V O U T , E C G ¯ V I N , E C G 2 V I N , E C G 2 .
The uncertainty of the output voltages u ( V O U T , S P R ¯ ) and u ( V O U T , E C G ¯ ) is calculated as the combination of two contributions—one is the type A estimation u A obtained as the standard deviation of the sample means over the 10 readings of RMS, and the second is the type B estimation u B extracted from the datasheet of the A/D which considers the Integral Non Linearity (INL) and the quantization uncertainty
u ( V O U T , S P R ¯ ) = [ u A ( V O U T , S P R ¯ ) ] 2 + [ u B ( V O U T , S P R ¯ ) ] 2 ,
u ( V O U T , E C G ¯ ) = [ u A ( V O U T , E C G ¯ ) ] 2 + [ u B ( V O U T , E C G ¯ ) ] 2 .
We recall that V I N , S P R and V I N , E C G are vectors composed by 50 test amplitudes and that V O U T , S P R ¯ and V O U T , E C G ¯ are vectors obtained as the mean of 10 readings for each output amplitude. Finally, combining (3)–(8) and naming with subscript i the input and output voltages at the ith step, we calculate the uncertainty on the gain as
u ( G S P R ) = i = 1 50 G S P R V I N , S P R , i u ( V I N , S P R , i ) 2 + i = 1 50 G S P R V O U T , S P R , i ¯ u ( V O U T , S P R , i ¯ ) 2 ,
u ( G E C G ) = i = 1 50 G E C G V I N , E C G , i u ( V I N , E C G , i ) 2 + i = 1 50 G E C G V O U T , E C G , i ¯ u ( V O U T , E C G , i ¯ ) 2 .
The gains of the four channels thus result in G S P R 1 = 141.0 ± 0.6 , G S P R 2 = 141.2 ± 0.6 , G E C G 1 = 378.3 ± 1.6 and G E C G 2 = 376.9 ± 1.6 . After having characterized the gain of the four channels, we are interested in investigating the deviation from linearity. Figure 5 shows the relative deviation from linearity with respect to the full scale of each input.
As can be seen, the maximum non-linearity for the SPR channels is 0.15 % FS, corresponding to 30 μ V and the maximum non-linearity for the ECG channels is 0.05 % FS, corresponding to 5 μ V ; error bars in Figure 5 represent the uncertainty contributions evaluated in (3), (4), (7) and (8).
The resolution of the sensor is 12 bit, which corresponds to 4.9 μ V for SPR channels and 2.4 μ V for ECG channels.

3.1.2. Bandwidth Characterization

For bandwidth characterization, the waveform generator provided a sinusoidal voltage with 61 logarithmically spaced steps in the range [ 0.1 , 100 ] Hz and the amplitude of the generator was set to 3.3 V P P ; the output of the generator has been connected to the same attenuator described in previous Section. With the same GUI with robot code described in the previous Section, we acquired the outputs for each frequency step over a variable time window W = min ( 10 periods , 3 s ) ; in this way, we compute the gains G S P R ( j ω ) and G E C G ( j ω ) observing the signals for a duration of 10 periods (coherent sampling) when the frequency is low, and for a duration of three seconds when the frequency is high.
Figure 6 shows the magnitude of the gain for each channel; the upper cut-off frequency results 8 Hz and 75 Hz for SPR channels and ECG channels, respectively. Regarding the lower cut-off, it results lower than 0.1 Hz which is the limit of the waveform generator (from design it is expected 0.08 Hz).

3.1.3. Delays in Transmission and Data Loss

As introduced in Section 2.4, the SPR data are available at ECGbox after that the packet, composed by 8 SPR data, is sent from the SPRbox. This means that SPR data are delayed with respect to the ECG ones and, if no data loss happened, the delay should be in the order of 40 ms. In order to characterize the real delays of transmission, we used the data acquired in Section 3.1.1 (duration of acquisition 1120 s corresponding to 224,000 samples per channel) to characterize the average delay from one trace to another. Since all the inputs are in phase, we compute the Fast Fourier Transform (FFT) of each signal and we evaluate its phase on the peak (that is at 1 Hz); then, we calculate the difference of phases from one channel to another and convert it into a time delay. Naming Δ t j , k the delay between signal j and k, we obtained Δ t S P R 1 , S P R 2 = 6 ms , Δ t S P R 1 , E C G 1 = 43 ms , Δ t S P R 1 , E C G 2 = 43 ms , Δ t S P R 2 , E C G 1 = 49 ms , Δ t S P R 2 , E C G 2 = 49 ms , Δ t E C G 1 , E C G 2 = 72 μ s . From these results, we can see that the delays are comparable with the values expected by design— E C G 1 and E C G 2 are substantially synchronous, while SPR channels are 43 to 49 ms delayed. As stated before, this delay is negligible since the SPR signal bandwidth is in the order of few hertz. Regarding data loss, we have to notice that no data have been lost in communication from ECGbox to laptop; from SPRbox to ECGbox instead, we counted 98 samples that were belonging to the previous packet, so we can say that the data loss from SPRbox to ECGbox is of 98 samples over a total amount of 224,650 samples, corresponding to the 0.04 % (i.e., on average, one sample lost every 12 s of acquisition).

3.2. Jitter Estimation Using Synthesized ECG

In the perspective of using ECG data to perform HRV analysis, it is very important to quantify how accurate the recognition of R-peaks is; one of the main contributions to accuracy is the jitter introduced by the sample rate and bandwidth of the sensor. In this Subsection, we build the RR-tachogram starting from a synthesized ECG provided by an arbitrary waveform generator. We acquire simultaneously the output of the sensor and the output of the generator which was set to provide an ECG with R-R peaks at constant distance 1 s (1 Hz frequency corresponding to 60 bpm). Figure 7a shows a qualitative comparison between the PQRST complex at the generator and at the output of the proposed sensor—no attenuation, delay or distortions are noticed. On the other hand, Figure 7b shows the RR intervals estimation starting from the generator and starting from the proposed sensor. The RR tachogram has been built acquiring the signal for a duration of 5 minutes and using the commercial software Kubios HRV which implements the Pan Tompkins algorithm [41] for peak recognition. As can be seen in Figure 7b, the maximum distance of computed RR is 5 ms with respect to the nominal value—this means that the R-peaks have been detected with deterministic uncertainty equal to the sample period. The standard deviation of the tachogram obtained by the sensor results 2 ms, so we can conclude that the jitter introduced by the sensor is very close to the theoretical one that is 5 / 3 = 2.8 ms, assuming a uniform distribution of deterministic uncertainty.

3.3. Real ECG Acquisitions and Comparison with Benchmark Device

As a third approach for sensor characterization, in this Subsection we compare the tachogram obtained from the proposed sensor with the one obtained from a commercial sensor used as reference. We acquired the data simultaneously placing the reference sensor electrodes close to the derivation V 4 V 1 shown in Figure 1. The reference sensor is a Shimmer 3 EXG unit and it has been configured to acquire data at sample rate 512 Sa/s. We chose the Shimmer EXG as reference because of its compactness, of its high performances (sampling rate up to 8 kSa/s) and of its reasonable cost (one Shimmer sensor costs ten times the sensor presented in this paper). We collected a total number of 18 tests performed on three different individuals (six tests per person) acquiring data for a duration of five minutes per test, this duration is typical for HRV analysis. Figure 8a–c show the tachograms extracted for each person under test; blue lines represent the proposed sensor, red lines represent the reference instrument. As a qualitative analysis, we observe that all the R-peaks have been detected without artifacts and the two lines are almost indistinguishable for all the three persons; in particular, the standard deviation of the difference between the two plotted lines is 4 ms, 5.4 ms and 3.6 ms, respectively.
In order to perform a quantitative analysis, we processed the data saved from both sensors using Kubios and we evaluated the most common parameters used in HRV analyses. In particular, we focused our attention to mean HR, SDNN, RMSSD, LF and HF. Table 1 shows the results obtained from both sensors.
In order to evaluate the deviation between the proposed sensor and the reference, we present in Table 2 the relative difference between the two sensors in the estimation of HRV parameters. From the data, emerges that the maximum deviation is in the order of 6 % .

3.4. Acquisition of SPR and ECG Signals on a Driving Simulator

As an application example of the proposed sensor, we performed several tests on the driving simulator available in our laboratory at the Polytechnic Department of Engineering and Architecture of the University of Udine. The simulator is composed by the moving seat P2 by DOFreality [42], a curved screen and a Logitech G29 Steering Wheel [43], Figure 9 shows a picture of the simulator.
As simulator software, we use City Car Driving; it is a software simulating traffic situations in a city with the option to insert, as stressors, a set of undesired events like: unexpected pedestrian crossing, lane invasion by other vehicles in the opposite direction, sudden change of lane of the vehicle in front of the driver, and sudden brake of the front vehicle. As a limitation, this software does not allow the full control on other vehicles or pedestrian behavior (platoons of cars are not the same, pedestrians do not cross always in the same locations...), but the type and the number of stressors among different simulations is consistent, accordingly to the settings of the simulation.
We instructed ten volunteers (among the students of University of Udine) to drive along the route highlighted in Figure 10; the red line represents a portion of a motorway, while the blue line represents urban streets. The subjects had to repeat the test in two conditions—a first condition is without traffic (no cars nor pedestrians) and the second condition is with few cars and pedestrians. In this second scenario, despite little traffic, we set up the behavior of other cars and pedestrians as “very aggressive”, this means that other cars often change their direction (invading the subject’s trajectory) and pedestrians very often cross the road at forbidden points. One half of the subjects drove before without traffic and then with traffic and the other half vice-versa. The selected path on the map in Figure 10 allowed the recording of ten minutes traces for each experiment, roughly one half in motorway and one half in urban streets.
Regarding the processing of SPR data, we applied the motion artifact algorithm described in Reference [44]; for ease of reference, we show in Figure 11a the acquired traces (blue line S P R 1 for right hand and red line S P R 2 for left hand) and the output of the motion artifact removal algorithm (black line). Figure 11b shows the zoom of circle A in Figure 11a and we show the typical SPR pulses that we have when no motion artifacts are intervening; all the traces are almost coincident and each SPR peak duration is, roughly 10 s. The circles marked with letters B, and C in Figure 11a evidence the motion artifacts that arose when the hands were moving the steering wheel; in that case, the two input signals differed and some high frequency components appeared. Figure 11c,d show the zoom of circles B and C; as it can be seen, at the output the artifacts are strongly reduced.
Since in this experiment the subjects were driving on a motorway or in a city (and not in a race track), the artifacts appeared very rarely (the hands motion was limited) and the algorithm removed all the possible artifacts that were appearing in the signals.
After the artifact removal, we evaluated the Root Mean Square (RMS) value over a moving window having duration 5 s. Regarding ECG traces, we extracted several features like HR, SDNN, LF and LF/HF.
Figure 12a shows the extraction of S P R R M S signal (black line, left axis) from the trace in Figure 11a and H R signal (red line, right axis) during the driving without traffic. Pink background represents motorway, light blue background represents urban streets. With the same axes scales, Figure 12b represents the traces of the same subject when driving with aggressive traffic.
From Figure 12 it is evident that SPR activity is considerably higher when driving in aggressive traffic—the height of the peaks in Figure 12b are higher than the ones in Figure 12a and every peak of black line corresponds to a sudden lane change of other vehicles or a pedestrian crossing. Similarly, it is possible to notice that HR has increased variability during a traffic test.
In order to provide a quantitative estimation of perceived stress, we report in Table 3 the mean values of S P R R M S , HR, SDNN, LF and LF/HF for each driver and for each experiment. Regarding SPR activity, it is possible to observe that all the subjects show a higher S P R R M S during the traffic test; in particular, they present an average 39 % increase of SPR activity in a traffic test with respect to a no-traffic drive test. Regarding HRV, we notice that HR increases in 8 subjects out of 10, with 2 % average increase, SDNN increases in 6 subjects out of 10, with 19 % average increase; LF increases in 6 subjects out of 10, with 14 % average increase and LF/HF increases in 8 subjects out of 10, with 42 % average increase.
Performing a paired t-test between the two sets of data (no traffic and aggressive traffic), we observe that the S P R R M S is significantly higher with traffic ( p = 0.04 ), HR is significantly higher with traffic ( p = 0.03 ) and LF/HF is almost significantly higher with traffic ( p = 0.06 ). On the other hand, we observe that SDNN and LF are higher with traffic but with low significance ( p = 0.22 for both features).
Performing a non-parametric test (Wilcoxon signed rank test) between the two sets of data, we observe results similar to t-test. In particular, the test on S P R R M S provides p = 0.002 , thus the traffic condition provides higher SPR with high significance; on HR the test provides p = 0.03 so the traffic condition provides higher HR with significant difference; LF/HF is almost significantly higher with traffic ( p = 0.08 ) while SDNN and LF have lower significance ( p = 0.13 and p = 0.27 , respectively).
The results from both t-test and Wilcoxon test remark two important aspects—(1) the necessity of evaluating more than a single parameter in HRV—for example, evaluating the quantity S D N N · L F / H F , the Wilcoxon test provides p = 0.02 ; (2) the importance of acquiring SPR and HRV simultaneously (any combination of SPR with HRV parameters provides p < 0.05 ).
In this scenario, it emerges that the simultaneous acquisition of SPR+ECG with a unique timebase and with a fully wireless sensor system can be a valuable help to the research in this field.

4. Discussion

From the characterization described in previous Section, we can observe several interesting points regarding the accuracy of the developed sensor system.
Regarding the characterization of gain and bandwidth shown in Section 3.1, we have to point out that the gains of the two ECG channels and of the two SPR channels present a very small mismatch and all the channels present a non-linearity in the order of 0.1 % . This confirms the high level of accuracy of the developed system; moreover, the delay between local signals (ECG) and transmitted ones (SPR) has been validated in the order of 40 ms, as estimated during the design phase. Finally, the bandwidths of the analog front ends respect the initial specifications.
The jitter estimation with synthesized ECG demonstrated two important aspects. First, the chosen analog bandwidth of 75 Hz does not alter the shape of R-peaks (shown in Figure 7a) and thus it is suitable for tachogram extraction. Second, the jitter introduced by the sensor results lower than sample rate, thus its effect is negligible for HRV estimation.
The comparison of ECG acquired with a reference sensor points out some problematic aspects of HRV estimation. First, looking at Table 2, we observe that the extraction of mean heart rate is extremely accurate (in the order of 0.2 % ); the SDNN (in time domain) and the LF (in frequency domain) provide quite accurate results, in the order of 2 % , whilst the least accurate results are provided by the RMSSD and HF ( 6 % ). Observing the data in Table 1 we can see that the magnitude of HF and RMSSD is quite small in all the acquired experiments (sympathetic activity prevailing on the vagal) and thus, a small error in absolute terms can reach significant values in relative terms. This observation keeps still open the issue that, even if HR is evaluated with high accuracy, the HRV has a strong dependency on very small variations; for this reason the simultaneous acquisition of ECG and EDA can be a useful tool to improve the knowledge of HRV.

5. Conclusions

We designed a wearable sensors system for the simultaneous measurement of two channels SPR acquired on the hands and two channels ECG acquired on the chest. The SPR data are sent via WiFi to the ECG box so the system is completely wireless in order to achieve increased wearability.
The characterization showed high-level performances in terms of linearity and jitter even if the SPR channels are not wired, despite of a small delay accounted during the design process.
The developed sensor is suitable for stress detection in drivers at simulators, but its application can be extended to other fields like safety on workplace, game addiction, development of adaptive video games, and so on.
As a future work, we are studying an improvement of the motion artifact algorithm presented in Reference [44]; the main limit of this methodology, in fact, is the accurate removal of motion artifacts that arise when the subject, with sudden and rough movements, solicits the electrode posed on the palm of the hand.
We are also working to improve the SVM described in Reference [26], in particular we want to discriminate the minimum set of features to accurately train the SVM, and we are going to integrate the system with computer vision sensors measuring the pupil diameter, eye blinking rate and the gaze direction.

Funding

This research received no external funding.

Conflicts of Interest

The author declares no conflict of interest.

References

  1. Akbar, F.; Mark, G.; Pavlidis, I.; Gutierrez-Osuna, R. An Empirical Study Comparing Unobtrusive Physiological Sensors for Stress Detection in Computer Work. Sensors 2019, 19, 3766. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  2. Porter, A.M.; Goolkasian, P. Video Games and Stress: How Stress Appraisals and Game Content Affect Cardiovascular and Emotion Outcomes. Front. Psychol. 2019, 10, 967. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  3. Nguyen, T.H.; Chung, W.Y. Detection of Driver Braking Intention Using EEG Signals during Simulated Driving. Sensors 2019, 19, 2863. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  4. Koh, D.W.; Lee, S.G. An Evaluation Method of Safe Driving for Senior Adults Using ECG Signals. Sensors 2019, 19, 2828. [Google Scholar] [CrossRef] [Green Version]
  5. Li, Y.; Wang, F.; Ke, H.; Wang, L.; Xu, C. A Driver’s Physiology Sensor-Based Driving Risk Prediction Method for Lane-Changing Process Using Hidden Markov Model. Sensors 2019, 19, 2670. [Google Scholar] [CrossRef] [Green Version]
  6. Zhang, J.; Yang, Z.; Deng, H.; Yu, H.; Ma, M.; Zhong, X. Dynamic Visual Measurement of Driver Eye Movements. Sensors 2019, 19, 2217. [Google Scholar] [CrossRef] [Green Version]
  7. Bitkina, O.V.; Kim, J.; Park, J.; Park, J.; Kim, H.K. Identifying traffic context using driving stress: A longitudinal preliminary case study. Sensors 2019, 19, 2152. [Google Scholar] [CrossRef] [Green Version]
  8. Affanni, A.; Bernardini, R.; Piras, A.; Rinaldo, R.; Zontone, P. Driver’s stress detection using Skin Potential Response signals. Measurement 2018, 122, 264–274. [Google Scholar] [CrossRef]
  9. Cho, H.M.; Park, H.; Dong, S.Y.; Youn, I. Ambulatory and Laboratory Stress Detection Based on Raw Electrocardiogram Signals Using a Convolutional Neural Network. Sensors 2019, 19, 4408. [Google Scholar] [CrossRef] [Green Version]
  10. Kobayashi, W.; Yoshioka, Y. Examination on Corner Shape for Reducing Mental Stress by Pedestrian Appearing from Blind Spot of Intersection. In Advances in Human Factors of Transportation; Stanton, N., Ed.; Springer International Publishing: Cham, Switzerland, 2020; pp. 301–306. ISBN 978-3-030-20502-7. [Google Scholar]
  11. Borghi, G.; Pini, S.; Vezzani, R.; Cucchiara, R. Mercury: A Vision-Based Framework for Driver Monitoring. In Intelligent Human Systems Integration 2020; Ahram, T., Karwowski, W., Vergnano, A., Leali, F., Taiar, R., Eds.; Springer International Publishing: Cham, Switzerland, 2020; pp. 104–110. [Google Scholar]
  12. Bozkir, E.; Geisler, D.; Kasneci, E. Assessment of Driver Attention during a Safety Critical Situation in VR to Generate VR-Based Training. In ACM Symposium on Applied Perception 2019; Association for Computing Machinery: New York, NY, USA, 2019; SAP’19. [Google Scholar] [CrossRef]
  13. Tran, C.C.; Yan, S.; Habiyaremye, J.L.; Wei, Y. Predicting Driver’s Work Performance in Driving Simulator Based on Physiological Indices. In Intelligent Human Computer Interaction; Horain, P., Achard, C., Mallem, M., Eds.; Springer International Publishing: Cham, Switzerland, 2017; pp. 150–162. [Google Scholar]
  14. Lee, D.S.; Chung, T.W.; Lee, B.G. Stress events detection of driver by wearable glove system. IEEE Sens. J. 2017, 17, 194–204. [Google Scholar] [CrossRef]
  15. Schmidt, P.; Reiss, A.; Dürichen, R.; Laerhoven, K.V. Wearable-Based Affect Recognition—A Review. Sensors 2019, 19, 4079. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  16. Affanni, A. Wearable instrument to measure simultaneously cardiac and electrodermal activities. In Proceedings of the 2016 IEEE International Symposium on Medical Measurements and Applications, MeMeA, Benevento, Italy, 15–18 May 2016. [Google Scholar]
  17. Kyriakou, K.; Resch, B.; Sagl, G.; Petutschnig, A.; Werner, C.; Niederseer, D.; Liedlgruber, M.; Wilhelm, F.H.; Osborne, T.; Pykett, J. Detecting Moments of Stress from Measurements of Wearable Physiological Sensors. Sensors 2019, 19, 3805. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  18. Affanni, A.; Chiorboli, G.; Minen, D. Motion artifact removal in stress sensors used in driver in motion simulators. In Proceedings of the 2016 IEEE International Symposium on Medical Measurements and Applications, MeMeA, Benevento, Italy, 15–18 May 2016. [Google Scholar]
  19. Affanni, A.; Chiorboli, G. Wearable instrument for skin potential response analysis in AAL applications. In Proceedings of the 20th IMEKO TC4 Symposium on Measurements of Electrical Quantities: Research on Electrical and Electronic Measurement for the Economic Upturn, Together with 18th TC4 International Workshop on ADC and DCA Modeling and Testing, IWADC 2014, Benevento, Italy, 15–18 September 2014. [Google Scholar]
  20. Affanni, A. Dual-channel electrodermal activity and an ECG wearable sensor for measuring mental stress from the hands. Acta Imeko 2019, 8, 56–63. [Google Scholar] [CrossRef]
  21. Seoane, F.; Mohino-Herranz, I.; Ferreira, J.; Alvarez, L.; Buendia, R.; Ayllón, D.; Llerena, C.; Gil-Pita, R. Wearable Biomedical Measurement Systems for Assessment of Mental Stress of Combatants in Real Time. Sensors 2014, 14, 7120–7141. [Google Scholar] [CrossRef] [Green Version]
  22. Sioni, R.; Chittaro, L. Stress Detection Using Physiological Sensors. Computer 2015, 48, 26–33. [Google Scholar] [CrossRef]
  23. Rigas, G.; Goletsis, Y. Real-Time Driver’s Stress Event Detection. IEEE Trans. Intell. Transp. Syst. 2012, 13, 221–234. [Google Scholar] [CrossRef]
  24. Liu, Y.; Du, S. Psychological stress level detection based on electrodermal activity. Behav. Brain Res. 2018, 341, 50–53. [Google Scholar] [CrossRef]
  25. Masood, K. EDA as a Discriminate Feature in Computation of Mental Stress. In Proceedings of the Second International Conference on Digital Information Processing, Data Mining, andWireless Communications (DIPDMWC2015), Dubai, UAE, 30 November–1 December 2015. [Google Scholar]
  26. Affanni, A.; Zontone, P.; Bernardini, R.; Piras, A.; Rinaldo, R. Stress Detection Through Electrodermal Activity (EDA) and Electrocardiogram (ECG) Analysis in Car Drivers. In Proceedings of the 2019 27th European Signal Processing Conference (EUSIPCO), A Coruna, Spain, 2–6 September 2019. [Google Scholar]
  27. Schmidt, M.; Penner, D.; Burkl, A.; Stojanovic, R.; Schümann, T.; Beckerle, P. Implementation and evaluation of a low-cost and compact electrodermal activity measurement system. Measurement 2016, 92, 96–102. [Google Scholar] [CrossRef]
  28. Kasos, K.; Zimonyi, S.; Gonye, B.; Köteles, F.; Kasos, E.; Kotyuk, E.; Varga, K.; Veres, A.; Szekely, A. Obimon: An open-source device enabling group measurement of electrodermal activity. Psychophysiology 2019, 56, e13374. [Google Scholar] [CrossRef] [Green Version]
  29. Affanni, A.; Chiorboli, G. Design and characterization of a real-time, wearable, endosomatic electrodermal system. Measurement 2015, 75, 111–121. [Google Scholar] [CrossRef]
  30. Liu, C.; Rani, P.; Sarkar, N. Human-Robot Interaction Using Affective Cues. In Proceedings of the 15th IEEE International Symposium on Robot and Human Interactive Communication (RO-MAN06), Hatfield, UK, 6–8 September 2006; pp. 285–290. [Google Scholar]
  31. Sriramprakash, S.; Vadana, D.P.; Murthy, O.V.R. Stress Detection in Working People. In Proceedings of the 7th International Conference on Advances in Computing and Communications (ICACC 2017), Kochi, India, 22–24 August 2017; pp. 359–366. [Google Scholar]
  32. Nakashima, Y.; Kim, J.; Flutura, S.; Seiderer, A.; André, E. Stress recognition in daily work. In International Symposium on Pervasive Computing Paradigms for Mental Health; Springer: Milan, Italy, 2015; pp. 23–33. [Google Scholar]
  33. Bari, D.S.; Aldosky, H.Y.Y.; Tronstad, C.; Kalvøy, H.; Martinsen, Ø.G. Electrodermal responses to discrete stimuli measured by skin conductance, skin potential, and skin susceptance. Skin Res. Technol. 2018, 24, 108–116. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  34. Boucsein, W. Electrodermal Activity, 2nd ed.; Springer: New York, NY, USA, 2012; pp. 1–618. ISBN 9781461411260. [Google Scholar]
  35. Reyes-Lagos, J.J.; Ledesma-Ramírez, C.I.; Hadamitzky, M.; Ángel Peña-Castillo, M.; Echeverría, J.C.; Lückemann, L.; Schedlowski, M.; Berg, K.; Wessel, N.; Pacheco-López, G. Symbolic analysis of heart rate fluctuations identifies cardiac autonomic modifications during LPS-induced endotoxemia. Auton. Neurosci. 2019, 221, 102577. [Google Scholar] [CrossRef] [PubMed]
  36. Kamath, C. Evaluation of heart rate dynamics during meditation using Poincaré phase plane symbolic measures. Int. J. Biomed. Eng. Technol. 2019, 29, 385–402. [Google Scholar] [CrossRef]
  37. Awan, I.; Aziz, W.; Shah, I.H.; Habib, N.; Alowibdi, J.S.; Saeed, S.; Nadeem, M.S.A.; Shah, S.A.A. Studying the dynamics of interbeat interval time series of healthy and congestive heart failure subjects using scale based symbolic entropy analysis. PLoS ONE 2018, 13, e0196823. [Google Scholar] [CrossRef] [Green Version]
  38. Informer Technologies Inc. 2019. Available online: http://kubios-hrv.software.informer.com/ (accessed on 10 February 2020).
  39. Shimmer. 2019. Available online: https://www.shimmersensing.com/ (accessed on 10 February 2020).
  40. Joint Committee for Guide in Metrology (JCGM). JCGM 100:2008, Evaluation of Measurement Data—Guide to the Expression of Uncertainty in Measurement. 2008. Available online: https://www.bipm.org/utils/common/documents/jcgm/JCGM_100_2008_E.pdf (accessed on 10 February 2020).
  41. Pan, J.; Tompkins, W.J. A Real-Time QRS Detection Algorithm. IEEE Trans. Biomed. Eng. 1985, BME-32, 230–236. [Google Scholar] [CrossRef]
  42. DOF Reality Motion Simulators. 2019. Available online: https://dofreality.com/ (accessed on 10 February 2020).
  43. Logitech Inc. 2019. Available online: https://www.logitechg.com/en-us/products/driving.html (accessed on 10 February 2020).
  44. Affanni, A.; Piras, A.; Rinaldo, R.; Zontone, P. Dual channel Electrodermal activity sensor for motion artifact removal in car drivers’ stress detection. In Proceedings of the 2019 IEEE Sensors Applications Symposium (SAS), Sophia Antipolis, France, 11–13 March 2019. [Google Scholar]
Figure 1. (Left) scheme of sensors and electrodes positioning—the skin potential response (SPR) boxes A and B acquire electrodermal activity (EDA) signals on the hands and transmit the data to the electrocardiogram (ECG) box; the ECG box acquires signals on the chest and sends data to a laptop. (Right) block diagram of SPR boxes and ECG box.
Figure 1. (Left) scheme of sensors and electrodes positioning—the skin potential response (SPR) boxes A and B acquire electrodermal activity (EDA) signals on the hands and transmit the data to the electrocardiogram (ECG) box; the ECG box acquires signals on the chest and sends data to a laptop. (Right) block diagram of SPR boxes and ECG box.
Sensors 20 02026 g001
Figure 2. (a) Enclosures of SPR boxes and ECG box, and (b) Printed Circuit Boards of the developed sensors.
Figure 2. (a) Enclosures of SPR boxes and ECG box, and (b) Printed Circuit Boards of the developed sensors.
Sensors 20 02026 g002
Figure 3. (a) Packets generation for transmission from SPR boxes to ECG box, and (b) packets alignment and reconstruction performed by the ECG box.
Figure 3. (a) Packets generation for transmission from SPR boxes to ECG box, and (b) packets alignment and reconstruction performed by the ECG box.
Sensors 20 02026 g003
Figure 4. Control panel developed in .NET environment for data acquisition and real time plot; upper traces show SPR channels, bottom traces show ECG channels.
Figure 4. Control panel developed in .NET environment for data acquisition and real time plot; upper traces show SPR channels, bottom traces show ECG channels.
Sensors 20 02026 g004
Figure 5. Linearity of the developed sensors, error bars represent the uncertainty on linearity. (a) Linearity for SPR1 signal, (b) Linearity for SPR2 signal, (c) Linearity for ECG1 signal, and (d) Linearity for ECG2 signal.
Figure 5. Linearity of the developed sensors, error bars represent the uncertainty on linearity. (a) Linearity for SPR1 signal, (b) Linearity for SPR2 signal, (c) Linearity for ECG1 signal, and (d) Linearity for ECG2 signal.
Sensors 20 02026 g005
Figure 6. Bandwidth characterization for the developed sensors, horizontal line represents the cut-off limit. (a) Bandwidth for SPR1 signal, (b) bandwidth for SPR2 signal, (c) bandwidth for ECG1 signal, and (d) bandwidth for ECG2 signal.
Figure 6. Bandwidth characterization for the developed sensors, horizontal line represents the cut-off limit. (a) Bandwidth for SPR1 signal, (b) bandwidth for SPR2 signal, (c) bandwidth for ECG1 signal, and (d) bandwidth for ECG2 signal.
Sensors 20 02026 g006
Figure 7. (a) Comparison between the synthesized peaks acquired from the oscilloscope and the proposed sensor, and (b) tachogram extraction to evaluate the jitter introduced by the sensor.
Figure 7. (a) Comparison between the synthesized peaks acquired from the oscilloscope and the proposed sensor, and (b) tachogram extraction to evaluate the jitter introduced by the sensor.
Sensors 20 02026 g007
Figure 8. Comparison of Tachograms extracted acquiring data with the proposed sensor and with a reference one on three different individuals (ac): blue lines represent the proposed sensor, red lines represent the reference one.
Figure 8. Comparison of Tachograms extracted acquiring data with the proposed sensor and with a reference one on three different individuals (ac): blue lines represent the proposed sensor, red lines represent the reference one.
Sensors 20 02026 g008
Figure 9. The driving simulator available in our laboratory at the University of Udine.
Figure 9. The driving simulator available in our laboratory at the University of Udine.
Sensors 20 02026 g009
Figure 10. City map of the driving experiments; red line represents the motorway, blue line represents urban streets and checkered flag represents the start and the stop of experiments.
Figure 10. City map of the driving experiments; red line represents the motorway, blue line represents urban streets and checkered flag represents the start and the stop of experiments.
Sensors 20 02026 g010
Figure 11. (a) Acquired SPR signals (blue line SPR1 on right hand, red line SPR2 on left hand) and output of the algorithm for motion artifact removal (black line) during a driving session; circles A, B and C represent some significant portions zoomed in the next sub-figures. (b) Zoom of the signals in the circle A; when hands are still, the three traces are identical and SPR pulses look with smooth shape. (c) Zoom of the signals in the circle B; it is evident a motion artifact in right hand, but the output is not affected remaining close to zero. (d) Zoom of the signals in the circle C; motion artifacts are evident in both hands in t ∈ [495, 515] s, but the output is not affected; at t = 520 s instead, an SPR pulse is properly recognized.
Figure 11. (a) Acquired SPR signals (blue line SPR1 on right hand, red line SPR2 on left hand) and output of the algorithm for motion artifact removal (black line) during a driving session; circles A, B and C represent some significant portions zoomed in the next sub-figures. (b) Zoom of the signals in the circle A; when hands are still, the three traces are identical and SPR pulses look with smooth shape. (c) Zoom of the signals in the circle B; it is evident a motion artifact in right hand, but the output is not affected remaining close to zero. (d) Zoom of the signals in the circle C; motion artifacts are evident in both hands in t ∈ [495, 515] s, but the output is not affected; at t = 520 s instead, an SPR pulse is properly recognized.
Sensors 20 02026 g011
Figure 12. Acquired traces from a subject driving without traffic (a), and with aggressive traffic (b). Black line (left axis) represents SPRRMS signal, red line (right axis) represents HR signal. It is evident that SPR peaks are by far higher during traffic test and HR shows a higher variability.
Figure 12. Acquired traces from a subject driving without traffic (a), and with aggressive traffic (b). Black line (left axis) represents SPRRMS signal, red line (right axis) represents HR signal. It is evident that SPR peaks are by far higher during traffic test and HR shows a higher variability.
Sensors 20 02026 g012
Table 1. Comparison between developed sensor and reference for principal heart rate variability (HRV) features.
Table 1. Comparison between developed sensor and reference for principal heart rate variability (HRV) features.
Test #SensorReference
HRSDNNRMSSDLFHFHRSDNNRMSSDLFHF
(bpm)(ms)(ms)(ms 2 )(ms 2 )(bpm)(ms)(ms)(ms 2 )(ms 2 )
175.90340.91620.242488.3191.86476.01340.74219.468496.3987.125
274.69343.33818.355628.1472.58074.81143.17617.673627.7870.115
374.65741.67417.148363.4786.09874.77441.40616.386366.4181.716
473.48247.61218.186222.03106.3373.59947.45317.537221.73101.75
571.98132.29517.707336.9674.50772.10232.20117.203333.9770.242
671.7331.69118.392476.867.13971.85231.62318.161476.0567.896
768.05434.67522.568134.18177.768.15234.50522.675136.87184.82
868.5426.80821.66493.33171.5168.65226.71621.93892.85172.08
968.97625.85822.91791.28191.5968.79125.23121.54791.05188.16
1068.75128.58124.00783.69179.4768.86727.9322.5587.25181.5
1168.33128.85524.293128.52199.0568.45428.25422.725124.42195.23
1268.07326.62423.802189.73240.7868.19826.17922.473181.39227.37
1379.85743.44540.166626.98508.6879.9743.42140.547619.72504.26
1479.58243.67439.696761.04558.4179.743.57839.947758.69556.97
1579.56448.75841.529749.02532.5979.68948.66841.682746.43523.12
1678.9849.14541.6441000.9614.1679.10548.9741.45984.13597.78
1779.19648.4740.791958.95894.5679.32348.15440.2950.35861.06
1879.01249.2842.327632.74826.4179.13748.97841.624636.95778.08
Table 2. Relative deviation between developed sensor and reference for principal HRV features.
Table 2. Relative deviation between developed sensor and reference for principal HRV features.
Test # Δ %
HRSDNNRMSSDLFHF
10.14−0.43−3.91.6−5.4
20.16−0.38−3.8−0.06−3.5
30.16−0.65−4.60.80−5.3
40.16−0.34−3.7−0.14−4.5
50.17−0.29−2.9−0.90−6.1
60.17−0.22−1.2−0.161.1
70.14−0.490.471.93.8
80.16−0.341.2−0.520.33
9−0.27−2.5−6.3−0.25−1.8
100.17−2.3−6.44.11.1
110.18−2.1−6.9−3.3−1.9
120.18−1.7−5.9−4.6−5.9
130.14−0.060.94−1.2−0.88
140.15−0.220.63−0.31−0.26
150.16−0.180.37−0.35−1.8
160.16−0.36−0.47−1.7−2.7
170.16−0.66−1.4−0.90−3.8
180.16−0.62−1.60.66−6.2
Mean0.13−0.77−2.5−0.29−2.4
Table 3. Comparison between SPR and HRV features extracted in no-traffic or traffic scenarios.
Table 3. Comparison between SPR and HRV features extracted in no-traffic or traffic scenarios.
Subject #No-TrafficTraffic
SPR RMS HRSDNNLFLF/HF SPR RMS HRSDNNLFLF/HF
(mV)(bpm)(ms)(ms 2 ) (mV)(bpm)(ms)(ms 2 )
10.27196.925.173336.110.37996.132.5150212.2
20.65197.541.624555.010.77397.639.624055.61
30.30774.344.719374.690.43475.852.739183.14
40.57175.966.218314.710.65375.463.8414998.64
51.571.452.3111293.741.672.157.8213524.17
60.09273.950.814422.250.29976.3114.35863.04
70.12467.845.517703.750.92171.952.618612.55
80.32680.934.716313.570.35482.831.623916.55
90.19179.942.317982.240.22384.736.428304.62
100.18678.437.428132.070.24179.641.857833.48
Mean0.42279.744.077143.810.58781.252.338135.41

Share and Cite

MDPI and ACS Style

Affanni, A. Wireless Sensors System for Stress Detection by Means of ECG and EDA Acquisition. Sensors 2020, 20, 2026. https://doi.org/10.3390/s20072026

AMA Style

Affanni A. Wireless Sensors System for Stress Detection by Means of ECG and EDA Acquisition. Sensors. 2020; 20(7):2026. https://doi.org/10.3390/s20072026

Chicago/Turabian Style

Affanni, Antonio. 2020. "Wireless Sensors System for Stress Detection by Means of ECG and EDA Acquisition" Sensors 20, no. 7: 2026. https://doi.org/10.3390/s20072026

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop