Electronic device and data processing method comprising at least one self-adaptive artificial intelligence model with local learning, associated electronic system and computer program
The electronic device with self-adaptive learning modules addresses neural network biases and inefficiencies by determining the best determination mode and continuously adapting synaptic weights, enhancing data processing reliability and reducing the need for labeled data.
Patent Information
- Application Number
- FR2022008172
- Authority / Receiving Office
- FR · FR
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2022-08-08
- Publication Date
- 2024-10-04
- Estimated Expiration
- 2042-08-08
AI Technical Summary
Existing neural networks in data processing are biased towards efficient classes and reliable predictions, leading to reduced precision and require frequent retraining with labeled data, which is costly and inefficient.
An electronic device with an acquisition, estimation, determination, and learning module that adapts to new data through self-adaptive learning, utilizing a set of artificial intelligence models, including prediction and anomaly detection, to determine the best determination mode and modify synaptic weights based on uncertainty and anomaly coefficients, allowing continuous learning without external intervention.
The device enhances data processing reliability by minimizing bias and reducing the need for labeled data, enabling efficient and continuous learning directly from sensor inputs, thus improving task determination and reducing catastrophic forgetting.
Smart Images

Figure 00000035_0000 
Figure 00000036_0000 
Figure 00000037_0000
Abstract
Description
Title of the invention: Electronic device and data processing method comprising at least one self-adaptive artificial intelligence model with local learning, associated electronic system and computer program
[0001] The present invention relates to an electronic data processing device and a data processing method implemented by such an electronic processing device.
[0002] The invention also relates to an electronic system comprising a sensor, such as an image sensor, a sound sensor or even an object detection sensor, such as a radar or lidar, and such an electronic processing device, each data to be processed is an element present in a scene captured by the sensor, such as an object detected in an image.
[0003] The invention also relates to a computer program comprising software instructions which, when executed by a computer, implement such a processing method.
[0004] The invention then relates to the field of machine learning, in particular that of deep learning, in particular continuous learning based on neural networks.
[0005] By neural network is meant an artificial neural network (from the English arti-ficial neural networld) known per se.
[0006] The invention relates to multiple applications, including automatic data processing, diagnostic assistance, predictive analysis, autonomous vehicles, bioinformatics or surveillance. These applications typically involve the classification or identification of objects or signals previously detected by a sensor, for example making it possible to recognize or classify the identities of people whose faces have been detected by a face detector, or to recognize or classify surrounding objects detected by a sensor on board an autonomous vehicle, the recognition or classification of such objects being important for the autonomous driving of such a vehicle.
[0007] The invention also relates to applications in the field of acoustic monitoring via at least one acoustic sensor, or seismic monitoring via a ground vibration sensor, or even assistance in controlling industrial equipment(s), such as a heat pump, via at least one dedicated sensor.
[0008] For the multiple applications mentioned above, it is known to use machine learning algorithms that are part of programs that can be executed on processors, such as CPUs (Central Processing Units) or GPUs (Graphics Processing Units).
[0009] Among the techniques for implementing learning, the use of neural networks, i.e. artificial neural networks, or ANN (from the English Artificial Neural Network) known per se, is becoming increasingly widespread, these structures being considered very promising due to their performance for numerous tasks such as automatic data classification, pattern recognition, automatic translation and understanding of languages, robotic control, automatic navigation, recommendation systems, anomaly detection, fraud detection, the study of DNA or even the discovery of new molecules.
[0010] A neural network is generally composed of a succession of layers of neurons, each of which takes its inputs from the outputs of the previous layer. More precisely, each layer comprises neurons taking their inputs from the outputs of the neurons in the previous layer. Those skilled in the art will observe that for certain neural networks, certain layers take their inputs from the outputs of previous layers that are not immediately adjacent. Each layer is connected by a plurality of synapses. A synaptic weight is associated with each synapse. This is a number, such as a real or binary number, or a distribution, which takes both positive and negative values. In the case of a dense layer, the input of a neuron is the weighted sum of the outputs of the neurons in the previous layer, the weighting being done by the synaptic weights and followed by activation via an activation function.As known per se, the operation of the neural network is a little different in the case of convolutional, recurrent, attention layers, etc.
[0011] The article “Towards Reducing Labeling Cost in Deep Object Detection” by I. Elezi et al published in 2021 recalls that deep neural networks have achieved a certain accuracy in object detection, but that their effectiveness relies on large amounts of labeled data.
[0012] This article then proposes a data processing method implementing active learning to reduce dependence on labels, while being capable of pseudo-labeling very reliable predictions.
[0013] However, a processing method is sometimes biased towards the best performing classes and the most reliable predictions, which harms the accuracy of the processing.
[0014] The aim of the invention is then to propose an electronic data processing device, and an associated processing method, making it possible to better adapt to new data to be processed.
[0015] To this end, the invention relates to an electronic device for processing data(s), the device being intended to be connected to a sensor, and comprising:
[0016] - an acquisition module capable of being connected to the sensor, and configured to acquire a piece of data;
[0017] - an estimation module configured to estimate a task associated with the data, via the inference of a prediction model;
[0018] - a set of artificial intelligence model(s), said set comprising the prediction model; and
[0019] - a determination module configured to determine a resulting task for the given;
[0020] the determination module being configured to calculate a quantity representative of the estimate; then to select, as a function of the calculated quantity, a determination mode from among an assisted determination mode and several supervised determination modes; and to determine, according to the selected determination mode, the resulting task;
[0021] in assisted determination mode, the determination module being configured to send a user a request to provide a task for the data, and the determined task then being the task provided by the user; and
[0022] each supervised determination mode being devoid of sending a request to the user, and
[0023] the device further comprising a learning module configured to modify synaptic weights of the prediction model using a backpropagation algorithm for calculating the gradient of each synaptic weight according to a cost function, the cost function depending on the calculated quantity.
[0024] The electronic processing device according to the invention then makes it possible to determine the resulting task more reliably, such as the identification of a class associated with the data, in particular in order to remedy a bias when the artificial intelligence model predicts one class more than another, and / or a problem of reliability of the identifiers in the case of an imperfect model, and / or a problem of catastrophic forgetting if the model does not have all the previously classified data.
[0025] Furthermore, prior art active learning requires that the model be randomly reset to an initial state whenever new labeled data is received, and also that all previously classified data are always available. Furthermore, with prior art active learning, data are classified in batches based on uncertainty or diversity, and the model is reset / updated periodically, which is inconvenient because it then involves retraining locally or receiving parameters from a server.
[0026] With the processing device according to the invention, learning is done regularly. lately while the device is in use. The processing device according to the invention then allows local learning, as close as possible to the sensor, and making it possible to take into account the evolution of the data from the sensor.
[0027] According to other advantageous aspects of the invention, the electronic processing device comprises one or more of the following characteristics, taken individually or in all technically possible combinations:
[0028] - the determination module is configured to select the determination mode mination via a comparison of the calculated quantity with at least one threshold;
[0029] the assisted determination mode preferably being selected via the comparison of said quantity with a first threshold;
[0030] - the supervised modes of determination include a semi-supervised mode of determination mination and a self-supervised mode of determination;
[0031] in semi-supervised determination mode, the determination module preferably being configured to determine the resulting task from the predicted task;
[0032] in self-supervised determination mode, the determination module preferably being configured to determine an additional task, by applying a pretext transformation to the acquired data, the additional task then being obtained via the inference of a pretext model on the transformed data, the pretext model being an artificial intelligence model included in the set of artificial intelligence model(s);
[0033] - the determination module is configured to select the semi-supervised mode determination via the comparison of the calculated quantity with a second threshold, the second threshold being distinct from the first threshold;
[0034] - the learning module is configured to modify the following synaptic weights a first cost function if the selected determination mode is the assisted determination mode or the semi-supervised determination mode; and respectively according to a second cost function distinct from the first cost function if the selected determination mode is the self-supervised determination mode;
[0035] - the quantity is a quantity representative of a defect in the estimate;
[0036] the quantity preferably being a prediction uncertainty calculated via the prediction model;
[0037] the set of artificial intelligence model(s) preferably further comprising an anomaly detection model;
[0038] the quantity preferably still being an anomaly coefficient calculated via the anomaly detection model;
[0039] the quantity preferably still being a combination of the prediction uncertainty calculated via the prediction model and the anomaly coefficient calculated via the model anomaly detection;
[0040] - the determination module is configured to select the assisted determination mode mination if the calculated quantity is greater than the first threshold; to select the semi-supervised mode of determination if said quantity is less than the second threshold, the second threshold being distinct from the first threshold; and to select the self-supervised mode of determination if said quantity is between the second threshold and the first threshold;
[0041] - the device further comprises a buffer memory, and the learning module is connected to the buffer memory, and further configured to store, according to a storage rule and in the buffer memory, the data and the associated determined task, from the determination module;
[0042] the storage rule preferably being chosen from the group consisting of: a rule based on a probability of each type of task; a rule based on type(s) of task(s) already stored in buffer memory; a rule based on a relevance of each type of task; a rule based on a priority of each type of task; a rule based on a relevance of each data item; and a random rule.
[0043] the buffer memory preferably comprising a first zone for storing task(s) determined according to the assisted determination mode and associated data, and a second zone for storing task(s) determined according to the semi-supervised determination mode and associated data, the second zone being distinct from the first; and
[0044] when storing new data and associated task(s) in the buffer memory, the learning module preferably being further configured to erase, according to an update rule, one or more previously stored data and tasks;
[0045] - the acquisition module is connected to the buffer memory, and is further configured to acquire data from a chosen source, according to a choice rule, among the sensor and the buffer memory;
[0046] the choice rule preferably being a random rule;
[0047] the source preferably being chosen from the sensor and each of the distinct zones separately, when the buffer memory comprises several distinct zones;
[0048] - at least one module among the learning module and the acquisition module is further configured to generate additional data and task(s) by applying a transformation operation to data and task(s) stored or to be stored in the buffer;
[0049] the transformation operation preferably being chosen from the group consisting of: a blurring operation, a color change operation, an operation cropping operation, and a rescaling operation, a time windowing operation, a noise addition operation, a dilation operation, and a contraction operation.
[0050] - the learning module is further configured to compress the data and the task from the determination module, then to store the compressed data and task in the buffer memory; and the acquisition module is then configured to decompress said compressed data and task, before transmission to the estimation module;
[0051] - the learning module further comprises an incremental learning unit configured to create a set of pseudo-example(s), then to implement continuous learning of the estimation module by re-injecting the set of pseudo-example(s) as input to said estimation module;
[0052] - the device further comprises a memory for storing parameters of the model prediction if the selected determination mode is the assisted determination mode, for subsequent modification of the parameters of said prediction model after receipt of the task provided by the user;
[0053] the stored parameters preferably being the synaptic weights and activation functions of said prediction model;
[0054] - processing is a classification of the data, and the task is a class assigned to the data; and
[0055] - the device is produced in the form of an electronic chip.
[0056] The invention also relates to an electronic system comprising a sensor, such as an image sensor(s), a sound sensor or an object detection sensor, and an electronic data processing device(s) connected to the sensor, the electronic processing device being as defined above, and at least one data item to be processed is an element present in a scene captured by the sensor, such as an object detected in an image.
[0057] The invention also relates to a method for processing data, the method being implemented by an electronic processing device intended to be connected to a sensor and comprising a set of artificial intelligence model(s), the method comprising the following steps:
[0058] - acquisition of data corresponding to a signal from the sensor;
[0059] - estimation of a task associated with the data, via the inference of a model of prediction included in the set of artificial intelligence model(s); and
[0060] - determination of a resulting task for the data;
[0061] the determination step further comprising the calculation of a quantity representative of the estimate; then the selection, as a function of the calculated quantity, of a determination mode from among an assisted determination mode and several supervised modes of determination; and the determination, according to the selected determination mode, of the resulting task;
[0062] the assisted determination mode comprising sending to a user a request to provide a task for the data, and the determined task then being the task provided by the user; and
[0063] each supervised determination mode being devoid of sending a request to the user, and
[0064] the method further comprising a learning step comprising a modification of the synaptic weights of the prediction model using a backpropagation algorithm for calculating the gradient of each synaptic weight according to a cost function, the cost function depending on the calculated quantity.
[0065] The invention also relates to a computer program comprising software instructions which, when executed by a computer, implement a processing method, as defined above.
[0066] These characteristics and advantages of the invention will appear more clearly on reading the description which follows, given solely by way of non-limiting example, and made with reference to the appended drawings, in which:
[0067] [Fig-1] [Fig.l] is a schematic representation of an electronic system according to the invention, comprising a sensor and an electronic data processing device connected to the sensor, the processing device comprising a module for acquiring at least one piece of data; a module for estimating a task associated with the data via the inference of a respective artificial intelligence model; a module for determining a resulting task for the data; and a module for learning the respective artificial intelligence model;
[0068] [Fig.2] [Fig.2] is a schematic block diagram of the electronic system of the [Fig.l], according to a first embodiment of the invention;
[0069] [Fig.3] [Fig.3] is a flowchart of a data processing method according to the invention, the method being implemented by the electronic processing device of [Fig.l]; and
[0070] [Fig.4] [Fig.4] is a view illustrating results obtained with the electronic system tronics of [Fig.l];
[0071] [Fig.5] [Fig.5] is a view similar to that of [Fig.2], according to a second mode of carrying out the invention; and
[0072] [Fig.6] [Fig.6] is a view similar to that of [Fig.2], according to a third mode of carrying out the invention.
[0073] In the present description, the terms “learning” (from the English “learning”) and “training” (from the English “training”) are considered equivalent, that is to say that they have the same meaning, and are then used interchangeably. changeable.
[0074] In [Fig.l], an electronic system 10 comprises a sensor 15 and an electronic processing device 20 connected to the sensor 15, the processing device 20 being configured to process at least one piece of data from the sensor 15, the data to be processed then being an element present in a scene captured by the sensor 15.
[0075] The electronic system 10 is for example an electronic system for detecting object(s), the sensor 15 then being an object(s) detector and the processing device 20 being configured to process at least one piece of data relating to the object detected by the object(s) detector.
[0076] The electronic system 10 forms, for example, a face detector capable of recognizing the faces of previously identified persons and / or of detecting the faces of unknown persons, i.e. faces of persons who have not been previously identified. The processing device 20 then makes it possible to learn the identities of the detected persons, and also to identify unknown persons.
[0077] The electronic system 10 is also capable of recognizing objects in the environment of a motor vehicle, when it is on board such a vehicle, in particular an autonomous vehicle. The processing device 20 then makes it possible to process such objects, and in particular to classify them by type, in order to facilitate the piloting of the autonomous vehicle. The electronic system 10 is for example a pedestrian detection system, on board a motor vehicle, and likely to travel in a country or on a type of road different from that of a device for training an artificial intelligence algorithm implemented by the processing device 20.
[0078] Alternatively, the electronic system 10 is an electronic image segmentation system, the sensor 15 then being an image sensor and the processing device 20 being configured to perform a segmentation of each image from the image sensor.
[0079] As a further variant, the electronic system 10 is an electronic acoustic or seismic monitoring system, and the sensor 15 is typically an acoustic sensor or a vibration sensor. The electronic monitoring system is in particular intended to be installed in geographical locations where the communication bandwidth is severely limited, for example for monitoring an offshore wind farm, space monitoring, monitoring of remote areas (forests, underwater areas, volcanoes, rivers, etc.).
[0080] As a further variant, the electronic system 10 is an electronic system for assisting in the control of industrial equipment(s), such as a heat pump, via at least one dedicated sensor. The control assistance system then allows in particular local control of the industrial equipment, such as the heat pump, to better adapt to a local environment, for example the lifestyle of a family living in a residence equipped with a heat pump.
[0081] Those skilled in the art will understand more generally that the electronic system 10 according to the invention is an electronic system comprising any type of sensor 15 and the electronic processing device 20 connected to said sensor 15, in which the processing device 20 is configured to determine a resulting task Y* for the at least one data item from the sensor 15.
[0082] The electronic system 10 according to the invention is preferably an on-board electronic system, such as an electronic system on board a vehicle or an electronic system equipping a user, for which it is more complex to carry out continuous learning of the artificial intelligence algorithm implemented by the processing device 20.
[0083] The processing carried out by the processing device 20 is for example a classification of the data, and the task is then a class attributed to the data.
[0084] Alternatively, the processing performed by the processing device 20 is a detection, and the task is then a bounding box assigned to the data when the data is an image, or more generally a detected range of values when the data is a signal. In the case of a bounding box, each determined window is associated with coordinates, a size and a class distribution defining what is inside the window.
[0085] Alternatively or additionally, the processing performed by the processing device 20 is segmentation, and the task is to assign a semantic class to each cell of a matrix, i.e. to a pixel in an image or a sample in an analog signal. Those skilled in the art will understand that segmentation is similar to detection, except that the associated task is a pixel or a value, rather than a window or a range of values.
[0086] As a further variant, the processing carried out by the processing device 20 is a prediction, reconstruction, or generation task. Those skilled in the art will thus understand that, more generally, any standard automatic learning task, also called machine learning, can be adapted to operate with the invention.
[0087] The sensor 15 is known per se. The sensor 15 is for example an image sensor configured to take one or more images of a scene, and transmit them to the processing device 20.
[0088] Alternatively, the sensor 15 is a sound sensor, an object detection sensor, such as a lidar sensor, a radar sensor, an infrared sensor, a capacitive proximity sensor, an inductive proximity sensor, a Hall effect proximity sensor or a presence sensor, configured to acquire a characteristic signal in depending on the presence or absence of object(s), then to transmit it to the processing device 20.
[0089] As a further variant, the sensor 15 is an acoustic sensor or a vibration sensor, such as a ground vibration sensor.
[0090] As a further variant, the sensor 15 is a temperature sensor or a presence sensor when the electronic system 10 is a system for assisting in controlling a heat pump.
[0091] The processing device 20 comprises a module 22 for acquiring at least one piece of data, a module 24 for estimating a task associated with the data via the inference of a respective model from a set 26 of artificial intelligence model(s), visible in [Fig.2]; a module 28 for determining the resulting task Y* for the data; and a module 30 for learning the respective artificial intelligence model.
[0092] In the examples of figures 1 and 2, the processing device 20 further comprises a buffer memory 32, and the learning module 30 is connected to the buffer memory 32, to store there, according to a storage rule, the data and the associated determined task, coming from the determination module 28.
[0093] As an optional addition, the processing device 20 further comprises a memory 34 for storing parameters of the respective artificial intelligence model, for subsequent modification of the synaptic weights of said artificial intelligence model after receiving a task provided by the user.
[0094] The electronic processing device 20 is for example in the form of a calculator or an electronic chip.
[0095] In the example of [Fig. 1], the electronic processing device 20 comprises an information processing unit 40 formed for example of a memory 42 and a processor 44 associated with the memory 42.
[0096] In the example of [Fig.l], the acquisition module 22, the estimation module 24, the determination module 28 and the learning module 30 are each implemented in the form of software, or a software brick, executable by the processor 44. The memory 42 of the electronic processing device 20 is then capable of storing software for acquiring the data to be processed, software for estimating a task associated with the data via the inference of the respective model of a set 26 of artificial intelligence model(s), software for determining the resulting task Y* for the data and software for learning the respective artificial intelligence model. The processor 44 is then capable of executing each of the software among the acquisition software, the estimation software, the determination software and the learning software.
[0097] As a variant, not shown, the acquisition module 22, the estimation module 24, the determination module 28 and the learning module 30 are each produced in the form of a programmable logic component, such as an FPGA (Field Programmable Gate Array) or in the form of a dedicated integrated circuit, such as an ASIC (Application Specific Integrated Circuit).
[0098] When the electronic processing device 20 is produced in the form of one or more software programs, that is to say in the form of a computer program, it is also capable of being recorded on a medium, not shown, that is readable by a computer. The computer-readable medium is, for example, a medium capable of storing electronic instructions and of being coupled to a bus of a computer system. By way of example, the readable medium is an optical disk, a magneto-optical disk, a ROM memory, a RAM memory, any type of non-volatile memory (for example EPROM, EEPROM, FLASH, NVRAM), a magnetic card or an optical card. A computer program comprising software instructions is then stored on the readable medium.
[0099] The acquisition module 22 is configured to acquire the or each data item.
[0100] The acquisition module 22 is notably configured to acquire the or each data item from the sensor 15, corresponding to an object previously captured by said sensor 15. In other words, each data item acquired then corresponds to a signal captured by the sensor 15.
[0101] As an optional addition, the acquisition module 22 is connected to the buffer memory 32, and is further configured to acquire the data from a source chosen, according to a selection rule, from among the sensor 15 and the buffer memory 32. When, as an optional addition, the buffer memory 32 comprises several distinct zones 50, 52, 54, the source is preferably chosen from among the sensor 15 and separately each of the distinct zones 50, 52, 54.
[0102] The choice rule is for example a random rule. The acquisition module 22 is for example configured to generate, at each acquisition, a random or pseudo-random number, then compare the number thus generated to a threshold P of configurable value, and acquire the data from the sensor 15 if the random or pseudo-random number generated is greater than the threshold P, and from the buffer memory 32 otherwise, that is to say if said generated number is less than or equal to the threshold P.
[0103] The random or pseudo-random number is preferably generated uniformly and between 0 and 1, and the threshold P then represents the probability that the data is acquired from the buffer memory 32.
[0104] When, as an optional addition, the buffer memory 32 comprises several distinct zones 50, 52, 54, a single respective Pi is associated in a distinct manner with each respective zone 50, 52, 54, where i is an integer index between 1 and M, M representing the number of distinct zones 50, 52, 54. The acquisition module 22 is then configured to choose the source from the sensor 15 and each of the zones distinct 50, 52, 54 from which to acquire the data, by comparing the number generated with said thresholds Pi.
[0105] In the example of [Fig.6], the buffer memory 32 comprises a first zone 50, a second zone 52 and a third zone 54, with a first threshold P1 associated with the first zone 50, a second threshold P2 associated with the second zone 52 and a third threshold P3 associated with the third zone 54, the third threshold P3 being greater than the second threshold P2 itself greater than the first threshold P1. According to this example, the acquisition module 22 is then configured to acquire the data from the first zone 50 if the generated number is less than or equal to the first threshold P1; from the second zone 52 if said generated number is greater than the first threshold P1 and less than or equal to the second threshold P1; from the third zone 54 if said generated number is greater than the second threshold P1 and less than or equal to the third threshold P1; and from the sensor 15 if said generated number is greater than the third threshold P1.Those skilled in the art will understand that the third threshold P3 then corresponds to the threshold P defined above.
[0106] The estimation module 24 is configured to estimate a task Y associated with the data, via the inference of a prediction model 60, the prediction model 60 being an artificial intelligence model included in the set 26 of artificial intelligence model(s).
[0107] The estimation module 24 is then configured to implement the prediction model 60, and apply it to the data acquired by the acquisition module 22, and provide as output the estimated task Y, also called prediction Y or prediction vector Y, produced by the prediction model 60. The task Y is for example in the form of a vector of class probabilities or a list of delimitation windows in the case of a classification or detection processing applied to an image.
[0108] The set 26 of artificial intelligence model(s) comprises the prediction model 60. The prediction model 60 typically includes at least one neural network, i.e., an artificial neural network, also called neural networks. The prediction model 60 is, for example, a deterministic neural network, a Bayesian neural network, or a set of neural networks, each generally of the deterministic or Bayesian type. When the prediction model 60 is a set of neural networks, each neural network has a respective input receiving a respective data item from among the data acquired by the acquisition module 22. In the example of [Fig.2], the prediction model 60 comprises a core 62 (from the English backbone), often called a feature extractor, and a prediction unit 64 (from the English prediction head) capable of providing, for example, a predicted class distribution concerning the data. The or the . Artificial intelligence models can also be developed using classical machine learning methods, beyond neural networks.
[0109] As an optional addition, the set 26 of artificial intelligence model(s) comprises a pretext model 66 included in a pretext unit 68 (from the English pretext head). The pretext unit 68 is adapted to determine an additional task, by applying a pretext transformation to the acquired data, the additional task then being obtained via the inference of the pretext model 66 on the transformed data. The pretext model 66 is an artificial intelligence model included in the set 26 of artificial intelligence model(s). The pretext model 66 comprises for example several feedback layers (from the English feed-forward) with a final output layer with several neurons.
[0110] The determination module 28 is configured to determine the resulting task Y* for the data, by calculating a quantity representative of the estimate, then by selecting - depending on the calculated quantity - a determination mode from among an assisted ACL determination mode and several supervised SSL, AUL determination modes, and then determining the resulting task Y* according to the selected determination mode.
[0111] In assisted ACL determination mode (from the English Active Label, or Active Labelling), the determination module 28 is further configured to send a user a request to provide a task for the data, and the task determined is then the task provided by the user.
[0112] Each supervised SSL, AUL determination mode does not require sending a request to the user. The supervised determination modes include, for example, a semi-supervised SSL determination mode and a self-supervised AUL determination mode.
[0113] In semi-supervised SSL determination mode (Semi-Supervised Label, or Semi-Supervised Labelling), the determination module 28 is configured to determine the resulting task Y* from the predicted task.
[0114] In self-supervised AUL determination mode (from the English Self-Supervised Label, or Self-Supervised Labelling), the determination module 28 is configured to determine the additional task, for example via the pretext unit 68 by applying the pretext transformation to the acquired data, the additional task then being obtained via the inference of the pretext model 66 on the transformed data.
[0115] The determination module 28 is typically configured to select the determination mode via a comparison of the calculated quantity with at least one threshold. This threshold is adaptable during operation, for example by using a current average of a percentile of the output uncertainties, and by taking - again by example - the 10th percentile as a threshold for the assisted mode of ACL determination and the 80th percentile as a threshold for the semi-supervised mode of SSL determination.
[0116] The assisted ACL determination mode is for example selected via the comparison of said quantity with a first threshold.
[0117] In addition, the determination module 28 is configured to select the semi-supervised SSL determination mode via the comparison of the calculated quantity with a second threshold, the second threshold being distinct from the first threshold.
[0118] The determination module 28 is for example configured to select the assisted ACL determination mode if the calculated quantity is greater than or equal to the first threshold; to select the semi-supervised SSL determination mode if said quantity is less than or equal to the second threshold, the second threshold being distinct from the first threshold; and to select the self-supervised AUL determination mode if said quantity is strictly between the second threshold and the first threshold.
[0119] The magnitude is a magnitude representative of a defect in the estimate.
[0120] In the example of [Fig.2], the quantity is a prediction uncertainty E calculated via the prediction model 60, typically by the prediction unit 64. The first threshold associated with the prediction uncertainty E is then noted Ea, and in addition the second threshold associated with the prediction uncertainty E is noted Ess.
[0121] When the prediction model 60 is a deterministic neural network, the prediction uncertainty E is for example an entropy, such as the entropy of the distribution of the task, i.e. the entropy of the distribution of the class when the processing is a classification. The class distribution is also called categorical distribution.
[0122] The prediction uncertainty E then verifies, for example, the following equation:
[0123] [Math.l] E = Ly^yP(y^log^p^) )
[0124] where E represents the prediction uncertainty,
[0125] Y represents the prediction vector, comprising unit predictions yi5
[0126] p(yO represents the probability of each unitary prediction yi5 and
[0127] log represents the logarithm function.
[0128] Alternatively, the prediction uncertainty E is equal to a difference between the two most probable tasks.
[0129] When the prediction model 60 is a Bayesian neural network, the prediction uncertainty E is for example the variance of the argument of the maximum of the prediction vector Y, and then typically verifies the following equation:
[0130] [Math.2] E = V [ Argmax^Ÿ) ]
[0131] where E represents the prediction uncertainty,
[0132] Y represents the prediction vector,
[0133] V represents the variance, and
[0134] Argmax represents the maximum argument function, also noted Arg max.
[0135] When the prediction model 60 is a Bayesian neural network, the prediction uncertainty E is alternatively the standard deviation of this distribution, rather than the variance of this distribution, and then satisfies the following equation:
[0136] [Math.3] E - <7 [Argmax^Y)]
[0137] where E represents the prediction uncertainty,
[0138] Y represents the prediction vector,
[0139] o represents the standard deviation, i.e. the square root of the variance V, and
[0140] Argmax represents the maximum argument function, also noted Arg max.
[0141] When the prediction model 60 is a Bayesian neural network, the prediction uncertainty E is alternatively still an entropy, for example using the average output vector and taking the entropy of this vector.
[0142] When the prediction model 60 is a set of neural networks, the prediction uncertainty E is for example the average standard deviation over all the tasks, and not only over the argument of the maximum of the tasks.
[0143] When the prediction model 60 is a Bayesian neural network, it makes it possible to obtain a more reliable value of the prediction uncertainty E by using, for example, the predictive entropy over a certain number of Monte Carlo integrations and by taking the prediction vector Y as the average over the Monte Carlo integrations.
[0144] Alternatively, when the processing carried out is a detection, and the task is then for example a delimitation window, the determination module 28 is for example configured to calculate an elementary uncertainty for each delimitation window from the class distribution associated with each window, then to calculate an overall uncertainty for the image using a metric, such as an average, a sum or even a maximum, applied to the plurality of elementary uncertainties.
[0145] As a further variant, when the processing carried out is a segmentation, and the task is then for example a detected pixel, the determination module 28 is similarly configured to calculate an elementary uncertainty for each pixel, then to calculate an overall uncertainty for the image using the metric applied to the plurality of elementary uncertainties calculated for the plurality of detected pixels.
[0146] The learning module 30 is configured to modify synaptic weights of the prediction model 60 using a backpropagation algorithm for the calculation. of the gradient of each synaptic weight following a cost function, the cost function depending on the calculated quantity. The cost function is also called loss.
[0147] The learning module 30 is configured to modify the synaptic weights according to a first cost function if the selected determination mode is the assisted ACL determination mode or the semi-supervised SSL determination mode; and respectively according to a second cost function distinct from the first cost function if the selected determination mode is the self-supervised AUL determination mode.
[0148] When the learning module 30 is further configured to modify the synaptic weights of the prediction model 60 with a cost function depending on the selected determination mode, the selected determination mode then also forms a learning process, in particular a continuous learning process of the prediction model 60. The assisted ACL determination mode is then also called assisted learning, or active learning. Similarly, the semi-supervised SSL determination mode is also called semi-supervised learning, and the self-supervised AUL determination mode is also called self-supervised learning.
[0149] The learning module 30 is connected to the buffer memory 32, and further configured to store, according to a storage rule and in the buffer memory 32, the data and the associated determined task, coming from the determination module 28.
[0150] The storage rule is preferably chosen from the group consisting of: a rule based on a probability of each type of task; a rule based on type(s) of task(s) already stored in buffer memory 32; a rule based on a relevance of each type of task; a rule based on a priority of each type of task; a rule based on a relevance of each data item; and a random rule.
[0151] As an optional addition, the buffer memory 32 comprises several zones 50, 52, 54, in particular the first zone 50 and the second zone 52 described previously. According to this optional addition, the first zone 50 is for example provided for the storage of task(s) determined according to the assisted mode of ACL determination and associated data, and the second zone 52 is provided for the storage of task(s) determined according to the semi-supervised mode of SSL determination and associated data, the second zone 52 being distinct from the first zone 50.
[0152] When storing new data and associated task(s) in the buffer memory 32, the learning module 30 is optionally further configured to erase, according to an update rule, one or more data and tasks previously stored.
[0153] As an optional addition, at least one module among the learning module 30 and the acquisition module 22 is further configured to generate additional data and task by applying a transformation operation to data and task stored or to be stored in the buffer memory 32. The transformation operation is also called an augmentation operation, the latter aiming to increase, that is to say to enrich, the data and the tasks before their storage in the buffer memory 32, or alternatively when reading the buffer memory 32. This makes it possible to generate more data in the buffer memory 32 from a single example from the determination module 28.When varying the data is increased when reading from the buffer 32, this allows a greater number of different samples to be stored in the buffer 32, while then requiring the data increase to be performed each time the data is read from the buffer 32.
[0154] The transformation operation is for example chosen from the group consisting of: a blurring operation, a color change operation, a cropping operation, and a rescaling operation, a time windowing operation, a noise addition operation, a dilation operation, and a contraction operation.
[0155] The transformation operation is performed either before writing to the buffer memory 32 by the learning module 30, or at the time when the data is acquired by the acquisition module 22. Advantageously, the transformation operation is performed by the acquisition module 22, and this then makes it possible to store more data in the buffer memory 32 for the same quantity of available memory.
[0156] As an optional addition, the learning module 30 is further configured to compress the data and the task from the determination module 28, then to store the compressed data and task in the buffer memory 32. The acquisition module 22 is then configured to decompress said compressed data and task, before transmission to the estimation module 24.
[0157] The compression of the data, then their decompression, is typically carried out via an encoder-decoder (auto-encoder) architecture where the encoder compresses the data into vectors which are stored in the buffer memory 32. The decoder then creates the input data which must resemble, apart from noise, the data which was selected to be stored in the buffer memory 32. This automatic encoder is typically either pre-trained or trained at the same time as the prediction model 60, while observing that the cost function is simple to calculate from the data before and after passing through the automatic encoder.
[0158] As an optional addition, the storage memory 34 is preferably configured to store the parameters of the prediction model 60 if the selected determination mode is the assisted ACL determination mode, the parameters then being used to subsequently modify the parameters of said model, in particular after receiving the task provided by the user. According to this addition, the stored parameters are typically synaptic weights and activation functions of said prediction model 60.
[0159] Those skilled in the art will then understand that according to this optional addition, the execution of the processing device 20 is not interrupted until the task is received, i.e. provided by the user, but that the intermediate states of the prediction model 60 necessary for the backpropagation, in particular the activation of the neurons, are stored in the separate storage memory 34, and are then used to perform the backpropagation calculation when the task is received, and that the cost function, or loss, is then calculable. Those skilled in the art will also observe that the only case where a request for the provision of a task, such as a label, is sent to the user is that of the assisted mode of ACL determination.
[0160] The operation of the electronic processing device 20 according to the invention will now be described with reference to [Fig. 3] representing a flowchart of the processing method according to the invention, the latter being implemented by the processing device 20.
[0161] During an initial step 100, the processing device 20 acquires, via its acquisition module 22, data corresponding to a respective signal from the sensor 15.
[0162] As an optional addition, when the acquisition module 22 is connected to the sensor 15 and furthermore to the buffer memory 32, during the acquisition step 100, the acquisition of the data is then typically carried out from the sensor 15 or alternatively from the buffer memory 32 according to the choice rule, this choice rule preferably being random.
[0163] When, as an optional addition, the buffer memory 32 comprises several distinct zones 50, 52, 54, the acquisition module 22 acquires the data, during the acquisition step 100, by then choosing according to the choice rule from the sensor 15 and each of the distinct zones 50, 52, 54, considered separately. In other words, when the buffer memory 32 comprises, for example, three distinct zones, namely the first 50, second 52 and third 54 distinct zones, the acquisition of the data carried out during the step 100 is from among four possible distinct sources, counting the sensor 15 in addition to the three distinct zones 50, 52, 54.
[0164] At the end of the acquisition step 100, the processing device 20 moves on to the next estimation step 110, during which it estimates, via its estimation module 24, the task Y associated with the data acquired by inferring the prediction model 60. In other words, the estimation module 24 then provides at its output the prediction vector Y corresponding to the task, in particular at the output of the prediction model 60, namely here at the output of the prediction unit 64.
[0165] During the following determination step 120, the processing device 20 determines, via its determination module 28, by calculating the quantity representative of the estimate, then by selecting - as a function of the calculated quantity - a respective determination mode from among the assisted determination mode ACL and the supervised determination modes SSL, AUL, the resulting task Y* then being determined according to the selected determination mode.
[0166] The determination module 28 selects, for example, the assisted ACL determination mode if the calculated quantity is greater than or equal to the first threshold; the semi-supervised SSL determination mode if said quantity is less than or equal to the second threshold; and the self-supervised AUL determination mode if said quantity is strictly between the second threshold and the first threshold.
[0167] In the example of [Fig.2], described previously, the calculated quantity is the prediction uncertainty E, and the determination module 28 then selects the assisted determination mode ACL if the uncertainty E is greater than or equal to the first threshold Ea; the semi-supervised determination mode SSL if said uncertainty E is less than or equal to the second threshold Ess; and the self-supervised determination mode AUL if said uncertainty E is strictly between the second threshold E ss and the first threshold Ea.
[0168] The processing device 20 then performs, via its learning module 30 and during the following learning step 130, the learning of the prediction model 60 by modifying the synaptic weights of the prediction model 60 via the backpropagation algorithm for calculating the gradient of each synaptic weight according to the corresponding cost function.
[0169] Advantageously, the learning carried out of the prediction model 60 depends on the determination mode selected from among the assisted ACL determination mode and the supervised SSL, AUL determination modes during the previous determination step 120. Preferably, the synaptic weights are modified according to the first cost function if the assisted ACL determination mode or the semi-supervised SSL determination mode has been selected previously; or according to the second cost function if the self-supervised AUL determination mode has been selected during the previous determination step 120.
[0170] At the end of the learning step 130, the processing device 20 returns to the initial acquisition step 100 in order to acquire new data, and the processing method is then repeated with the new acquired data.
[0171] Through this learning, the prediction model 60 is then self-adaptive, in the sense that its parameters, in particular its synaptic weights and its activation functions, are modified and adapted as new data is processed.
[0172] This learning is furthermore local, and in particular does not require the electronic processing device 20 to be connected to a remote electronic server. Indeed, the learning is carried out from the data processed as and when, or even in addition from the data stored in the buffer memory 32. This data stored in the buffer memory 32 is involved in the learning of the prediction model 60 when the acquisition model 22 acquires the data from said buffer memory 32, and this data from the buffer memory 32 is then inferred by the prediction model 60, then the output of this inference is used for new learning.
[0173] Thus, once the processing device 20 has produced, via the prediction model 60, an output Y concerning the data coming from the sensor 15 continuously, the processing device 20 decides, via its determination 28 and learning 30 modules, what to do with the data, in particular whether or not to store them in the buffer memory 32, and how to calculate the loss to be used to update the current parameters of the prediction model 60. The processing device 20 uses for this the uncertainty E, provided by the prediction unit 64. If the prediction model 60, in particular the prediction unit 64, is very uncertain about its prediction, more precisely if the uncertainty E is greater than or equal to the first threshold Ea, then active learning processing will be carried out.In this case, the processing device 20 requests a task, such as a label, for example from the user of the electronic system 10, and uses this label to calculate the loss. Those skilled in the art will understand that this active, or assisted, mode is expensive, because it requires human intervention, and must therefore be reduced to a minimum. Conversely, if the uncertainty E is low, or more precisely less than or equal to the second threshold Ess, the processing device 20 then implements semi-supervised learning.
[0174] In both cases, a respective loss is calculated using the given task Y* and this loss is backpropagated through the prediction model 60, in order to calculate the gradient for each parameter of the prediction model 60. Preferably, the gradients are not applied immediately, but accumulated and applied only after a certain number of input data have been processed, i.e. the gradients are applied per batch of data.
[0175] The above describes how the processing device 20 continuously processes the data when the uncertainty E is greater than or less than the respective upper (first threshold Ea) and lower (second threshold Ess) thresholds. In a third case, if the uncertainty E lies between these two limits, namely between the second threshold Ess and the first threshold Ea, the processing device 20, in particular the prediction model 60, can still learn something from the data using a self-supervised technique, or domain adaptation, with the pretext unit 68. This means that the processed data are never useless, or in other words that something can be learned from each observation.
[0176] In fact, since active learning is a costly action and excessive semi-supervised learning could introduce too much noise into the tasks, those skilled in the art will understand that ideally, the learning is mostly performed using the pretext unit 68 with the given domain adaptation or self-supervised algorithm.
[0177] As an example of a self-supervised algorithm, when the uncertainty E concerning an image from the sensor 15 is between the second threshold Ess and the first threshold Ea, a rotated version (at a random angle) of the image is created via the kernel 62 and the pretext unit 68. The pretext model 66 of the pretext unit 68 then predicts the rotation of the image. Since the rotation angle is known, a loss is easily calculable and usable for calculating the learning gradient in the backpropagation. Even simple rotation-based self-supervised learning, such as that described previously, makes it possible to learn useful representations and helps to significantly reduce the amount of processed data required to achieve good processing performance.
[0178] In any case, a respective resulting task is determined based on the prediction vector Y and the uncertainty E. As an optional addition, if the uncertainty E is high, a corresponding conservative action is further performed by the electronic system 10, such as a braking action of a vehicle when the electronic system 10 is on board said vehicle.
[0179] Those skilled in the art will observe that the first and second thresholds are for example predefined, or alternatively evolving during the processing of the data, for example on the basis of percentiles of the quantity, such as the uncertainty E, typically using a history of quantities calculated previously and stored in the buffer memory 32.
[0180] Furthermore, storing data and associated tasks in the buffer 32 allows them to be used for calculating future losses, which then makes it possible to mitigate the phenomenon of catastrophic forgetting.
[0181] In addition, the rule for storing the data and associated tasks in the buffer memory 32 depends on the type of determination mode selected, i.e. the tasks determined according to the assisted ACL determination mode are likely to be better and are more expensive to obtain. Also, when the selected determination mode is the assisted ACL determination mode, the data and associated tasks obtained according to this mode are stored as a priority in the buffer memory 32; or if a probabilistic approach is chosen, are stored with the highest probability, this being typically close to 1 for the assisted ACL determination mode.
[0182] Alternatively, said storage rule is a function of the tasks already present in the buffer memory 32. The tasks which are less present are, for example, given priority for the next storages in the buffer memory 32.
[0183] As a further variant, said storage rule is a function of a difference between the current data from the determination module 28 and the data already present in the buffer memory 32, for example by using a diversity reinforcement approach, such as that described in the article “Active learning for convolutional neural networks: A core-set approach” by Sener et al, published in 2017.
[0184] In addition, the storage rule is a rule for storing the associated data and tasks as a function of different successive time instants, each time instant being associated with a pair of data and task. In other words, according to this storage rule, the associated data and tasks stored in the buffer memory 32 correspond to time instants staggered in time, preferably with a time gap between two successive time instants between a minimum time period and a maximum time period. This then makes it possible to provide the prediction model 60 with data that have been learned at different times of its operation.For example, a first part of the buffer memory 32 then comprises an initial training set (i.e. the data which were used for the initial training of the prediction model 60), a second part of the buffer memory 32 comprises the data and associated tasks obtained during a first week of use of the processing device 20, a third part of the buffer memory 32 comprises the data and associated tasks obtained during a second week of use of the processing device 20, and so on.
[0185] In addition, the data and associated tasks are stored in the buffer memory 32 after having previously undergone a transformation operation, also called augmentation.
[0186] As a further variant, the storage rule in the buffer memory 32 comprises a comparison of the different data, and respectively of the different tasks, with each other, in order for example to have storage of the associated data and tasks as a function of an occurrence rate in the buffer memory 32 for each of the tasks, typically in order to have storage in the buffer memory 32 which is proportional to the occurrence of the task, in terms of quantity of data stored.
[0187] In addition to the various alternatives of the storage rule described above, the learning module 30 is also configured to delete data from the buffer memory 32, in particular in order to be able to store new data in this buffer memory 32, while keeping a quantity of data stored in the buffer memory 32 lower than a predefined maximum threshold.
[0188] For example, according to a “herd” strategy, the learning module 30 then keeps the data and associated tasks close to the average of a distribution of tasks. In addition, the distance from the average of the existing distributions in the buffer memory 32 is used as a means of deleting, or on the contrary of repeatedly storing, the examples.
[0189] [Fig.4] illustrates an implementation of the processing device 20 according to the invention on MNIST images from the MNIST database known per se. This MNIST database (from the English for Modified or Mixed National Institute of Standards and Technology) is a base of 60,000 images of handwritten digits, commonly used to carry out tests in the field of machine learning. In this implementation, the prediction model 60 in the form of a simple multi-layer perceptron was first pre-trained using a subset of 1000 MNIST images. Then, the remaining 59,000 MNIST images were provided as input to the prediction model 60 continuously. The buffer memory 32 was initially filled with the 1000 MNIST images used during the pre-training phase. Buffer 32 has a maximum size of 1000 MNIST images.Data is written and read into buffer 32 at random indexes.
[0190] In this example, in assisted ACL determination mode, the task provided by the user is the label of the handwritten digit, also called MNIST digit. The semi-supervised SSL determination mode uses the prediction made by the prediction model 60 (i.e., pseudo-labeling). The self-supervised AUL determination mode aims to predict whether the MNIST digit has been flipped horizontally (i.e., mirrored) or not. The first and second uncertainty thresholds used here are scalable to be equal to the 5th and 85th percentiles of the uncertainty calculated on all the uncertainty estimates previously made (as a running average), these first and second thresholds having been initialized on the basis of the uncertainties contained in the buffer memory 32. The gradients were applied in mini-batches of ten processed examples.When writing data to buffer 32, a data augmentation step was used, in which the pixels were still Gaussian noisy (i.e., they were summed with samples from a Gaussian distribution) and the pixels were also shifted along the abscissa and ordinate axes - the . new pixels entering the image were treated as black pixels (i.e., the pixels do not wrap). When writing to buffer 32 following the assisted ACL determination mode, ten augmented images were written to said buffer 32. When writing to buffer 32 following the semi-supervised SSL determination mode, only one augmented image was written to said memory 32.
[0191] Curve 200, visible in [Fig.4], then represents an accuracy of the prediction provided by the prediction model 60, this for the 10,000 test images of the MNIST database, and the temporal evolution of curve 200 shows that, as the prediction model 60 sees more and more examples in the data stream, the accuracy on these 10,000 MNIST test images improves, although it is subject to oscillation. In particular, the accuracy after having seen all the MNIST figures is higher than that of a state-of-the-art model trained once (i.e. they have seen the same number of examples), this accuracy of the state-of-the-art model being represented in the form of the straight line 210 in dotted lines.
[0192] The fact that the performance of the processing device 20 according to the invention, and in particular the accuracy of the prediction model 60 as it continuously learns, is slightly higher than that of the fully supervised model of the state of the art after a single training iteration (from the English epoch) is even more notable when further considering the circular graph 300 also represented in [Fig.4].
[0193] The circular graph 300 comprises three disk portions 310, 320, 330, each representing a selection rate, or usage rate, of a respective determination mode, namely a first portion 310 representing the rate of the self-supervised AUL determination mode, a second portion 320 representing the rate of the semi-supervised SSL determination mode, and a third portion 330 representing the rate of the assisted ACL determination mode. The first portion 310 then corresponds to a rate of 88%, or 0.88; the second portion 320 to a rate of 10%, or 0.1; and finally the third portion 330 to only a rate of 2%, 0.02. In other words, only 2% of the data points in the data stream were labeled via the assisted ACL determination mode, i.e., via the active mode, which corresponds to 1,200 additional labeled images compared to those used in the pre-training phase.The skilled person will also observe in this example that, in accordance with what is desired, the majority of the data points of the data stream, i.e., the majority of the images, are used to calculate the self-supervised losses according to the self-supervised mode of AUL determination.
[0194] [Fig.5] illustrates a second embodiment for which the elements similar to those of the first embodiment described previously are identified by identical references, and are not described again.
[0195] According to the second embodiment, the set 26 of artificial intelligence models 26 further comprises an anomaly detection model 400.
[0196] The anomaly detection model 400 is known per se, and is for example described in the article “Deep learning for anomaly detection: A survey” by R. Chalapathy et al published in 2019, or in the article “An overview of deep learning based methods for unsupervised and semi-supervised anomaly detection in videos” by BR Kiran et al published in 2018.
[0197] The anomaly detection model 400 is an analysis model trained to automatically detect data distinct from the data seen during training. The anomaly detection model 400 is capable of being coupled with any data representation model (chosen according to the application, constraints, data, etc.).
[0198] The anomaly detection model 400 is typically trained in a semi-supervised manner. The training set is composed of a single task, that of normal (or nominal) data. During its use, the anomaly detection model 400 is then configured to distinguish data belonging to this trained task of normal data, compared to abnormal data (the anomalies). The anomaly detection model 400 is also called a one-class classifier.
[0199] Alternatively, the anomaly detection model 400 is trained in a supervised manner with an anomaly dataset, instead of a normal dataset.
[0200] According to this second embodiment, the quantity is then typically an anomaly coefficient A calculated via the anomaly detection model 400. The first threshold associated with the anomaly coefficient A is then noted Aa, and in addition the second threshold associated with the anomaly coefficient A is noted Ass.
[0201] Alternatively, the anomaly detection model 400 is trained in an unsupervised manner, with a data set comprising abnormal data, but not previously identified among the entire data set.
[0202] Alternatively, the quantity is a combination of the prediction uncertainty E calculated via the prediction model 60 and the anomaly coefficient A calculated via the anomaly detection model 400.
[0203] According to this variant, by way of example, the magnitude is equal to the product of the prediction uncertainty E calculated via the prediction model 60 and the anomaly coefficient A calculated via the anomaly detection model 400. By way of example, the prediction uncertainty E is the entropy of the distribution of the predictions, the anomaly coefficient A is a reconstruction error of the input when the anomaly detection model 400 is an auto-encoder (from the English auto-encodef), and the The combined magnitude is then the result of multiplying the entropy by the reconstruction error. According to this variant, the most uncertain and most abnormal points then have the highest value magnitudes, and the assisted ACL determination mode is then selected for these points.
[0204] According to this variant, as an additional example of combination, the quantity is equal to the binary masking of the uncertainty E by the anomaly coefficient A.
[0205] Apart from the selection of the determination mode carried out - according to this second embodiment - in particular from the anomaly coefficient A, as described above, the operation of this second embodiment is similar to that of the first embodiment described previously, and is therefore not described again.
[0206] According to this second embodiment, the joint use of the anomaly detection model 400 in parallel with the prediction model 60 aims to have a more reliable analysis, than with the use of the sole uncertainty E from the prediction model 60.
[0207] According to this second embodiment, the anomaly coefficient A is then used instead of the uncertainty E, used according to the first embodiment for the selection of the determination mode; or jointly with it, that is to say in combination with said uncertainty E.
[0208] When the quantity taken into account for the selection of the determination mode is the combination of the uncertainty E and the anomaly coefficient A, the person skilled in the art will further observe that this allows even more marked discrimination for the selection of the determination mode, in particular when this combination is the product of the uncertainty E and the anomaly coefficient A, the multiple of two low values being comparatively lower, and as a corollary the multiple of two high values being comparatively higher.
[0209] The anomaly detection model 400, and the associated use of the anomaly coefficient A for the selection of the determination mode, seem particularly appropriate for the processing of any unusual data which could be poorly processed via the prediction model 60. The anomaly detection model 400 then allows in this case a more robust identification of the unusual data. More precisely, the unusual data is, for example, data associated with a task unknown to the prediction model, i.e. associated with a new task; an attack; data associated with a failure of the sensor 15; or data coming from a known but drifting distribution.This unusual type of data will then fall into the "anomaly" category for the anomaly detection model 400, as opposed to the normal category, i.e., data similar to that which has been used in monitoring to date. Traditionally, these data points would be misclassified by the prediction model 60.
[0210] The other advantages of this second embodiment are similar to those of the first embodiment described previously, and are not described again.
[0211] [Fig.6] illustrates a third embodiment for which the elements similar to those of the first and second embodiments described previously are identified by identical references and are not described again.
[0212] According to the third embodiment, the learning module 30 further comprises an incremental learning unit 500 configured to create a set of pseudo-example(s), then to implement continuous learning of the estimation module 24 by reinjecting the set of pseudo-example(s) as input to said estimation module 24.
[0213] Reinjection concerns the inference mechanism and consists of reinjecting the output at the input level. Each time an inference is performed, the calculated output constitutes a self-label. Reinjection is for example described in the article “Beneficial Effect of Combined Replay for Continual Learning” by Solinas et al published in 2021.
[0214] The incremental learning unit 500 comprises, for example, an autoencoder. The autoencoder is a neural network whose objective is to reconstruct the value of the input, i.e. to predict a target value X' closest to the value of the input X. Thus, an autoencoder has an input layer receiving the input X, an output layer delivering the target value X', these layers have the same number of neurons and are connected by one or more hidden layers. The cost functions associated with the autoencoder are, for example, the mean squared error, also noted MSE (from the English Mean Squared Error); the average absolute error, also called L1 loss; or even the binary cross entropy.
[0215] In the example of [Fig.6], the buffer memory 32 comprises several zones 50, 52, 54, namely the first zone 50 having a first size Nb, the second zone 52 having a second size N2, and the third zone 54 having a third size N3. Each of the first Nb, second N2, and third N3 sizes is preferably smaller than a size N of the buffer memory 32 in the form of a single zone in the example of [Fig.2] or in that of [Fig.5].
[0216] Furthermore, the sum of said first Ni, second N2, and third N3 sizes is preferably less than or equal to said size N, in order to have an overall size of the buffer memory 32 according to the third embodiment at most equal to that of the buffer memory 32 according to the first and second embodiments.
[0217] In the example of [Fig.6], the first zone 50 is configured to store one or more task(s) determined according to the assisted mode of ACL determination and associated data, and the second zone 52, distinct from the first zone 50, is configured to store one or more task(s) determined according to the semi-supervised mode of SSL determination and associated data.
[0218] In addition, the third zone 54 is configured to store one or more pseudo-examples created by the incremental learning unit 500.
[0219] The first area 50 is also called the "active replay" buffer, and then contains the data points labeled by an external user on which the prediction model 60 was uncertain and which correspond to new knowledge or data to be better consolidated by the prediction model 60.
[0220] The second area 52 is also called the "semi-readback" buffer, and stores the data points and their pseudo-labels that were predicted by the prediction model 60 with high confidence (low uncertainty E or low anomaly coefficient A). The buffer 32 is then used to generate the pseudo-examples.
[0221] The operation of this third embodiment is similar to those of the first and second embodiments described previously, and will now be described essentially with regard to the particularities of the third embodiment.
[0222] The output of the incremental learning unit 500 is reinjected as output of the kernel 62. This is then propagated again through the auto-encoder of the incremental learning unit 500 and reinjected again and so on. By proceeding in this way over several cycles, the incremental learning unit 500 then makes it possible to generate pseudo-examples which correspond to the knowledge already present in the prediction model 60. The outputs of the auto-encoder of the incremental learning unit 500 are preferably further saved in the third area 54, also called the pseudo-example buffer, at each reinjection cycle.
[0223] When the random number generated for implementing the choice rule during the acquisition of the data by the acquisition module 20 is then between another range of values, the vectors of this pseudo-example buffer, i.e. the vectors contained in the third zone 54, will again be reinjected into the kernel 62. This time, a loss will be calculated between the new output of the auto-encoder and the output of the auto-encoder previously stored in the pseudo-example buffer, i.e. stored in the third zone 54 the previous time this auto-encoder output was reinjected. This then makes it possible to force the prediction model 60 to reproduce the behavior that it had at a previous time instant in time.
[0224] The outputs of the prediction unit 64 are also compared to the outputs of the prediction unit 64 of those stored in the pseudo-example buffer, or third area 54; and a loss is calculated and back-propagated and, preferably, accumulated until a certain number of inputs have been processed in a batch.
[0225] Otherwise, the data points are extracted from the input of the sensor 15 continuously or from the active replay buffer, i.e. first zone 50, and this depending on the choice rule, for example based on the random number generated by the acquisition module 20. When the data points are acquired in the active replay buffer and inferred into the prediction model 60, the loss is calculated normally in the prediction unit 64 using the corresponding label. A reconstruction loss of the output of the kernel 62 is also computable via the auto-encoder.
[0226] When a data point is acquired from the sensor 15, the operation of the processing device 20 is as described previously in the first and second embodiments. The data points are labeled and their losses are calculated according to their prediction uncertainty E, or the anomaly coefficient A, or a combination of the two.
[0227] By preferably interleaving these different procedures, the processing device 20, in particular its prediction model 60, is even more capable of learning new types of tasks, in particular new types of data classes and of consolidating them, while preserving old knowledge and mitigating catastrophic forgetting.
[0228] Those skilled in the art will of course understand that the division of the buffer memory 32 into several distinct zones, in particular into the first zone 50 associated with the assisted ACL determination mode and the second zone 52, distinct from the first zone 50, associated with the semi-supervised SSL determination mode, is compatible with the first and second embodiments described previously, although the buffer memory 32 is represented in the form of a single memory zone in the examples of FIGS. 2 and 5.
[0229] As indicated previously, the buffer memory 32 makes it possible to limit catastrophic forgetfulness by storing data and associated tasks, in order to be able to use them regularly for retraining the prediction model 60.
[0230] The other advantages of this third embodiment are similar to those of the first and second embodiments described previously, and are not described again.
Claims
Claims
1. Electronic system (10) comprising a sensor (15) and an electronic device (20) for processing data connected to the sensor (15), at least one piece of data to be processed being an element present in a scene captured by the sensor (15), the device (20) comprising: - an acquisition module (22) capable of being connected to the sensor (15), and configured to acquire data; - an estimation module (24) configured to estimate a task associated with the data, via the inference of a prediction model (60); - a set (26) of artificial intelligence model(s), said set (26) comprising the prediction model (60); and - a determination module (28) configured to determine a resulting task (Y*) for the data; characterized in that the determination module (28) is configured to calculate a quantity (E, A) representative of the estimate; then to select, as a function of the calculated quantity (E, A), a determination mode from among an assisted determination mode (ACL) and several supervised determination modes; the supervised determination modes including a semi-supervised determination mode (SSL) and a self-supervised determination mode (AUL); and to determine, according to the selected determination mode, the resulting task (Y*); in assisted determination mode (ACL), the determination module (28) being configured to send a user a request to provide a task for the data, and the determined task then being the task provided by the user; and each supervised determination mode (SSL, AUL) being without sending a request to the user, and in that the device (20) further comprises a learning module (30) configured to modify synaptic weights of the prediction model (60) using a backpropagation algorithm for calculating the gradient of each synaptic weight according to a cost function, the cost function depending on the quantity (E, A) calculated.
2. System (10) according to claim 1, in which the determination module (28) is configured to select the determination mode via a comparison of the calculated quantity (E, A) with at least one threshold; the assisted determination mode (ACL) being preferably selected via the comparison of said quantity (E, A) with a first threshold (Ea, A 1
3. System (10) according to claim 1 or 2, wherein in semi-supervised determination mode (SSL), the determination module (28) is configured to determine the resulting task (Y*) from the predicted task; in self-supervised determination mode (AUL), the determination module (28) is configured to determine an additional task, by applying a pretext transformation to the acquired data, the additional task then being obtained via the inference of a pretext model (66) on the transformed data, the pretext model (66) being an artificial intelligence model included in the set (26) of artificial intelligence model(s).
4. System (10) according to claim 2, in which the determination module (28) is configured to select the semi-supervised determination mode (SSL) via the comparison of the calculated quantity (E, A) with a second threshold (Ess, Ass), the second threshold (Ess, Ass) being distinct from the first threshold (Ea, Aa).
5. System (10) according to any one of the preceding claims, wherein the learning module (30) is configured to modify the synaptic weights according to a first cost function if the selected determination mode is the assisted determination mode (ACL) or the semi-supervised determination mode (SSL); and respectively according to a second cost function distinct from the first cost function if the selected determination mode is the self-supervised determination mode (AUL).
6. System (10) according to any one of the preceding claims, in which the quantity is a quantity representative of a defect in the estimation; the quantity preferably being a prediction uncertainty (E) calculated via the prediction model (60); the set (26) of artificial intelligence model(s) preferably further comprising an anomaly detection model (400); the quantity preferably still being an anomaly coefficient (A) calculated via the anomaly detection model (400); the quantity preferably still being a combination of the prediction uncertainty (E) calculated via the prediction model (60) and the co- anomaly efficiency (A) calculated via the anomaly detection model (400).
7. System (10) according to claims 5 and 6, wherein the determination module (28) is configured to select the assisted determination mode (ACL) if the calculated quantity (E, A) is greater than the first threshold (Ea, Aa); to select the semi-supervised determination mode (SSL) if said quantity (E, A) is less than the second threshold (Ess, Ass), the second threshold (Ess, Ass) being distinct from the first threshold (Ea, Aa); and to select the self-supervised determination mode (AUL) if said quantity (E, A) is between the second threshold (Ess, Ass) and the first threshold (Ea, Aa).
8. System (10) according to any one of the preceding claims, wherein the device (20) further comprises a buffer memory (32), and the learning module (30) is connected to the buffer memory (32), and further configured to store, according to a storage rule and in the buffer memory (32), the data and the associated determined task, originating from the determination module (28); the storage rule preferably being chosen from the group consisting of: a rule based on a probability of each type of task; a rule based on type(s) of task(s) already stored in the buffer memory (32); a rule based on a relevance of each type of task; a rule based on a priority of each type of task; a rule based on a relevance of each data item; and a random rule.the buffer memory (32) preferably comprising a first zone for storing task(s) determined according to the assisted determination mode (ACL) and associated data, and a second zone for storing task(s) determined according to the semi-supervised determination mode (SSL) and associated data, the second zone being distinct from the first; and when storing new data and associated task(s) in the buffer memory (32), the learning module (30) preferably further being configured to erase, according to an update rule, one or more previously stored data and tasks.
9. System (10) according to claim 8, in which the acquisition module (22) is connected to the buffer memory (32), and is further configured to acquire the data from a source chosen, according to a selection rule, from among the sensor (15) and the buffer memory (32); the choice rule preferably being a random rule; the source preferably being chosen from the sensor (15) and each of the distinct zones separately, when the buffer memory (32) comprises several distinct zones.
10. The system (10) of claim 8 or 9, wherein at least one of the learning module (30) and the acquisition module (22) is further configured to generate additional data and task(s) by applying a transformation operation to data and task(s) stored or to be stored in the buffer memory (32); the transformation operation preferably being selected from the group consisting of: a blurring operation, a color change operation, a cropping operation, and a rescaling operation, a time windowing operation, a noise addition operation, a dilation operation, and a contraction operation.
11. System (10) according to any one of claims 8 to 10, in which the learning module (30) is further configured to compress the data and the task from the determination module (28), then to store the compressed data and the task in the buffer memory (32); and the acquisition module (22) is then configured to decompress said compressed data and task, before transmission to the estimation module (24).
12. System (10) according to any one of the preceding claims, wherein the learning module (30) further comprises an incremental learning unit (500) configured to create a set of pseudo-example(s), then to implement continuous learning of the estimation module (24) by re-injecting the set of pseudo-example(s) as input to said estimation module (24).
13. System (10) according to any one of the preceding claims, wherein the device (20) further comprises a memory (34) for storing parameters of the prediction model (60) if the selected determination mode is the assisted determination mode (ACL), for subsequent modification of the parameters of said prediction model (60) after receiving the task provided by the user; the stored parameters preferably being the synaptic weights and activation functions of said prediction model (60).
14. A system (10) according to any preceding claim, wherein the processing is a classification of the data, and the task is a class assigned to the data.
15. Method for processing data(s), the method being implemented by an electronic processing device (20) intended to be connected to a sensor (15) and comprising a set (26) of artificial intelligence model(s), at least one data item to be processed being an element present in a scene captured by the sensor (15), the method comprising the following steps: - acquisition of data corresponding to a signal from the sensor (15); - estimation of a task associated with the data, via the inference of a prediction model (60) included in the set (26) of artificial intelligence model(s); and - determination of a resulting task (Y*) for the data; characterized in that the determination step further comprises the calculation of a quantity (E, A) representative of the estimation;then the selection, as a function of the calculated quantity (E, A), of a determination mode from among an assisted determination mode (ACL) and several supervised determination modes; the supervised determination modes including a semi-supervised determination mode (SSL) and a self-supervised determination mode (AUL); and the determination, according to the selected determination mode, of the resulting task (Y*); the assisted determination mode (ACL) comprising sending to a user a request to provide a task for the data, and the determined task then being the task provided by the user;and each supervised determination mode (SSL, AUL) being without sending a request to the user, and in that the method further comprises a learning step comprising a modification of the synaptic weights of the prediction model (60) using a backpropagation algorithm for calculating the gradient of each synaptic weight according to a cost function, the cost function depending on the quantity (E, A) calculated.;
16. A computer program comprising software instructions which, when executed by a computer, implement a method according to the preceding claim.
