The technical field of the invention is the determination of a stress level of a user on the basis of at least one measurement of a physiological parameter performed on the user. The stress level is determined by implementing a membership function, stemming from fuzzy logic.
It is possible to determine a stress level of an individual on the basis of measurements of one or more physiological parameters of said individual. The physiological parameter may be a cardiac activity, for example measured via an electrocardiogram (ECG) or a simple determination of a cardiac frequency, or a muscular activity, measured via an electromyogram (EMG), or even a measurement of the electrical conductance of the skin. The publication Ollander “A comparison of wearable and stationary sensors for stress detection”, 2016 IEEE international conference on Systems, Man and Cybernetics (SMC), October 2016, describes how certain physiological parameters may be used to establish a stress indicator for an individual. The emergence of portable connected sensors intended to be worn by an individual has made it possible to take measurements of physiological parameters both simply and inexpensively. It is for example a question of specific sensors able to be fastened to a bracelet or integrated into watches or connected to smart phones. For example, the device Empatica E4 comprises various sensors allowing physiological parameters such as electrodermal activity, cardiac activity or temperature to be easily accessed. On the basis of the measured parameters, classification algorithms may be implemented, so as to determine whether the individual is in a stressed state or in a rest state. Certain classification algorithms are based on fuzzy logic. This type of algorithm is for example described in the publication Kumar M “Fuzzy techniques for subjective workload-score modeling under uncertainties”, IEEE transactions on systems, man and cybernetics—part B, Vol. 38, No. 6, December 2008. This type of algorithm requires a learning phase to be carried out, in which an individual is placed in a stressful situation, or in various stressful situations.
The publication De Santos Sierra A. et al. “Real-time stress detection by means of physiological signals”, Recent Application in Biometrics (2011 Jul. 27) describes an analogous approach, according to which, during training, the unit user must be successively in a stressed state and in a rest state. The fact that training, during which the user is placed in a stressful situation, is required is constraining. In addition, the reliability of such methods may be compromised by physiological variability from one user to the next.
Patent application US20200015729, describes a method allowing a stress level of a user to be determined on the basis of physiological parameters measured on the user. One advantageous aspect of this method is that it does not require the user to be placed in a stressed state during the calibration. In other words, the calibration is performed only when the user is at rest. This allows a particularly simple implementation of the method, using measuring equipment worn by the user. In addition, the calibration may be renewed periodically. In this patent application, the stress level of the user is determined using the principles of fuzzy logic: a membership function is established beforehand. The stress level is determined depending on the image, generated by the membership function, of the value of the measured physiological parameter. This method is also described in the publication Charbonnier, Sylvie et al. “A Multi-feature Fuzzy Index to Assess Stress Level from Bio-signals. Conference proceedings: Annual International Conference of the IEEE Engineering in Medicine and Biology Society”. IEEE Engineering in Medicine and Biology Society. Conference. 2018. 1086-1089.
The inventors believe that the method described in patent application US20200015729, and in the aforementioned publication, could be improved, so as to increase the sensitivity and the specificity of the detection of a stress level. This is the objective of the method described below.
A first subject of the invention is a method for determining a membership function, the membership functions allowing a stress level of a user to be determined on the basis of a physiological parameter measured on the user, during a measurement period, the membership function varying, depending on the physiological parameter, between:
The role of the normalization function is to distribute the measured values of the physiological parameters, which are optionally standardized, optimally so as to optimize, after application of the distribution function, the estimation of the stress level of the individual.
In a), the values of the physiological parameter that are measured while each test individual is in a stressed, rest or intermediate state may be grouped into a stressed class, a rest class and an intermediate class, respectively, so that, in step c),
Step c) may comprise determining:
Step c may comprise
Step c) may comprise optimizing an extent of the rest interval.
Step c) may comprise optimizing a scale factor, the threshold distance being determined by multiplying the scale factor by the extent of the rest interval.
The normalization function may be an affine function; c) may comprise determining parameters of the affine function on the basis of the optimized rest interval and of the optimized threshold distance.
The standardization function may be of logarithmic or square-root type.
The method may comprise:
According to an embodiment:
A second subject of the invention is determining a stress level of a user, depending on a physiological parameter measured on the user, during a measurement period, the value of which is liable to vary depending on the stress level of the user, the method comprising:
i) measuring a value of the physiological parameter during a measurement period;
ii) applying a membership function to the value of the physiological parameter measured in step i);
iii) estimating the stress level of the user depending on the value of the membership function computed in step ii);
wherein the membership function is a function determined using the method according to the first embodiment.
A third subject of the invention is a method for determining a stress level of a user, depending on a plurality of physiological parameters of the user, the value of each physiological parameter being liable to vary depending on the stress level of the user, the method comprising:
i) measuring values of various physiological parameters during a measurement period;
ii) for each value of the physiological parameter measured in i), applying a membership function associated with the physiological parameter;
iii) estimating the stress level by combining the values of the membership functions computed in step i);
wherein at least one membership function, associated with one physiological parameter, is a function determined using the method according to the first embodiment.
The method according to the second or third subject of the invention may comprise an initialization phase, containing various initialization periods, in which periods the user is considered to be in a rest state, the initialization phase comprising:
The invention will be better understood on reading the description of the exemplary embodiments, which are described, in the rest of the description, with reference to the figures listed below.
The physiological parameter may be a parameter representing the cardiac frequency (or heart rate). If HRj is the heart rate measured at a time j, the physiological parameter x(t) at t may be:
where Nj is a number of heart rate measurements taken into account, and t−Nj≤j≤t. The number Nj is set so as to include the measurements of the hear rate during a sliding duration of a few seconds or a few tens of seconds, of a few minutes, for example 60 seconds.
If IBIj is the inter-beat interval measured at a time j, the physiological parameter x(t) at t may be:
where Nj is a number of inter-beat intervals taken into account, and t−Nj≤j≤t. The number Nj is set so as to include the measurements of the inter-beat interval during a sliding duration of a few seconds or a few tens of seconds, of a few minutes, for example 60 seconds.
The physiological parameters described in the two preceding paragraphs are particularly suitable for an implementation of the invention. They may be used alone or be combined, as described below. A physiological parameter is determined, for a measurement period, on the basis of signals measured during the measurement period. It may result from a statistical or frequency analysis of these signals.
The objective of the invention is to determine a stress level Sl(t) of a user in various measurement periods t. The user is a living individual, for example a human being or an animal.
The sensor 2 is connected to a microprocessor 4, the latter being connected to a memory 5 in which are stored instructions for implementing the method described below. The microprocessor 4 receives the measurements from the sensor 2, via a wired link or a wireless link. The microprocessor 4 may be borne by the user, it being placed nearby the sensor or incorporated into an associated device borne by the user, a nomadic object such as a smart phone for example. The microprocessor 4 may also be remote from the user.
The operation of the device 1 is described in patent application US20200015729, and more particularly in steps 130 and 140 and
Sl(t)=ƒ(x(t))
The membership function ƒ is intended to estimate a stress level Sl on the basis of the value of a physiological parameter x(t) measured in a measurement period t. The stress level Sl may for example vary between 0 and 1, 0 corresponding to a rest state and 1 corresponding to a stressed state of the user. According to the principles of fuzzy logic, the membership function ƒ may define intermediate levels, comprised between 0 and 1, and corresponding to a state in which the user is neither in a stressed state, nor at rest. The membership function ƒ is preferably continuous in an input space E defined by the values capable of being taken by the measured physiological parameter. The input space E may for example be the set of all real positive numbers. Thus, ƒ:=+→[0,1] and ƒ(x(t))=Sl(t). The membership function ƒ may for example be piecewise linear, or take the form of a hyperbolic tangent or sigmoid.
When the values of the parameter x(t) are comprised in a rest interval Xr, the stress level Sl(t) is close to 0 or equal to 0. The user is considered to be at rest. When the values of the parameter x(t) are distant, by a distance smaller than a threshold distance d, from the rest interval R, the user is considered to be in an intermediate state, between the rest state and a stressed state: 0<Sl(t)<1. When the values of the parameter x(t) are distant, by a distance larger than a threshold distance d, from the rest interval, the user is considered to be in a stressed state. Sl(t) is then equal to 1 or close to 1.
The example given with reference to
According to one possibility, the method described above may be applied by measuring, in each measurement period t, various physiological parameters xi, the index i identifying the parameter in question, with 1≤i≤I, I designating the number of physiological parameters in question. One membership function ƒi is then defined for each physiological parameter xi. The membership functions ƒi, ƒi+1 respectively associated with two different parameters xi, xi+1 may be established independently of each other. It is however preferable, for each membership function, that the rest state and the stressed state respectively correspond to the same levels, for example 0 for the rest state and 1 for the stressed state. A definition of I membership functions ƒ1 . . . ƒI, respectively associated with the I measured physiological parameters x1 . . . xI, is thus obtained.
After each membership function ƒi has been defined, the method comprises, in each measurement period t, implementing it, for each measured parameter xi(t), so as to determine a stress level Sli(t) associated with each parameter xi(t), using the expression Sli(t)=ƒi(xi(t)). A definition of I stress levels Sl1(t) . . . SlI(t), respectively associated with the I physiological parameters x1 . . . xI in question, is thus obtained. The various stress levels Sl1(t) . . . SlI(t), respectively associated with each parameter xi(t), are combined, so as to determine an overall, or multiparameter, stress level Sl(t), according to the principles of fuzzy logic. The combination may be a computation of a mean value or of a median value. It may also be a question of a weighted mean, in which each stress level Sli(t) is assigned a weighting factor λi depending on the importance that it is desired to attribute to the physiological parameter xi relative to the other parameters in question. The various stress levels Sl1(t) . . . SlI(t) may be combined by applying predefined inference rules. On the basis of the multiparameter stress level Sl(t), it is possible to determine whether the user is in a stressed state.
The inventors have considered it necessary for the membership function to be refined, so as to process the measured values of each physiological parameter. This is particularly relevant when various physiological parameters xi are addressed in each measurement period t, so as to obtain a multiparameter stress level. The objective of the processing is to improve the performance of the determination of the stress level, and notably sensitivity (i.e. a minimum proportion of false negatives) and specificity (i.e. a minimum proportion of false positives).
The processing of the measured values consists in applying a membership function to the value of a physiological parameter measured in each measurement period. The invention differs from the prior art in that the membership function is a composition of various functions, defined in a calibration phase that is described below. More precisely, for each physiological parameter xi in question, a membership function ƒi is defined in the calibration phase. Each membership function ƒi associated with one physiological parameter xi corresponds to a composition:
Thus, the method implements, for each physiological parameter xi in question, a membership function ƒi formed by a composition of the optional standardization function Ti, with the normalization function Ai and the distribution function Si. Thus,
ƒi=Si∘Ai∘Ti (4)
or
ƒi=Si∘Ai (5)
∘ designating the function-composition operator.
The normalization function Ai allows, for a given user, the measured physiological parameters to be projected into a space comprising the antecedents of the distribution function. The normalization function Ai is optimized so as to optimize, after the distribution function Si has been applied, the estimation of the stress level in particular with respect to specificity and sensitivity.
The main steps of the calibration phase, allowing the standardization and normalization functions to be defined taking into account a predefined distribution function, will now be described with reference to
Steps 100 to 140 described below relate to one physiological parameter xi. When the method implements various physiological parameters, steps 100 to 140 are performed in parallel, for each addressed physiological parameter.
Step 100: measuring values xi(tc) of the physiological parameter xi during a plurality of calibration periods tc, and for one or more test individuals. The measurements are taken while each test individual is in a state considered to be known. The population and number of measurements are dimensioned so as to obtain a sample that is statistically representative of each parameter, and in each state (stress state, rest state, intermediate state). Typically, at least 30 measured values are obtained for each parameter and in each state.
Step 110: Study of the symmetry of the values measured in step 100, while each test individual is at rest.
For the physiological parameter xi, a distribution Di of the values xi(tc), measured while each test individual is at rest, is determined. A coefficient of symmetry ki is computed for the physiological parameters. The coefficient of symmetry ki quantifies the symmetry of the distribution Di. For example, the coefficient of symmetry ki is such that:
where μi and σi are the mean and standard deviation of the distribution Di, respectively. E is the expectation operator. When ki is positive, the distribution Di is centered on the lowest values of the parameter xi. When ki is negative, the distribution Di is centered on the highest values of the physiological parameter xi. The lower the absolute value of ki, the more the distribution Di is considered to be symmetric.
Following step 110, a coefficient of symmetry ki corresponding to the distribution Di of the values xi(tc) of the physiological parameter xi that were measured in the calibration phase, when each test individual is at rest, is obtained.
Step 120: Determining a Standardization Function
This step is optional. It is preferably implemented when, following step 110, the absolute value |ki| of the coefficient of symmetry ki of a distribution Di exceeds a certain threshold kth: the distribution Di is then considered to be asymmetric. A standardization function Ti is applied to each value xi (tc), such that the distribution D′i of the data Ti(xi(tc)), obtained following the application of the standardization function, has a coefficient of symmetry k′i the absolute value of which is lower than the absolute value of ki: |k′i|<|ki|.
Preferably, |k′i|<kth, such that the distribution D′i is considered to be symmetric.
The standardization function Ti is preferably a concave function. It may for example be a logarithmic function, for example a function that is logarithmic to the base 10, or a square-root function. Whatever the (logarithmic, square-root or other) type of standardization function in question, the standardization function is parameterized to minimize the absolute value of the coefficient of symmetry of the distribution D′i. Thus,
Following step 120, measured values, or measured then standardized values, the distribution of which is symmetric, are obtained. This facilitates implementation of step 130. Specifically, following the application of the standardization function, the data corresponding to the stress state are grouped, symmetrically, about a central value, the occurrence of which is maximal, as shown in
Step 130: Determining a Normalization Function
The objective of the normalization function is to process the values such that the image, generated by the distribution function Si, of the values processed by the normalization function Ai, leads to an optimal separation between the various states, and in particular between stressed states and unstressed states. This step assumes that the distribution function Si is known. As indicated above, the distribution function may be a sigmoid function. According to this example:
In the rest of this example, the input variable processed by the normalization function Ai, which results from step 120, is designated by Xi(tc):
The form of the normalization function Ai is predefined. The latter is parameterized by parameters θi. Step 130 aims to determine the parameters θi of the normalization function Ai. In this example, the normalization function Ai is a function Ai(Xi)=aiXi+bi (12) of affine type. The parameters of the function are θi=(ai,bi).
A first property of the normalization function Ai is that the image, generated by the latter, of the input data Xi(tc), resulting from the calibration phase and corresponding to a rest state, and grouped in a rest interval Ri, form antecedents of a rest state Sli,rest, after the distribution function Si has been applied. Thus:
Xi(tc)∈Ri⇔Si(Ai(Xi(tc)))≅Sli,rest (12′)
The term ≅ signifies equal to a term to within an uncertainty ε. The uncertainty term c is defined beforehand.
The term Sli,rest corresponds to the value of the stress indicator corresponding to a rest state. In the example shown in
Xi(tc)εRi⇔Si(Ai(Xi(tc)))<ε (13)
Alternatively, the variation with respect to stress is negative: this meaning that a stressed state corresponds to a decrease in the measured parameter. Such an alternative is shown in
The input data Xi,rest(tc), which correspond to a rest state, are comprised between a lower bound mi and an upper bound Mi, defining the interval Ri. During the normalization, the normalized values Ai(Xi(tc)) are such that:
Ai(mi)≤Ai(Xi,rest(tc))<Ai(Mi) (13′)
Because the distribution of the input data Xi(tc) is considered to be symmetric, a lower limit mi and an upper limit Mi may be defined such that:
where μi and σi are the mean and standard deviation of the distribution of the input data Xi,rest(tc) corresponding to the measurements taken, at rest, in the calibration phase, respectively. The parameter zi is a standardized amplitude. The amplitude Δi of the rest interval Ri is equal to the product σizi. Thus, the rest interval Ri is dependent on the parameter zi, the value of σi being obtained experimentally, from the input data Xi,rest(tc). The value of zi allows the rest interval Ri and its amplitude Δi, which is such that Δi=Mi−mi, to be determined.
In
A second property of the normalization function Ai is that the image, generated by the latter, of the input data Xi(tc) resulting from the calibration phase and distant from the rest interval Ri by a distance di larger than or equal to αiΔi, form antecedents of a stressed state Sli,stress, after the distribution function Si has been applied. The value βiΔi is a threshold distance di. αi is a positive parameter when the variation in the values of the parameter with respect to stress is positive (see
Thus:
Xi(tc)>Mi+αiΔi⇔Si(Ai(Xi(tc)))≅Sli,stress (14).
Considering a positive variation with respect to stress, and a value Sli,stress equal to 1, expression (14) becomes:
Xi(tc)>Mi+αiΔi⇔Si(Ai(Xi(tc)))>1−ε (15)
The value of ε is low with respect to 1. It may for example be equal to 0.1. In
The distribution function Si is for example of sigmoid type, such as defined with reference to the expressions (10) and (11). It may be deduced that:
and
Ai(Mi)+αi[Ai(Mi)−Ai(mi)]=Si−1(1−ε)=Si−1(ε)=−Ai(Mi) (17)
Assuming Ai to be an affine transformation (see expression (12)), the following is obtained:
and
When the variation in the physiological parameter is negative between the rest state and the stressed state, as shown in
and
Ai(mi)+αi[Ai(mi)−Ai(mi)]=Si−1(1−ε)=Si−1(ε)=−Ai(mi) (21)
It then becomes:
and
The normalization function Ai is dependent on the parameter αi and on the parameter zi.
The parameter zi is representative of the rest interval Ri, the image of which, generated by the distribution function Si composed with the normalization function Ai, corresponds to the rest level Sli,rest. More precisely, zi is representative of the width of the rest interval. The parameter αi dimensions the threshold distance di, between the rest interval and a stressed interval, the image of which, generated by the distribution function Si composed with the normalization function Ai, is equal to Sli,stress to within the uncertainty term ε.
The optimization of the parameters zi and αi is carried out successively, starting with the optimization of the parameter zi. It is performed using the fact that, in the calibration phase, in each calibration period tc, each state Sli(tc) of the test individual is known. The optimization consists in setting one parameter (for example zi), and making the other parameter (for example αi) vary while analyzing the classification performance given by the distribution function ƒi ((Xi(tc))=Si∘Ai(X1(tc). The normalization function Ai is parameterized by the parameters ai and bi such as defined by expressions (22) and (23), the latter themselves being dependent on the parameters αi and zi, the latter having a hyper-parameter function.
By classification performance, what is for example meant is sensitivity, which corresponds to 1—the rate of false negatives, and specificity, which corresponds to 1 minus the rate of false positives. Other statistical indicators, for example a “Cohen's d” test, which is known to those skilled in the art, may also be employed. Cohen's d corresponds to an inter-class distance, in the present case a distance between the distributions of the values respectively considered to be representative of a stressed state and of an unstressed state. The unstressed state is a rest state or an intermediate state.
For example, if two statistical distributions are considered that have mean, standard-deviation and population values denoted μ1, σi, n1 and μ2, σ2 and n2, respectively, the Cohen's d may be such that:
The inventors have established a classification-performance indicator c, such that:
c=ρd where:
where β and γ designate sensitivity and specificity, respectively;
In order to determine the parameter zi that is optimal in terms of classification performance, the parameter αi is set to an absolute value equal to 0.01. Next, zi is varied in increments of 0.25 between two predefined bounds, between 1 and 5 for example. The optimal value of zi, denoted zi,opt, is such that:
The notation cα
After zi,opt has been determined, the optimal parameter αi is determined setting the parameter zi such that zi=zi,opt. Next, αi is varied in increments of 0.1 between two predefined bounds, between 0 and 3 for example when αi>0 or between −3 and 0 when αi<0. The optimal value of αi, which is denoted αi,opt, is such that:
The notation cz
According to one variant, the parameters αi,opt and zi,opt may be determined simultaneously. According to another variant, αi,opt may be determined before zi,opt.
The determination of zi,opt and αi,opt described above corresponds to one example, based on a determination of specificity, sensitivity and Cohen's d. More generally, the parameters zi,opt and αi,opt may be determined on the basis of classification performance determined in a training phase, in which the state of each test individual is known.
Following step 130, the normalization function Ai corresponding to the physiological parameter xi, is obtained.
Step 140: Determining the Membership Function ƒi
In step 140, the membership function is determined according to expressions (4) or (5), using:
Steps 100 to 140 may be respectively implemented for various physiological parameters xi. As many distribution functions are obtained as there are physiological parameters in question. As indicated above, the distribution functions may be combined, in particular in the form of a weighted summation, so as to establish a stress level.
In step 200, one or more physiological parameters xi(t) are measured in a measurement period t. Each physiological parameter xi measured in each measurement period corresponds to one physiological parameter addressed during the calibration.
In step 210, the membership function ƒi, which is defined beforehand for each physiological parameter, is applied to the value xi(t) of the physiological parameter in the measurement period, so as to determine a stress level Sli(t)=ƒi(xi(t)) relating to the physiological parameter xi.
In step 220, the stress level Sl(t) of the user, during the measurement period t, is determined depending on each stress level Sli(t) established, for each addressed physiological parameter, during step 210.
In step 230, the method is reiterated for another measurement period or it is decided to exit the algorithm.
According to one variant, forming the subject matter of steps 160 to 190, the method comprises an initialization phase, in which the user is exclusively in a rest state, or considered in a rest state. The initialization consists in taking measurements of at least one physiological parameter xi(tinit), so as to estimate a range of variation. The measurements are taken in various initialization periods tinit. A dispersion indicator is determined, characterizing the range of variation of the parameter xi during the various initialization periods tinit. The dispersion indicator may for example be a standard deviation σi,init.
The dispersion indicator σi,init thus determined is used to determine the bounds Mi and mi of the rest interval on the basis of zi. The following expressions are then used:
and
Thus, according to this variant, the initialization is performed only with values of the parameter that are measured during the calibration, while the user is considered to be in a rest state. The initialization does not require measurements of a physiological parameter to be taken while the user is in a stressed state. One advantage of the method is that the initialization is faster and simpler to carry out. Another advantage is that the initialization may be repeated periodically, in order to take into account potential physiological user variability. Since the initialization is simple to carry out, it may be repeated frequently.
Steps 160 to 190 are then as follows:
Step 160: taking an initialization measurement xi(tinit)
Step 170: reiterating step 160 or passing to step 180
Step 180: computing the dispersion indicator σi,init
Step 190: using the dispersion indicator σi,init to adjust the membership function ƒi used in step 210, by combining expressions (27) and (28) with expressions (18) and (19) or (22) and (23).
According to another variant, the initialization is not performed and the membership function, relating to one parameter, or even to each parameter in question, is established without adjustment of the membership function resulting from the calibration.
The invention will possibly be employed to track the stress level of users. It may for example be a question of tracking stress level in a professional environment, or of tracking stress level of users subject to anxiety in particular situations, in a means of transportation for example. It may also be applied to track the stress level of a sportsperson. Thus, the stress level can be a level of anxiety or effort, whether physical or mental, or a level of excitement. The stress level can correspond to a mental load of the user: joy, anger, anxiety, fatigue, feeling of lack. The invention can also be applied to the determination of a level of wakefulness or sleepiness.
Number | Date | Country | Kind |
---|---|---|---|
19 15596 | Dec 2019 | FR | national |
Number | Name | Date | Kind |
---|---|---|---|
20200015729 | Vila | Jan 2020 | A1 |
Number | Date | Country |
---|---|---|
3 305 186 | Apr 2018 | EP |
Entry |
---|
Charbonnier, S. et al., “A Multi-feature Fuzzy Index to Assess Stress Level from Bio-signals,” 2018 40th Annual International Conference of the IEEE Engineering in Medicine and Biology Society, EMBC, IEEE, July 18, 2018, XP 033431946, 4 pages. |
French Preliminary Search Report dated Dec. 7, 2020 in French Application 19 15596 filed Dec. 26, 2019 (with English Translation of Categories of Cited Documents and Written Opinion), 10 pages. |
Number | Date | Country | |
---|---|---|---|
20210196172 A1 | Jul 2021 | US |