Method for generating a temporal sequence of situation assessments and associated device

A neural network-based model with 'Transformer' encoding and self-attention decoding addresses the challenge of missing data modalities by maintaining reliable situation evaluations through modality correlation, enhancing robustness and reducing performance drops.

FR3147641A1Inactive Publication Date: 2024-10-11ORANGE SA
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
FR2023003404
Authority / Receiving Office
FR · FR
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-04-05
Publication Date
2024-10-11
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing multimodal learning models struggle with performance drops when faced with missing input data modalities, leading to reduced training periods and statistical biases due to imputation methods, making data processing laborious and less reliable.

Method used

A robust evaluation model using a neural network architecture with a multimodal 'Transformer' encoding and auto-regressive self-attention decoding, combined with cross-attention, to generate reliable situation evaluations even with missing data by leveraging complementarity across modalities.

Benefits of technology

The model maintains reliable performance by focusing on previous evaluations and modality correlations, reducing the impact of missing data and enhancing the robustness of situation assessments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000_ABST
    Figure 00000000_0000_ABST
  • Figure 00000000_0001_ABST
    Figure 00000000_0001_ABST
Patent Text Reader

Abstract

Method for generating a temporal sequence of situation evaluations and associated device. The invention relates to a method for generating a temporal sequence of situation evaluations using a robust evaluation model in the event of missing input data. The method comprises: an encoding step, according to a "Transformer" multimodal encoding model, of data from a combination of positional encoding data, modality encoding data, and temporal data, so as to obtain a plurality of temporal sequences of encoded multimodal representations; a decoding step so as to obtain a temporal sequence of evaluations, the decoding step comprising a substep of applying a self-attention model; and a substep of implementing a cross-attention model. Figure for the abstract: Fig. 2.
Need to check novelty before this filing date? Find Prior Art

Description

Title of the invention: Method for generating a time sequence of evaluations of a situation and associated device Technical field

[0001] The present invention belongs to the general field of data analysis, and more particularly to the processing of data to evaluate the extent to which a particular situation occurs. It relates more particularly to a method for generating a temporal sequence of evaluations of a situation by a robust evaluation model in the event of missing input data. It also relates to an electronic device configured to implement such a method.

[0002] The invention finds a particularly advantageous, although in no way limiting, application in the case where the model is used to evaluate the emotional state of a person or the evolution of the autonomy of a fragile person at home, for example with a view to determining a suitable measure to provide to him / her in the context of a teleassistance service. The invention also applies in the case where the model is used in the context of a video surveillance service, for example with a view to determining a suitable protection measure for an environment equipped with sensors and actuators. Prior art

[0003] In order to adapt to the continuous and ever-increasing growth of data transmitted, different technologies are currently being implemented and are the subject of research and improvement with a view to optimal exploitation in the years to come.

[0004] Among these technologies, multimodal learning is enjoying growing success since it offers much better performance than methods that only consider a single modality. The objective of multimodal learning is to build models adapted to process information from different modalities. Multimodal learning has been used successfully for many applications, such as emotion recognition from multimodal data and event detection from multimedia data.

[0005] Early work in the field has primarily considered the case where complete observations are provided as input to the model, whether during its training, validation or exploitation. However, in practice, it is common for certain modalities to be missing (e.g., for the input data to be affected by missing values ​​at certain times), which disrupts the learning of the model and a fortiori its exploitation. The absence, at least temporary, of data for at least one of the modalities classically expected in The model input can be caused by different reasons, such as a communication problem between a sensor and an electronic device in which the previously mentioned model is embedded, a problem in the data capture by one of the sensors, a movement of a sensor in the environment resulting in the absence of data capture for a certain period, a movement of a person within his environment, etc.

[0006] Recently, different approaches have been proposed to deal with these missing modalities. A relatively classic solution consists simply of not considering the input data (or samples) for which at least one of the modalities is missing. This solution, however, has the disadvantage of reducing the time periods during which the model is trained or validated, which leads to a significant drop in the model's performance.

[0007] Other so-called imputation methods aim to infer missing data based on heuristics, so as to be able to provide input data as input to the model whose modalities correspond to all those expected by this model. However, these imputation methods do not succeed in restoring the original distribution of the missing data, and therefore have the disadvantage of introducing statistical biases. Furthermore, these imputation methods make data processing and analysis more laborious.

[0008] Finally, other methods aim to process all input data, even if some modalities are missing at certain times. However, the performance of these methods is significantly reduced. Statement of the invention

[0009] The present invention aims to remedy all or part of the drawbacks of the prior art, in particular those set out above, by proposing a model which is robust to missing data, both during the model training phase and during the model validation or exploitation phase.

[0010] More particularly, the present invention proposes a model considering the complementarity of the information included in the input data through their different modalities, while also taking into account the previous evaluations carried out by this model. In this way, even if at least one of the modalities expected by the model is not available, the latter will still be able to evaluate a situation reliably.

[0011] To this end, and according to a first aspect, the invention relates to a method for generating a temporal sequence of evaluations (or predictions) of a situation by an evaluation model (based on a neural network and) robust in the event of missing input data, the method being implemented by an electronic device electronics and including: • a step of obtaining a plurality of time sequences of input data from sensors equipping an environment and / or a user, each sequence being associated with a modality, each element of a sequence being representative of a state, at an instant, of the modality associated with the sequence; • an encoding step, according to a “Transformer” multimodal encoding model, of data resulting from a combination, at each instant, of positional encoding data, modality encoding data and temporal data determined from the plurality of temporal sequences of input data, so as to obtain a plurality of temporal sequences of encoded multimodal representations; • a decoding step comprising a sub-step of applying an auto-regressive self-attention model; and a sub-step of implementing a cross-attention model taking as input the plurality of temporal sequences of encoded multimodal representations, so as to generate a temporal sequence of intermediate evaluations; and, • a step of converting the time sequence of intermediate evaluations into the time sequence of evaluations of a situation, said time sequence of evaluations of a situation making it possible to control a triggering of a service adapted to the environment and / or to the user.

[0012] For the purposes of the invention, the notion of modality is defined as a type of data captured by an electronic data capture device (i.e., a sensor), this type of data being expected as input to the evaluation model according to the invention.

[0013] Thus, a method is proposed for generating a temporal sequence of evaluations of a situation, implemented by (at least one) neural network having an architecture consisting of an encoder and a decoder.

[0014] In a manner known per se, the encoder is composed of a set of layers of neurons, which process the data in order to construct so-called "encoded" representations in the sense that the dimensions of these representations are smaller than those of the input data (or samples). The decoder is also composed of layers of neurons which receive these representations and process them.

[0015] The use of a multimodal "Transformer" encoding model offers the advantage of combining information from different modalities. In general, those skilled in the art may refer to the following document for more details regarding the implementation of a "Transformer" encoding model: "Attention Is Ail You Need", Ashish Vaswani & Al., Advances in Neural Information Processing Systems, volume 30, NIPS, 2017.

[0016] The remainder of the description relates more specifically to an evaluation model having an encoder-decoder type architecture. The invention nevertheless remains applicable regardless of the nature of the neural network considered (convolution, perceptron, auto-encoder, recurrent, etc.).

[0017] Furthermore, it is important to note that no limitation is attached to the type of training technique used to obtain the evaluation model. Any technique implementing a learning algorithm ("machine learning") and providing, as output, a representative evaluation of the probability that a certain situation occurs given observations (corresponding to input data), can be considered in the context of the invention (eg, support vector machine, logistic regression, etc.). In other words, the evaluation model is independent of the training method considered to train this model.

[0018] Furthermore, any training criterion known to those skilled in the art may be considered during the training phase of the evaluation model, such as the least squares method or cross-entropy minimization.

[0019] Furthermore, no limitation is attached to the type or modality of the data processed by the evaluation model. Similarly, no limitation is attached to the nature of the situation evaluated (i.e., the nature of the situation(s) evaluated is not a limiting factor of the invention).

[0020] Thus, in a particular example implementation, the input samples of the model include images (or features extracted from raw images), sound data (or features extracted from raw sound data) synchronized with the images, and physiological signals (or features extracted from physiological signals) also synchronized with the other input data.

[0021] According to another particular example of implementation, the inputs of the evaluation model correspond to Internet resources (eg, web pages, tweets) or to documents (audio, video, text, images), and the outputs of the model then correspond to the probability that an event occurs.

[0022] The use of an encoder comprising an autoregressive self-attention model is advantageous in that it forces the evaluation model to focus its attention on evaluations previously carried out by this same model, for a situation which is assumed not to evolve abruptly over time.

[0023] Finally, the use of a cross-attention model offers the advantage of constraining the evaluation model to focus on the different representations at a certain time (and consequently on the different modalities processed by the model), without temporal consideration.

[0024] Generally speaking, it is considered that the steps of a process should not be in- interpreted as being linked to a notion of temporal succession.

[0025] In particular embodiments, the generation method may further comprise one or more of the following characteristics, taken in isolation or in all technically possible combinations.

[0026] In particular modes of implementation, the self-attention model is autoregressive in that, at a current time f, the self-attention model takes as input the intermediate evaluations dt=i previously determined by the evaluation model from input data associated with past times t = Ij - 1-

[0027] In particular embodiments, the positional encoding data represents, for each temporal sequence of input data, the importance of the position of at least one of said elements in said sequence.

[0028] In particular embodiments, the modality encoding data represents the importance of a modality among the modalities of the plurality of temporal sequences of input data.

[0029] In particular embodiments, the generation method further comprises a step of determining the temporal data by applying at least one temporal convolution network to the plurality of temporal sequences of input data.

[0030] In particular embodiments, a separate temporal convolutional network is applied to each of the temporal sequences of input data.

[0031] In particular embodiments, the encoding step comprises a sub-step of filtering the input data of the multimodal encoding model "Transformer", so as to encode only the data included in a sliding time window relative to a current instant.

[0032] This filtering sub-step is advantageous in that it forces the evaluation model to focus on recent information, which is more likely to influence the current situation than information associated with the distant past.

[0033] In particular embodiments, the temporal sequence of intermediate evaluations comprises a plurality of multidimensional elements, and the conversion step comprises applying a layer of a "fully-connected" neural network to the temporal sequence of intermediate evaluations, so as to convert each multidimensional element into a value of evaluation of a situation.

[0034] In particular embodiments, the method further comprises a step of determining positional encoding data, and of combining the intermediate evaluations dt=i previously determined by said evaluation model from input data associated with times t = [„ / - ] with the determined positional encoding data, so as to obtain the intermediate evaluations.

[0035] In particular modes of implementation, the cross-attention model takes as input M encoded representations r'^LM and associated with a current instant f, with M the number of temporal sequences of input data.

[0036] In particular embodiments, the generation method according to the invention further comprises: • a step of obtaining a plurality of temporal sequences of labeled learning data, each sequence being associated with a modality, each element of a sequence being representative of a state, at an instant, of the modality associated with the sequence; • a step of training the evaluation model by minimizing a cost function defined such that L = 1 - CCC with CCC the concordance correlation coefficient.

[0037] In particular embodiments, the generation method according to the invention further comprises: • a step of iterative generation of situation assessments, by the assessment model, by processing input data from the same modality at each iteration, so as to classify the modalities according to their impact on the performance of the assessment model; • a step of retraining the evaluation model, taking as input learning data whose modality has an impact on the performance of the evaluation model below a predetermined threshold.

[0038] In particular embodiments, the situation corresponds to an emotional state of a user.

[0039] In particular embodiments, • the sensors comprise a sound capture device and the associated temporal sequence of input data comprises elements representative of speech emitted by the user and / or the user's prosody (sound modality); and / or • the sensors comprise a physiological sensor, and the associated temporal sequence of input data comprises elements (x[") representative of the user's heart rate, respiratory rate and / or brain electrical activity (physiological modality); • the sensors comprise an image capture device, and the associated temporal sequence of input data comprises elements representative of the user's facial and / or bodily expression (visual modality).

[0040] According to a second aspect, the invention relates to a computer program comprising instructions for implementing a generation method according to the invention, when said program is executed by a processor.

[0041] According to a third aspect, the invention relates to a computer-readable information or recording medium on which the computer program according to the invention is recorded.

[0042] The information or recording medium may be any entity or device capable of storing the program. For example, the medium may comprise a storage means, such as a ROM, for example a CD ROM or a microelectronic circuit ROM, or a magnetic recording means, for example a floppy disk or a hard disk.

[0043] On the other hand, the information or recording medium may be a transmissible medium such as an electrical or optical signal, which may be conveyed via an electrical or optical cable, by radio or by other means. The program according to the invention may in particular be downloaded from a network such as the Internet.

[0044] Alternatively, the information or recording medium may be an integrated circuit in which the program is incorporated (or embedded), the circuit being adapted to execute or to be used in the execution of the method in question.

[0045] According to a fourth aspect, the invention relates to an electronic device comprising an evaluation model configured to determine a temporal sequence of evaluations of a situation, the model being robust in the event of missing input data, the device comprising: • a module for obtaining a plurality of time sequences of input data from sensors equipping an environment and / or a user, each sequence being associated with a modality, each element of a sequence being representative of a state, at an instant, of the modality associated with the sequence; • a multimodal "Transformer" encoder configured to encode data from a combination, at each instant, of positional encoding data, modality encoding data and temporal data determined from the plurality of temporal sequences of input data, so as to obtain a plurality of temporal sequences of encoded multimodal representations; • a multimodal "Transformer" decoder configured to generate a temporal sequence of intermediate evaluations, the multimodal decoder comprising an autoregressive multi-head self-attention sub-module; and a multi-head cross-attention sub-module taking as input the plurality of temporal sequences of encoded multimodal representations; • a module for converting the time sequence of inter-evaluations mediators in the time sequence of evaluations of a situation; and, • a module for controlling the triggering of a service adapted to the environment and / or the user, depending on the time sequence of evaluations of a situation. Brief description of the drawings

[0046] Other characteristics and advantages of the present invention will emerge from the description given below, with reference to the appended drawings which illustrate an exemplary embodiment thereof without any limiting character. In the figures:

[0047] [Fig.lA][Fig.lB] [Fig.lA] is an illustration of input data of an evaluation model, during complete observations, and [Fig.lB] is an illustration of input data of the evaluation model, when data are missing.

[0048] [Fig.2] [Fig.2] represents an example of an evaluation system comprising an electronic device as proposed;

[0049] [Fig.3] [Fig.3] schematically represents an example of the architecture of an encoder of the evaluation model as proposed;

[0050] [Fig.4] [Fig.4] schematically represents an example of architecture of a decoder of the evaluation model as proposed;

[0051] [Fig.5] [Fig.5] schematically represents an example of hardware architecture of an electronic evaluation device as proposed;

[0052] [Fig.6] [Fig.6] illustrates, in the form of a flowchart, the main steps of a general method for evaluating a situation, according to an example of implementation of the invention. Description of the embodiments

[0053] [Fig.lA] is an illustration of input data to the evaluation model, during complete observations, and [Fig.lB] is an illustration of input data to the evaluation model, when data are missing.

[0054] In this example, at each instant t\-< ■■■ the evaluation model expects as input data samples (or elements) associated with two different modalities etm~. The modality corresponds to the visual modality, and the input data associated with this modality correspond to characteristics from images of a person's face. The modality corresponds to the so-called physiological modality, and the input data associated with this modality correspond to signals representative of the respiratory, cardiac and / or cerebral activity of this same person.

[0055] Figure 1A illustrates a first example where all the observations are complete, that is to say that at each instant / j, • ■ • the model processes as input samples including data associated with all expected modalities.

[0056] Figure 1B illustrates the case of missing data. More precisely, at time fy, the model receives as input a sample corresponding to a complete observation since it includes data from both modalities and m-, Then at time fj, the model receives as input a sample including data from the modality only. At this time ?i, the model therefore receives as input missing data. This situation is for example the consequence of a problem on the telecommunications network linking the capture device (e.g., the video camera) and the electronic device in which the evaluation model is incorporated or embedded. At time tp the model again receives as input a sample corresponding to a complete observation. Then from time the model receives as input a sample including only data from the modality mi

[0057] [Fig. 2] represents an example of an evaluation system comprising an electronic evaluation device (10) as proposed. In this example, the electronic device (10) comprises an evaluation model used to evaluate the emotional state of a fragile person (e.g., senior, person suffering from a disability, isolated person, etc.) at home, with a view to determining a suitable measure to provide to him / her as part of a teleassistance service.

[0058] Such a system is particularly advantageous for maintaining vulnerable people at home. Indeed, in this context, it appears necessary to have a better understanding of the emotions of these people, in order to provide a measure of autonomy and services adapted to the situation. This assessment of the emotional state is one of the strong indicators for evaluating the good physical, social and moral health of vulnerable people by the medical profession through teleassistance services. Furthermore, a person's emotions can also reveal changes in their autonomy.

[0059] Also, the evaluation model is configured to process raw data emitted by multimodal sensors equipping the environment (eg, the home) in which a person is located, to determine an emotion score representative of an emotional state, then to trigger (or not) a certain service in order to influence this emotional state.

[0060] More specifically, in a particular example of implementation, the evaluation model is configured to evaluate "negative" emotional situations of people from raw data from sensors equipping a connected home, and, in the event of evaluation of such a situation, to trigger services encouraging these people to have "more positive" emotions. In general, a person skilled in the art can refer to the following work for more details concerning the classification of emotions: "Emotions in Social Psychology", Key Readings in Social Psychology, W. Gerrod Parrott, Psychology Press, 2000.

[0061] In a particular example of implementation, fifteen classes of emotions are defined: neutral (1), disgusted (2), panicked (3), anxious (4), angry (5), cold anger (6), desperate (7), sad (8), enthusiastic (9), happy (10), interested (11), bored (12), ashamed (13), proud (14), and contemptuous (15). The classes disgusted (2), panicked (3), anxious (4), angry (5), cold anger (6), desperate (7), sad (8), bored (12), and ashamed (13) can be considered negative, and the emotion classes enthusiastic (9), happy (10), interested (11) can be considered positive.

[0062] The services that can be provided by the evaluation model in response to an evaluation of a situation (eg, a negative emotion) are for example identified by links (eg, web addresses) and stored in a correspondence table associating said services with predetermined values ​​of respective scores.

[0063] If a threshold value is exceeded, at least one link to a corresponding digital service is accessed, and then its activation is proposed to this person via a human-machine interface (not shown). Alternatively, this service is automatically triggered.

[0064] As illustrated in [Fig.2], the evaluation system comprises an electronic evaluation device (10) configured to continuously obtain or receive a set of signals. Each signal of the set carries data of at least one modality.

[0065] These signals are generated by connected sensors, then transmitted to the electronic evaluation device (10) via a telecommunications network (not shown). In this example, the connected sensors comprise an image sequence device (e.g., a video camera or a photo camera) (10) configured to capture images of a person detected in a capture zone of this camera.

[0066] A video recording of the person is then obtained (visual modality). This recording is analyzed by an analysis module ("Video Content Analysis" according to English terminology) of the video camera (20) or alternatively of the electronic evaluation device (10), so as to collect different characteristics relating to the face or facial expressions, to the different gestures or postures, to the movements of the person, to the ambient brightness, etc.

[0067] The electronic evaluation device (10) is also configured to simultaneously receive other signals emitted by other sensors equipping the environment or the fragile person.

[0068] Thus, the evaluation system of [Fig. 2] further comprises an audio capture device (40) configured to collect an audio recording. The processing of this audio recording is for example implemented by said audio capture device (40), in order to extract therefrom signals representative of words emitted by the person and / or of the prosody of this person, of an ambient sound level, of an es position estimation of the person, etc. Thus, in this example, the audio capture device (40) is configured to transmit a plurality of different signals (but associated with the same sound modality) to the electronic evaluation device (10). Alternatively, these processing operations on the raw signals are carried out by an analysis module of the electronic evaluation device (10).

[0069] Finally, the evaluation system of [Fig. 2] comprises a physiological signal capture device (30) taking in this example the form of a connected watch. This physiological signal capture device (30) is configured to capture and process signals representative of the heart rate, the respiratory rate and / or the cerebral electrical activity of this person. Alternatively, the processing on the different physiological signals (but associated with the same physiological modality) is implemented by an analysis module of the electronic evaluation device (20).

[0070] [Fig.3] schematically represents an example of the architecture of an encoder of the evaluation model as proposed.

[0071] As illustrated in Figure 3, the encoder takes as input M time sequences of input data from sensors equipping an environment and / or a user. Each sequence is associated with a modality "î = LAf, and comprises a series of elements -¾ Each of these elements X"' is representative of a state, at an instant z, of the modality m associated with the sequence.

[0072] This encoder comprises M temporal convolution networks (TCNs) which take as input the M temporal sequences of input data. In other words, a temporal convolution network is dedicated to each of the modalities expected as input to the model. In a manner known per se, each of the M temporal convolution networks (TCNs) makes it possible to extract T temporal data. Alternatively, the evaluation model comprises only a single temporal convolution network (TCN) which takes as input the M temporal sequences of data.

[0073] More formally, let xm be an element representative of a state, at an instant of modality m, of dimension dmodaiity. Let [x™, ..., Xp] be the sequence of length T of states associated with modality m, then

[0074] [a™ ..., ] = TCNm ([xf, ..., x^ ])

[0075] with e the output sequence of the TCN. For each of the modalities, the outputs have the same size ^modei •

[0076] This encoder further comprises M positional encoding modules taking the form of neural networks (or corresponding to one or more layers of a neural network), each positional encoding module generating T weighted temporal data DPp from the T elements These weights (or data positional encoding (P™)) represent, for each time sequence m of input data, the importance of the position of at least one of said elements 4=1.7 in said sequence m.

[0077] More formally, for a given modality, let , PT] be the sequence of positional encoding data with p? g ^modd, then the output of one of the positional encoding modules is expressed in the form

[0078] Or+Pj, ...,aÿ+PT]

[0079] The encoder further comprises M modal encoding modules also taking the form of a neural network (or corresponding to one or more layers of a neural network), each modal encoding module taking as input the T outputs of one of the positional encoding modules, and generating T weighted temporal data DPm. These weights (or modality encoding data) (Em) represent the importance of a modality m among the M modalities of the M temporal sequences of input data.

[0080] For each given modality m = 1-M, a modality encoding data ge R'7™'1*61 is determined and then added to each input of the associated modal encoding module. The output of this modal encoding module is then expressed in the form

[0081] [^4^4-^, ...,a^ + PT + EM].

[0082] More precisely, the elements , Pt and Em are combined by a combination module, so as to obtain only a sequence of "simple" elements. More formally, let 4- p^ 4- Em, and M the number of modalities expected by the evaluation model, then the combined sequence is expressed in the form:

[0083] [ P fl fM | J j* * * ' 5 J * J | ' 7 J j J

[0084] The M combined sequences are processed by a multimodal encoder "Transformer" (MMTE). More precisely, this multimodal encoder "Transformer" is configured to encode data from a combination, at each instant, of positional encoding data p^1, modality encoding data Em and temporal data à]” determined from the M temporal sequences of input data, so as to obtain M temporal sequences of encoded multimodal representations r™.

[0085] More formally, the encoded representations r™ at the output of the Transformer multimodal encoder are expressed in the form:

[0086] [r|, ...,4, ...,4, = Transform ( [ / }, , f™, ..., ] ).

[0087] with Transformer() a function implemented by the Multimodal Encoder "Transformer" (MMTE).

[0088] In a manner known per se, a "Transformer" encoder comprises a stack of identical encoders but which do not share their weights. Each ENC encoder in the stack is typically divided into two modules: • a self-attention module that forces the encoder to consider other elements of the same input data sequence when encoding a particular element ("mono-modal" mode); and, • a module based on a feed forward neural network.

[0089] The self-attention module of an ENC encoder is configured to take an element (eg, a data vector) as input, and generate an intermediate representation Zj as output, which is itself transmitted to the module based on a forward propagation neural network of this ENCU encoder so as to generate a representation r^.

[0090] This representation is then transmitted to the self-attention module of the ENCi+l encoder of the stack which generates as output an intermediate representation which is itself transmitted to the module based on a forward propagation neural network of this EN encoder so as to generate a representation p Etc.

[0091] Generally speaking, those skilled in the art may refer to the following document for further details regarding the implementation of a multimodal "Transformer" encoder: "Transformer Encoder With MultiModal Multi-Head Attention for Continuous Affect Recognition", H. Chen & Al., IEEE Transactions on Multimedia, vol. 23, pp. 4171-4183,2021.

[0092] [Fig.4] schematically represents an example of the architecture of a decoder of the evaluation model as proposed.

[0093] As illustrated in [Fig.4], the decoder of the evaluation model as proposed comprises a multimodal decoder "Transformer" TDL, this multimodal decoder "Transformer" TDL comprising an autoregressive multi-head self-attention module MHS A, a multi-head cross-attention module MHCA, and a first conversion module FFN taking the form of a "fully-connected" neural network.

[0094] The MHSA is connected to the MHCA which is itself connected to the FFN. The TDL is itself connected to a second conversion module (FC) taking the form of a layer of a "fully-connected" neural network.

[0095] The TDL outputs a time sequence of intermediate evaluations -,d^

[0096] The MHSA is said to be auto-regressive in the sense that it takes as input the intermediate evaluations previously generated by the TDL. More precisely, in the case where the decoder seeks to evaluate a situation at the current time, the MHSA of the TDL takes as input a plurality of intermediate evaluations previously generated ( ) and having been weighted.

[0097] It is important at this stage to recall that the use of an auto-regressive MHSA is advantageous in that it forces the evaluation model to focus its attention on evaluations previously carried out by this same model, for a situation which is assumed not to evolve abruptly over time.

[0098] The decoder further comprises a positional encoding module referenced p and taking the form of a neural network (or corresponding to one or more layers of a neural network). This positional encoding module is configured to weight these previously generated intermediate evaluations, and operates in a similar manner to those previously mentioned with reference to [Fig.3].

[0099] More formally, the multi-head attention mechanism of MHSA and MHCA projects a query vector at a first position to a key vector k at a second position in order to determine the attention (i.e., the weighting) to be given to a value vector v associated with the position of the key vector k. The final value corresponds to the weighted sum of the v value vectors at the different positions. The multi-head attention mechanism is then expressed as follows:

[0100] MHA(2, K, V)

[0101] with Q, K and V the sequences used as query, key and value.

[0102] In the case where a situation at the instant is evaluated, the TDL has previously generated the sequence [ d^ ..., dt_i ] with ^modei. The input of the decoder is then expressed as follows:

[0103]

[0104] with e a vector initialized using random or predetermined values completed.

[0105] This input is weighted by the positional encoding module p which generates the following sequence It

[0106] I,= [d0+Pf>d, + Pt...,dH+P,.,].

[0107] Within the TDL, the sequence h is first processed by the MHSA. It is important at this stage to recall that the MHSA uses a self-attention mechanism aimed at focusing its attention on evaluations previously carried out by this same evaluation model. Consequently, the query, key and value vectors are all three determined from the input sequence It. The sequence of characteristics h- ER"'"'*" at the output of the MHSA is then expressed in the form:

[0108] XX

[0109] These sequences of characteristics are then processed by the MHCA module which offers the advantage of constraining the evaluation model to focus on the different representations at a certain time (and consequently on the different modalities processed by the model), without temporal consideration.

[0110] More precisely, the MHCA takes as input the sequence of encoded representations [, r|-, ..., r^1, ]• In other words, the key and value vectors are determined from this sequence of encoded representations, and the query vector corresponds to the output of the MHSA. More formally, the output of the MHCA is expressed as [YES] h;=MHA([ / z0, / 21, H [r*,

[0112] Thus, in the case where a situation at time? is evaluated, the MHCA takes as input the encoded representations associated with this time? only, so as to force the evaluation model to focus on the different representations, without temporal consideration.

[0113] The TDL further comprises a first conversion module (FFN) taking the form of a "fully-connected" neural network. Let [ hp ..., ht.A ] = H? with F modeÊ . Then, the temporal sequence of intermediate evaluations [dp dt] at the output of this first conversion module is expressed as follows:

[0114] ...Xj] = [FFN( / z0),FF^^ ...,FFNXj)].

[0115] d — h- with 1

[0116] The invention has so far been described in the case where the decoder comprises only one TDL. These developments can however be generalized without difficulty by those skilled in the art to the case where the decoder comprises a stack of TDLs. In this particular case, the developments previously mentioned apply to the first TDL (to be entered into the stack), and the sequence j corresponds to the entry of the second TDL (to be entered into the stack). The last TDL (to be entered into the stack) determines the sequence of intermediate data [dp -, dt\ such that J — d with ie [1, ?].

[0117] The decoder further comprises the second conversion module (FC) which takes as input this sequence [dp -, df\, and converts each element of the sequence into a value representative of a situation (or into a vector of values ​​representative of one or more different situations), so as to obtain a time sequence where each element corresponds, at a certain instant, to an evaluation of a particular situation. As mentioned previously, this second conversion module takes the form of a layer of a "fully-connected" neural network applied to each of the elements of the sequence sequence [d^

[0118] In a particular implementation, the same second conversion module is applied to each element.

[0119] [Fig.5] schematically represents an example of hardware architecture of an electronic evaluation device (10) as proposed.

[0120] As illustrated by [Fig. 5], the electronic evaluation device 10 has the hardware architecture of a computer. Thus, the electronic evaluation device 10 comprises, in particular, a processor 1, a random access memory 2, a read-only memory 3 and a non-volatile memory 4. It further comprises a communication module 5.

[0121] The read-only memory 3 of the wireless communication device 10 constitutes a recording medium as proposed, readable by the processor 1 and on which is recorded a computer program PROG in accordance with the invention, comprising instructions for the execution of steps of the generation method as proposed below. The program PROG defines one or more functional modules of the electronic evaluation device, which rely on or control the hardware elements 1 to 5 mentioned above, and which include in particular: • a module for obtaining a plurality (M) of temporal sequences of input data from sensors equipping an environment and / or a user, each sequence being associated with a modality (m), each element (of a sequence being representative of a state, at an instant (r), of the modality (m) associated with the sequence; • a multimodal encoder "Transformer" (MMTE) configured to encode data from a combination, at each instant, of positional encoding data (F*™), modality encoding data (Em) and temporal data determined from the plurality (M) of temporal sequences of input data, so as to obtain a plurality (A / ) of temporal sequences of encoded multimodal representations (F"); • a multimodal "Transformer" decoder (TDL) configured to generate a temporal sequence of intermediate evaluations (df), the multimodal decoder comprising an autoregressive multi-head self-attention (MHSA) sub-module; and a multi-head cross-attention (MHCA) sub-module taking as input the plurality (NKM) of temporal sequences of encoded multimodal representations (f[w); • a conversion module (FC) of the temporal sequence of intermediate evaluations into the temporal sequence of evaluations of a situation; and, • a control module (not shown) for triggering a service adapted to the environment and / or the user, depending on the temporal sequence of evaluations of a situation.

[0122] Furthermore, the wireless communication device 10 may also comprise other modules, in particular for implementing particular modes of the full-duplex communication method, as described in more detail later.

[0123] ] [Fig.6] illustrates, in the form of a flowchart, the main stages of a process general assessment of a situation, according to an example of implementation of the invention;

[0124] As illustrated by [Fig.6], the general method for evaluating a situation comprises a first phase S1000 of training an evaluation model comprising steps S110 to S140, and a second phase S2000 of validating or exploiting the evaluation model and comprising steps S210 to S360, this second phase corresponding to an example of a generation method as proposed.

[0125] S1000 training phase

[0126] The method comprises a first step SI 10 of obtaining a plurality (M) of temporal sequences of labeled learning data, each sequence being associated with a modality m, each element xp of a sequence being representative of a state, at an instant f, of the modality m associated with the sequence. This step SI 10 is implemented by the module for obtaining a plurality of temporal sequences previously mentioned.

[0127] More concretely, this learning data is provided as input to the model in the form of data vectors.

[0128] In a particular example of implementation, raw data emitted by different types of sensors - each sensor being associated with a particular modality - are continuously recorded in a database. The samples of this raw data are labeled using a value representative of one or more categories or classes. This representative value is for example included in the interval [-1;1],

[0129] In a particular example of implementation, signals associated with a visual modality (and corresponding for example to image sequences captured by an image capture device such as a camera or a photo camera), with a sound modality (and corresponding for example to sound samples captured by a microphone) and with a physiological modality (and corresponding for example to signals representative of a respiratory, cardiac frequency and / or to a cerebral electrical activity captured by a connected watch) are considered.

[0130] In a particular example of implementation, the assessment model is an assessment model of an emotional state, and fifteen classes of emotions are defined: neutral (1), disgusted (2), panicked (3), anxious (4), angry (5), cold anger (6), hopeless (7), sad (8), enthusiastic (9), happy (10), interested (11), bored (12), ashamed (13), proud (14), and contemptuous (15). The classes disgusted (2), panicked (3), anxious (4), angry (5), cold anger (6), desperate (7), sad (8), bored (12), and ashamed (13) can be considered negative, and the emotion classes enthusiastic (9), happy (10), interested (11) can be considered positive.

[0131] This database is accessible by a raw data analysis module, for example embedded in the electronic evaluation device 10, and which is then configured to generate new signals on the basis of the raw data. This analysis module is furthermore configured to segment the raw data into data sections of a predetermined time interval (for example 30 seconds), without overlapping the sections.

[0132] Temporal segmentation makes it possible to have chronologically synchronized time series of interest. For example, a temporal segmentation into 30-second time intervals has the effect that all the time series of interest comprise, for each 30-second time interval, an associated value of a quantity of interest. This temporal synchronization makes it possible, for example, to establish multimodal correlations between the values ​​of different quantities of interest during the same time interval, or during consecutive time intervals. Thus, it is possible to structure in the model, for example, a correlation between the user's speech rate during a given time interval and a facial expression during a following time interval.

[0133] Then the analysis module identifies characteristics of interest (eg, a face, words of the individual, etc.) from the raw data, and generates signals of interest. These signals of interest are finally processed by the analysis module so as to generate learning data which will be used during the training phase S1000 of the evaluation model.

[0134] This processing generally allows the signals of interest to be shaped with a view to evaluating the situation (e.g., the emotional state of the person).

[0135] In a particular example of implementation, the targeted processing includes the calculation of facial characteristics ("Facial Action Units" according to English terminology), eGeMAPS sound characteristics ("extended Geneva Minimalistic Acoustic Parameter Set" according to English terminology), and / or a concatenation of BPM data ("Beat Per Minutes" according to English terminology), an electrocardiogram, and a respiratory rate).

[0136] In a particular example of implementation, the targeted treatments include at least one of: the application of low-pass filtering, normalization, or resampling. Low-pass filtering offers the advantage of denoising the information, normalization makes it possible to standardize the data and resampling of data allows you to synchronize sources.

[0137] The training phase further comprises a step S120 during which the evaluation model is trained, by processing the training data obtained during step S110.

[0138] In a particular mode of implementation, the evaluation model is trained by applying a cost function defined such that L = 1 - CGC with CCC the concordance correlation coefficient.

[0139] We recall at this stage that the concordance correlation coefficient is expressed in the form

[0140] — ................ 2?

[0141] with P the correlation coefficient between the predicted values ​​j and the exact values ​​("ground-truth values"), the standard deviation and P the mean of either the predicted values ​​or the exact values.

[0142] In a particular embodiment, phase S1000 further comprises steps S130 and S140. During step S130, the modality or modalities having a significant impact on the evaluation of a given situation are identified. To do this, the evaluation model is first trained by applying step S120, then this same evaluation model, once trained, is evaluated by processing data from a single modality at a time. In other words, this evaluation model evaluates the same situation iteratively, considering at each iteration input data from the same modality.

[0143] Then the iterations during which the performance of the evaluation is low (eg, the lowest or, alternatively, those below a predetermined threshold value) are determined, which correspond to the modalities having a significant impact on the evaluation performance of the model. In this way, each of the modalities is classified according to its impact on the performance of the prediction model.

[0144] The training phase S1000 then comprises a step S140 during which the evaluation model is re-trained, but this time by excluding, from the input data, those associated with the modalities determined during step S130 as having a significant impact on the evaluation performance.

[0145] According to a particular example, for each sequence of input data, the data associated with the modalities having a significant impact with a probability ^eliminate are excluded from the relearning, with ^eliminate a probability that the data is missing or present, and only the modalities having a probability p„,^ ~ _ P i . are considered as input to the evaluation model during this 1 node 1 ehminate step S140.

[0146] Thus, by hiding from the evaluation model the modalities having a significant impact on the performances, this forces this model to evaluate the correlations between the modalities having a less significant impact. Thus, these steps S130 and S140 make it possible to obtain a model for evaluating a situation which is more robust in the event of missing data for at least one of the modalities conventionally expected as input to the evaluation model, and having a significant impact on the performances.

[0147] Phase S2000 of validation or exploitation of the previously trained model

[0148] This phase S2000 corresponds to a method of generating a temporal sequence of evaluations (or predictions) of a situation by an evaluation model (based on a neural network and) robust in the event of missing input data.

[0149] Phase S2000 comprises steps S210 to S250 implemented by the encoder as represented by [Fig.3], and steps S310 to S360 implemented by the decoder as represented by [Fig.4].

[0150] As illustrated in Figure 6, the method for generating a sequence comprises a first step of obtaining input data from a plurality (M) of temporal sequences of input data from sensors equipping an environment and / or a user, each sequence being associated with a modality (7”), each element (X™) of a sequence being representative of a state, at an instant (7), of the modality (m) associated with the sequence.

[0151] The step of obtaining these input data is similar to step S110, and is not re-detailed for the sake of brevity. Since this is a validation or exploitation phase, this step S210 is distinguished from step S110 by the fact that the input data are of course not labeled. This step is implemented by the module for obtaining a plurality of time sequences previously mentioned.

[0152] The method for generating a sequence further comprises a step S220 during which temporal data are determined by applying at least the temporal convolution network TCN of the encoder to the plurality (M) of temporal sequences of input data.

[0153] During a step S230, positional encoding data (p7”) are determined by one or more of the positional encoding modules of the encoder, these encoding data representing, for each temporal sequence of input data, the importance of the position of at least one of said elements in said sequence. The positional encoding data are then combined with the temporal data, so that the output of this positional encoding module is then expressed for example in the form

[0154] [a^ + P], ..., O} + ^].

[0155] Then, during a step S240, modal encoding data (Ein) are determined by the modal encoding module of the encoder, these encoding data representing, for each temporal sequence of input data, the importance of a modality among the M modalities of the input data. The modal encoding data are then combined with the outputs of the positional encoding module of the encoder, so that the output of this modal encoding module is then expressed for example in the form

[0156] [af + Pj + Em...,a^ + Pr+Em].

[0157] The method further comprises a step S250 of encoding, according to a multimodal “Transformer” encoding model, the output [ a™ + P + Em, a'f + PT + Em ], so as to obtain a plurality (M) of temporal sequences of encoded multimodal representations (r”!). This step is implemented by the multimodal encoder "Transformer" MMTE previously mentioned.

[0158] In a particular mode of implementation, the encoding step S250 comprises a sub-step of filtering the input data of the multimodal encoding model "Transformer", so as to encode only the data included in a sliding time window relative to a current instant.

[0159] Then, during a step S310, the decoder obtains as input the intermediate evaluations previously generated by the TDL. Thus, in the case where the decoder seeks to evaluate a situation at the instant the MHSA of the TDL takes as input a plurality (eg, t-2) of intermediate evaluations previously generated ([dy -, drï ]) and having been weighted.

[0160] The generation method further comprises a step S320 during which positional encoding data (p) are determined by a positional encoding module (p ) of the decoder. The positional encoding data are then combined with the plurality of previously generated intermediate evaluations, so that at the evaluation of the situation at time;, the input It of the multimodal decoder "Transformer" is expressed for example in the form

[0161] 1,= ^ + ^ ..., rfH + PM]

[0162] The generation method further comprises a step S330 during which a self-attention mechanism is applied to the input lt by the MHSA.

[0163] It is important at this stage to recall that the application of a self-attention mechanism offers the advantage of forcing the evaluation model to focus its attention on evaluations previously carried out by this same evaluation model.

[0164] The generation method further comprises a step S340 during which a cross-attention mechanism is applied by the MHCA. It is important at this stage to recall that the application of a cross-attention mechanism offers the advantage of constraining the evaluation model to focus on the different representations to be a certain instant (and consequently on the different modalities processed by the model), without temporal consideration. The output of the MHCA is expressed in the form

[0165] ...AJ, [4 ..., A], jj, ..., A]).

[0166] The generation method further comprises a step S350 during which the first conversion module FFN generates the temporal sequence of intermediate evaluations [d}, df\ such that:

[0167] [ / JJ ... = [FFN(J),FFN^...,FFN(JJ],

[0168] and d. — fa. 1 with ie Et / ]•

[0169] Then, during a step S360, each element of this sequence [J d{] is converted into a value representative of a situation (or into a vector of values ​​representative of one or more different situations), so as to obtain a time sequence [ Ç -, $] °where each element corresponds, at a certain instant, to an evaluation of a special situation.

[0170] The invention has so far been described in the case where the decoder comprises only a single TDL. These developments can however be generalized without difficulty by those skilled in the art to the case where the decoder comprises a stack of TDLs. In this particular case, steps S330, S340 and S350 are repeated.

[0171] Finally, this temporal sequence of evaluations of a situation [J )7] is used to determine whether a service is suitable for the environment and / or the user should be triggered or not.

[0172] For this purpose, according to a particular example of implementation, a plurality of services digital that can be suggested to a person and defined by respective links are stored in a correspondence table, in association with score thresholds respective. In the event that a threshold is exceeded by one or more elements of the time sequence |v J, at least one link to a corresponding digital service is read to suggest the corresponding digital service to the user via a human-machine interface. The situation assessed corresponds, for example, to the person's emotional state.

[0173] Thus, a service is only recommended to the person if the intensity of an assessment of a predetermined situation is sufficiently high. This has the effect of reserving the suggestion of services to this person at times when the execution of these services would be most useful to him.

[0174] According to a particular example of implementation, an animation routine of a human-machine interface of any communicating equipment of the environment in which a person is located (eg, a connected habitat) is triggered.

[0175] The service recommendation is for example executed on the best channel of broadcasting for the person, such as the living room TV, a communicating speaker, a smartphone, etc. The communicating equipment most suited to this purpose can be selected, for example, on the basis of the functionalities offered by the different communicating equipment in the installation.

[0176] Another criterion may be an estimate of the distance, at the current time, between the different communicating devices and the person, making it possible to choose, among the different communicating devices of the installation capable of triggering the proposed services, the one closest to the person at the current time.

[0177] According to a non-limiting example, the evaluated situation corresponds to an evaluation of the emotional state of a person, and the animation routine is configured to suggest, to the person, at least one predefined digital service associated with the evaluation of his emotional state. For example, if the predicted situation is "panicked", the associated services in a preference model may be in an order of preference "an incentive to call a friend", "an incentive to call the teleassistance service" or "an increase in home comfort by automatically adjusting the brightness".

[0178] Other examples of services can be described for each "negative" emotional situation according to the preferences and habits of the people. These preferences can be defined by the people themselves or by a trusted third party, such as family, a loved one, or the medical profession. These preferences can be defined, reorganized or updated automatically by learning from the services used in the past, in correlation with the situations evaluated.

[0179] The invention has so far been described in the case where the combination operator + " corresponds to an addition. The invention nevertheless remains applicable in the cases where other combination operators are considered, such as

Claims

Claims

1. A method of generating a time sequence of evaluations of a situation by a robust evaluation model in the event of missing input data, the method being implemented by an electronic device (10) and comprising: • a step of obtaining (S210) a plurality (M) of temporal sequences of input data from sensors equipping an environment and / or a user, each sequence being associated with a modality, each element (X™) of a sequence being representative of a state, at an instant (r), of the modality (m) associated with the sequence; • an encoding step (S250), according to a multimodal “Transformer” encoding model (MMTE), of data resulting from a combination, at each instant, of positional encoding data (P*”), modality encoding data (E^ and temporal data determined from the plurality (Af) of temporal sequences of input data, so as to obtain a plurality (Af) of temporal sequences of encoded multimodal representations (r"!); • a decoding step (S300) comprising a sub-step (S330) of applying an auto-regressive self-attention model (MHSA); and a sub-step (S340) of implementing a cross-attention model (MHCA) taking as input the plurality (M) of temporal sequences of encoded multimodal representations (r™), so as to generate a temporal sequence of intermediate evaluations; and, • a step of converting (S360) the time sequence of intermediate evaluations into the time sequence of evaluations of a situation, said time sequence of evaluations of a situation making it possible to control the triggering of a service adapted to the environment and / or to the user.

2. A generation method according to claim 1, the self-attention model (MHSA) being auto-regressive in that, at a time current\ said self-attention model takes as input the intermediate evaluations dt=lt} previously determined by said evaluation model from input data associated with past instants

3. A generation method according to claim 1 or 2, wherein the positional encoding data (p™) represents, for each temporal sequence of input data, the importance of the position of at least one of said elements in said sequence.

4. A generation method according to one of claims 1 to 3, wherein the modality encoding data (Em) represents the importance of a modality among the (M) modalities of the plurality (M) of temporal sequences of input data.

5. Generation method according to one of claims 1 to 4, further comprising a step of determining the temporal data by applying (S220) at least one temporal convolution network (TCN) to the plurality (M) of temporal sequences of input data.

6. Generation method according to one of claims 1 to 5, in which the encoding step (S250) comprises a sub-step of filtering the input data of the multimodal encoding model "Transformer" (MMTE), so as to encode only the data included in a sliding time window relative to a current instant.

7. Generation method according to one of claims 1 to 6, further comprising a step of determining positional encoding data (Pt=ui), and of combining (S320) the intermediate evaluations ^r-LM previously determined by said evaluation model from input data associated with times t = 1 with the determined positional encoding data (P'"), so as to obtain the intermediate evaluations.

8. Generation method according to one of claims 1 to 7, in which the cross-attention model takes as input M representations encoded and associated with a current instant, with M the number of temporal sequences of input data.

9. Generation method according to one of claims 1 to 8, further comprising: • a step of obtaining (SI 10) a plurality (M) of temporal sequences of labeled learning data, each sequence being associated with a modality (w), each element (^" ) of a sequence being representative of a state, at an instant (z), of the modality (m) associated with the sequence; a training step (S 120) of the evaluation model by minimizing a cost function (L) defined such that L= 1-CCC with CCC the concordance correlation coefficient.

10. A generation method according to claim 9, further comprising: • a step of iterative generation (S 130) of evaluations of the situation, by the evaluation model, by processing input data of the same modality at each iteration, so as to classify the modalities according to their impact on the performance of the evaluation model; • a retraining step (S 140) of the evaluation model, taking as input learning data whose modality has an impact on the performance of the evaluation model below a predetermined threshold.

11. Generation method according to one of claims 1 to 10, in which the situation corresponds to an emotional state of a user.

12. Generation method according to one of claims 1 to 11, in which: • the sensors comprise a sound capture device and the associated temporal sequence of input data comprises elements (X[”) representative of speech emitted by the user and / or of the user's prosody; and / or • the sensors comprise a physiological sensor, and the associated time sequence of input data comprises elements (1™) representative of the user's heart rate, respiratory rate and / or brain electrical activity the sensors comprise an image capture device, and the associated temporal sequence of input data comprises elements (^f) representative of the facial and / or bodily expression of the user.

13. A computer program comprising instructions for implementing a determination method according to any one of claims 1 to 12, when said program is executed by a computer.

14. A computer-readable recording medium having a computer program recorded thereon according to claim 13.

15. Electronic device (10) comprising an evaluation model configured to determine a temporal sequence of evaluations of a situation, the model being robust in the event of missing input data, the device comprising: • a module for obtaining a plurality (M) of temporal sequences of input data from sensors equipping an environment and / or a user, each sequence being associated with a modality (m), each element (xf) of a sequence being representative of a state, at an instant (z), of the modality (m) associated with the sequence;• a multimodal encoder "Transformer" (MMTE) configured to encode data from a combination, at each instant, of positional encoding data (^), modality encoding data (Em) and temporal data determined from the plurality (M) of temporal sequences of input data, so as to obtain a plurality (M) of temporal sequences of encoded multimodal representations (r™); • a multimodal decoder "Transformer" (TDL) configured to generate a temporal sequence of intermediate evaluations (df), the multimodal decoder comprising an auto-regressive multi-head self-attention (MHSA) sub-module; and a multi-head cross-attention (MHCA) sub-module taking as input the plurality (M) of temporal sequences of encoded multimodal representations (F”'); • a conversion module (FC) of the temporal sequence of intermediate evaluations into the temporal sequence of evaluations of a situation;and, • a module for controlling the triggering of a service adapted to the environment and / or the user, depending on the time sequence of evaluations of a situation.; 28

Citation Information

Patent Citations

  • Multimodal dynamic attention fusion

    US20220392637A1