Method for analysing a digital datum
Patent Information
- Application Number
- EP2022835452
- Authority / Receiving Office
- EP · EP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2021-12-19
- Filing Date
- 2022-12-18
- Publication Date
- 2024-10-23
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing neural network architectures for digital data analysis lack diversity when operating in parallel, leading to suboptimal performance in tasks such as image recognition, as they often employ identical or similar structures, which limits their scanning efficiency and robustness.
The method involves using multiple elementary neural networks with multilayer perceptrons, each with a sparse connection matrix and different hollow connection matrices between layers, allowing for increased diversity and improved training performance by segmenting nodes into clusters and applying a selection function to activation signals, thereby enhancing the neural network's ability to analyze digital data.
This approach enhances the robustness and scanning performance of neural networks by promoting diversity among the networks, leading to improved analysis results and increased accuracy in tasks like image recognition, as demonstrated by a 0.16% gain in classification percentage through majority voting of outputs from multiple networks.
Smart Images

Figure 1.1
Abstract
Description
[0001] Description
[0002] Title: Process for analyzing digital data
[0003] TECHNICAL FIELD
[0004] The invention relates to data processing using a neural network, comprising a multi-layer perceptron, having a particular architecture.
[0005] PREVIOUS ART
[0006] The use of neural networks for the analysis of various digital patterns, such as images, sounds, and videos, is common.
[0007] Some processing algorithms implement multiple neural networks, fed with common data, and operating in parallel. It is desired that the neural networks operating in parallel be dissimilar, for example by using a different number of layers, or a different number of nodes per layer. When implementing convolutional neural networks, with convolutional layers intended to apply convolutional filters, each neural network operating in parallel can implement different filters.
[0008] The invention described below addresses the issue of diversity in neural networks, particularly in neural networks operating in parallel. It provides diversity while being simple to implement.
[0009] STATEMENT OF THE INVENTION
[0010] A first object of the invention is a method for analyzing digital data, taking the form of a vector or a matrix, the digital data resulting from a measurement carried out by a detector, and forming input data for a neural network, the neural network comprising several elementary neural networks, each elementary neural network comprising a multi-layer perceptron extending between:
[0011] - a first layer;
[0012] - an output layer, the output layer comprising an elementary analysis result, by the elementary neural network, of the digital data; each multi-layer perceptron being such that:
[0013] - each layer is assigned a rank, the rank of a layer being higher the closer the layer is to the output layer;
[0014] - at least two layers of successive ranks, forming an upstream layer and a downstream layer, comprise nodes, nodes of the two layers being connected, each node of the upstream layer addressing a connection signal to at least one node of the downstream layer to which it is connected, the connection of the nodes of the upstream and downstream layers being defined by a connection matrix, each term of the connection matrix being associated with a node of the upstream layer and a node of the downstream layer, and quantifying a contribution of the node of the upstream layer for the node of the downstream layer; the method comprising the following steps:
[0015] - a) use of the input data to feed the first layer of the multi-layer perceptron of each elementary neural network;
[0016] - b) implementing each elementary neural network to obtain an elementary analysis result by the output layer of the multi-layer perceptron of each elementary neural network; the method being characterized in that:
[0017] - at least one connection matrix of the multi-layer perceptron of each elementary neural network is a sparse matrix, comprising at least 50% of nuisance terms or whose value is at least ten times lower than at least one other term of the matrix;
[0018] - the multi-layer perceptron of each elementary neural network comprises, respectively, between two successive layers of the same respective ranks, different sparse connection matrices.
[0019] According to one embodiment, each elementary neural network comprises an extraction block programmed to extract characteristics from the input data, the characteristics thus extracted forming the first layer of the multi-layer perceptron of said elementary neural network. The extraction block may comprise different successive convolution layers, each convolution layer resulting from the application of a convolution filter to the previous convolution layer.
[0020] Preferably, each multi-layer perceptron has the same number of layers and the same number of nodes per layer.
[0021] Each multi-layer perceptron may have at least one intermediate layer, between the first layer and the output layer. Two successive layers of at least one multi-layer perceptron may be such that:
[0022] - the nodes of the downstream layer are segmented into different groups.
[0023] The process is then such that step b) comprises, for the multilayer perceptron, the following sub-steps:
[0024] - bi) from the connection signals resulting from the nodes of the upstream layer, connected to the same group of the downstream layer, selection of nodes, belonging to said group, at least one node of said group not being selected;
[0025] - b-ii) activation of the selected nodes, at least one node of the group not being activated. According to one possibility,
[0026] - at least one multi-layer perceptron comprises several pairs comprising two successive layers, each pair comprising an upstream layer and a downstream layer, a connection matrix being defined between the upstream layer and the downstream layer;
[0027] - each connection matrix contains at least 50% of terms that are harmful or whose value is at least ten times lower than at least one other term in said matrix;
[0028] - sub-steps bi) and b-ii) are implemented for each pair of layers.
[0029] Sub-step bi) may comprise, for each group of a downstream layer of at least one multi-layer perceptron:
[0030] - calculating an activation signal for each node of the group, based on connection signals emitted, towards said node, by each node of the upstream layer connected to said node;
[0031] - normalization of the activation signals calculated for each node of the group so that the normalized signals are between a predetermined minimum value and a predetermined maximum value;
[0032] - selection of group nodes based on standardized activation signals.
[0033] Sub-step bi) may include:
[0034] - taking into account a selection function, the selection function being an increasing or strictly increasing function;
[0035] - application of the selection function to each normalized activation signal, so as to calculate for each normalized activation signal, a comparison signal;
[0036] - selection of group nodes based on the comparison signal calculated for each node.
[0037] The selection function may comprise a sigmoid or piecewise linear function. According to one embodiment, at least one or each connection matrix of a multi-layer perceptron comprises at least 90% or at least 95% of terms that are negative or at least less than at least one other term of said matrix.
[0038] According to one embodiment, for at least one multi-layer perceptron, each connection signal between two nodes of two successive layers is positive.
[0039] According to one embodiment, the method comprises a step c) of combining the elementary analysis results, resulting from each elementary neural network, to form an analysis result.
[0040] According to one embodiment, the method comprises, prior to step a),
[0041] - measurement of a physical quantity by a detector;
[0042] - formation, by the detector, of an input signal from the measured physical quantity;
[0043] - formation of the input data from the input signal.
[0044] The analysis result can be a characterization of the measured physical quantity.
[0045] The method may comprise, prior to step a):
[0046] - taking into account data stored in a database, the stored data forming the input signal;
[0047] - formation of the input data using the input signal;
[0048] The analysis result can then be a characterization of the stored data.
[0049] A second object of the invention is a measuring system, comprising:
[0050] - a detector, configured to measure a physical quantity and to establish an input signal from the measured physical quantity;
[0051] - a processing unit, programmed to implement the method according to the first object of the invention.
[0052] The detector can be an image sensor or a sound sensor or a magnetic sensor.
[0053] A third object of the invention is a data medium, readable by a computer, or configured to be connected to a computer, or integrated circuit, comprising instructions for implementing the method according to the first object of the invention, in particular from measured data.
[0054] A fourth subject of the invention is a computer program comprising instructions which, when the program is executed by a computer, lead to the implementation of a neural network, configured to analyze an input data, the neural network comprising several elementary neural networks, each elementary neural network comprising a multi-layer perceptron extending between:
[0055] - a first layer;
[0056] - an output layer, the output layer comprising an elementary analysis result, by the elementary neural network, of the digital data; each multi-layer perceptron being such that:
[0057] - each layer is assigned a rank, the rank of a layer being higher the closer the layer is to the output layer;
[0058] - at least two layers of successive ranks, forming an upstream layer and a downstream layer, comprise nodes, nodes of the two layers being connected, each node of the upstream layer addressing a connection signal to at least one node of the downstream layer to which it is connected, the connection of the nodes of the upstream and downstream layers being defined by a connection matrix, each term of the connection matrix being associated with a node of the upstream layer and a node of the downstream layer, and quantifying a contribution of the node of the upstream layer for the node of the downstream layer; the program being characterized in that:
[0059] - at least one connection matrix of each multilayer perceptron is a sparse matrix, comprising at least 50% of nuisance terms or whose value is at least ten times lower than at least one other term of the matrix;
[0060] - multilayer perceptrons comprise, respectively, between two successive layers of the same respective ranks, different sparse connection matrices.
[0061] The computer program may include one of the following characteristics, taken individually or in technically feasible combinations:
[0062] - each multi-layer perceptron has at least one intermediate layer, between the input layer and the output layer;
[0063] - each multi-layer perceptron comprises several pairs comprising two successive layers, each pair comprising an upstream layer and a downstream layer, a connection matrix being defined between the upstream layer and the downstream layer;
[0064] - each connection matrix contains at least 50% or at least 80% of terms which are null or whose value is at least ten times lower than at least one other term in said matrix.
[0065] The computer program may comprise instructions for combining analysis results resulting from each elementary neural network. A fifth subject of the invention is a computer-readable or computer-connectable data carrier or a printed circuit, in which the computer program according to the fourth subject of the invention is recorded.
[0066] A sixth subject of the invention is a method of data annotation, using a program according to the fourth subject of the invention, the program comprising a first elementary neural network and a second elementary neural network, the first and second elementary neural networks respectively comprising the same number of layers, and the same number of nodes per layer, the method comprising the following steps:
[0067] - i) taking into account first annotated input data and first unannotated input data;
[0068] - ii) taking into account second annotated input data, different from the first annotated input data, and second unannotated data;
[0069] - iii) learning:
[0070] • the first elementary neural network using the first annotated input data;
[0071] • and the second elementary neural network using the second annotated input data;
[0072] - iv) use
[0073] • of the first elementary neural network to: annotate the first unannotated data, so as to form first pseudo-annotated data; or update an annotation of first pseudo-annotated data resulting from a previous iteration;
[0074] • of the second elementary neural network to: annotate the second unannotated data, so as to form second pseudo-annotated data; or update an annotation of second pseudo-annotated data resulting from a previous iteration;
[0075] - v) learning update:
[0076] • of the first elementary neural network using the first annotated input data and the second pseudo-annotated input data in step iv); • of the second elementary neural network using the second annotated input data and the first pseudo-annotated input data in step iv);
[0077] - vi) repeating steps iv) to v), until an iteration stopping criterion is reached, such that following the iterations, the annotations of the first pseudo-annotated input data and the second pseudo-annotated input data are considered to be stabilized.
[0078] The first annotated and unannotated data, as well as the second annotated and unannotated data, may be data measured by a detector. The detector may be an image sensor or a sound sensor or, more generally, a sensor of a physical quantity.
[0079] According to one embodiment,
[0080] - during step i), the number of first unannotated input data is greater than the number of first annotated input data;
[0081] - in step ii), the number of second unannotated input data is greater than the number of second annotated input data.
[0082] The computer program may comprise several first elementary neural networks, each first elementary neural network comprising
[0083] • the same number of layers, and the same number of nodes per layer;
[0084] • among the layers, two layers of successive ranks, respectively forming an upstream layer and a downstream layer, the connection matrix between the upstream layer and the downstream layer comprising at least 50% or at least 80% of terms which are harmful or whose value is at least ten times lower than at least one other term of the matrix, the connection matrices between said layers being different in each first neural network.
[0085] Step iii) may involve training each first elementary neural network using the first annotated input data.
[0086] Step iv) may include
[0087] • iv-1) a use of each first elementary neural network to independently annotate the first unannotated data or independently update an annotation of the first pseudo-annotated data resulting from a previous iteration; • iv-2) for each first pseudo-annotated data, a combination of the annotations resulting from sub-step iv-1) to define a single annotation for said first data;
[0088] Step v) may include updating the training of each first elementary neural network using the first annotated input data and the second pseudo-annotated input data from step iv).
[0089] The computer program may comprise several second elementary neural networks, each second elementary neural network comprising
[0090] • the same number of layers, and the same number of nodes per layer;
[0091] • among the layers, two layers of successive ranks, respectively forming an upstream layer and a downstream layer, the connection matrix between the upstream layer and the downstream layer comprising at least 50% or at least 80% of nuisance terms or whose value is at least ten times lower than at least one other term, the connection matrices between said layers being different in each second elementary neural network.
[0092] Step iii) may involve training each second elementary neural network using the second annotated input data.
[0093] Step iii) may include:
[0094] • iv-1) a use of each second elementary neural network to independently annotate the second annotated data or independently update an annotation of the second pseudo-annotated data resulting from a previous iteration;
[0095] • iv-2) for each second pseudo-annotated data, combination of the annotations resulting from sub-step v-1) to define a single annotation.
[0096] Step v) may include updating the training of each second elementary neural network using the second annotated input data and the first pseudo-annotated input data from step iv).
[0097] The invention will be better understood by reading the description of the exemplary embodiments presented in the remainder of the description, in conjunction with the figures listed below.
[0098] FIGURES
[0099] Figure 1 shows the main elements enabling implementation of the invention.
[0100] Figure 2A represents an architecture of an analysis algorithm implementing the invention. The analysis algorithm is based on several elementary neural networks. Figure 2B schematizes an extraction block implemented by each elementary neural network.
[0101] Figure 2C schematically represents a multi-layer perceptron of each elementary neural network.
[0102] Figure 3A shows the main steps in the operation of a neural network as described in connection with Figure 2C.
[0103] Figure 3B details the steps for selecting one or more nodes from a group of nodes in a layer of an elementary neural network described in connection with Figure 2C.
[0104] Figure 3C is a detail of a group, or cluster, of nodes shown in Figure 2C.
[0105] Figure 3D and Figure 3E illustrate examples of selection functions.
[0106] Figure 4A shows a parallelization of a first neural network and a second neural network that can be used for partially supervised learning purposes.
[0107] Figure 4B shows the main steps of partially supervised learning implementing the architecture described in connection with Figure 4A.
[0108] Figure 5 shows a variant of the parallelization of the first neural network and the second neural network, described in connection with Figure 4A. According to this variant, the first neural network and the second neural network are subdivided into several elementary neural networks operating in parallel.
[0109] PRESENTATION OF SPECIAL EMBODIMENTS
[0110] Figure 1 represents an example of a system implementing the invention. The system 1 comprises a detector 10, configured to detect a physical quantity 11. In this example, and in a non-limiting manner, the detector 10 is an image sensor, the physical quantity being an electromagnetic wave. The detector may be an acoustic sensor, the physical quantity being an acoustic wave. The detector may be a magnetic sensor or an electrical sensor. Generally speaking, the detector forms an input signal S representative of the physical quantity that it has detected.
[0111] The detector 10 is connected to a processing unit 12, configured to process the measurements. The processing unit 12 comprises a computer or a specific processor. The processing unit is connected to a memory 13 comprising instructions, in the form of a computer program or a dedicated integrated circuit, for processing the input signal S. The dedicated circuit may be an ASIC (Application Specific Integrated Circuit) type circuit. The input signal S is processed so as to characterize the physical quantity detected. In the example described, the processing carried out by the processing unit aims to carry out a classification of the image formed by the image sensor. The images comprise alphanumeric characters and the processing unit is programmed to identify the alphanumeric characters. The identification consists of classifying each image into a predetermined character class.This is an image recognition type application.
[0112] Other types of characterization are conceivable. Thus, a characterization can be, in a non-limiting manner, an identification, a recognition (image recognition, sound recognition), a classification among predetermined classes, a determination of a probability of belonging to a class, or an estimation of a parameter on which the measured physical quantity depends.
[0113] Figure 2A shows a diagram of an architecture of an analysis algorithm 2 executed by the processing unit 12. The image acquired by the detector 10 forms an input data IN of the analysis algorithm 2 implemented by computer.
[0114] The analysis algorithm 2 comprises a neural network NN. An important aspect of the invention is that the neural network comprises several multi-layer perceptrons, each multi-layer perceptron operating in parallel. In the example described, the neural network comprises three multi-layer perceptrons 31, 32, 33. Each multi-layer perceptron extends from a first layer L i;L2 and L3, as described in connection with Figure 2B. Each first layer can form an input layer of the neural network. This is particularly the case when the input data is a vector. In this example, the input layer of each multi-layer perceptron is fed to an extraction block, the latter being configured to extract characteristics of the image forming the input data. Thus, the neural network NN comprises three extraction blocks 21, 22, 23, each extraction block being configured to extract characteristics of the image forming the input data. Each extraction block is arranged upstream of a multi-layer perceptron, so that the characteristics of the image extracted by an extraction block form the first layer of a multi-layer perceptron.
[0115] Generally speaking, the neural network NN is formed of several elementary neural networks operating in parallel, for example NNi, NN2, NN3 in the case of three elementary neural networks. Each elementary neural network comprises a multi-layer perceptron 31, 32, 33. Each elementary neural network may comprise a feature extraction block 21, 22, 23 feeding the multi-layer perceptron 31, 32, 33. In the example described, the neural network comprises three elementary neural networks. By operating in parallel, it is meant that each elementary neural network uses the same input data and performs processing, independently of another elementary neural network, to arrive at an output data. The respective output data of each elementary neural network may be combined so as to form the output data of the neural network.
[0116] In Figure 2B, the extraction block 21 of the first elementary neural network NNi is schematized, knowing that the extraction blocks 22 and 23 have a similar structure. The extraction block 21 extends between an input layer 21j n , which corresponds to the input IN of the neural network, and an output layer 21 ou t. The extraction block 21 comprises M successive convolution layers Ci....C m ...CM. When m > 1, each convolution layer C m is obtained by convolving a previous layer with a convolution filter, for example a 5x5 convolution filter. The number M of convolution layers C m can for example be equal to 2. The output layer 21 ou t is usually formed by concatenating the data from the last convolution layer, forming a feature vector. The contents of the output layer 21 out forms the features extracted from the input data.
[0117] The extraction block 21 is configured to extract relevant features from the image, the latter forming an input data of a multi-layer perceptron, described later. A pre-programmed extraction block 21 can be used to extract features from an image. Alternatively, or in addition, the extraction block 21 is trained, together with the multi-layer perceptron that it feeds, so as to determine the parameters of the convolution filters implemented in the convolution layers C m .
[0118] The features extracted by the extraction block 21 are then analyzed by a multi-layer perceptron 31.
[0119] An important aspect of the invention is that the neural network comprises different elementary neural networks. In the example shown in Figure 2A, the NN neural network comprises three elementary neural networks. The number of elementary neural networks can be between 2 and 10.
[0120] Figure 2C represents an architecture of a multi-layer perceptron 31 of an elementary neural network NNi, knowing that each multi-layer perceptron of each elementary neural network has a similar architecture. In the example shown, the multi-layer perceptron 31 comprises three layers Li, L2 and L3. In a manner known in this type of neural network architecture, each layer comprises nodes x n p . In Figure 2A, each node x n p has been represented by a circle. At each layer L n is assigned a rank n. The rank of layer L nis higher the closer the layer is to the output layer OUTi of the multilayer perceptron 31. In this example, the output layer OUTi is the L3 layer. The Li layer is a rank 1 layer, the L2 layer is a rank 2 layer and the L3 layer is a rank 3 layer. Generally speaking, each multilayer perceptron has at least two layers: the input layer and the output layer. It can have several intermediate layers between the input layer and the output layer.
[0121] In each layer of rank n, at each node x n p is assigned an order p. The number of nodes x n p in a layer of rank n is P n . P n is for example between a few tens and a few thousands. The respective numbers of nodes of two different layers can be different.
[0122] The operation of a multi-layer perceptron neural network is known to those skilled in the art. If we consider two successive layers, i.e. of successive respective ranks n — l,n, each node of the layer L n of rank n, called the downstream layer, receives an activation signal s n p corresponding to a linear combination of the connection signal s 'one or more nodes x n-1;P ' of the L layer n-1 of rank n — 1, called the upstream layer. Thus, the value s n p of the activation signal of each node x n p of a layer L n is such that:
[0123] WHERE sn-i,p',p est ' e connection signal addressed by each node x n-l pl of order p' of the L layer n-1 of rank n — 1 to the node of order p of layer L n of rank n; b n -i,pr is un bias associated with each node x n-l pl of the L layer n-1 rank n-1. f n pis an activation function associated with the node of order p of the layer of rank n;
[0124] Wp' p is a connection coefficient between each node x n-l pl of the previous layer and node x n p of order p of layer of rank n.
[0125] The form of each activation function f n p is determined by the person skilled in the art. It may, for example, be a hyperbolic or sigmoid tangent function. The value of the nodes of the first layer L depends on the last layer of the extraction block. For the L layers n with n > 1, the parameters linked to each node x n p , that is to say the terms, b n-l p , and w p p , defined in connection with expression (1) can be determined during learning.
[0126] Each multi-layer perceptron 31, 32, 33 of each elementary neural network NNi, NN2, NN3 preferably has the same number of layers and the same number of nodes per layer. At least one connection matrix W n-l n connecting two successive layers of rank n — l,n is different for each multilayer perceptron.
[0127] The respective outputs OUTi, OUT2, OUT3 of each multi-layer perceptron also constitute the respective outputs of each elementary neural network NNi, NN2, NN3. They can be combined in a combination layer 40, so as to form an output OUT of the neural network 2. The output layer OUT thus corresponds to a combination of the outputs of each elementary neural network. The combination can be obtained by an average or a median of the outputs of the multi-layer perceptrons, or other types of combination, for example a majority vote, as described below.
[0128] A feature of at least one multilayer perceptron, and preferably of every multilayer perceptron, is that between at least two layers of successive ranks n — 1, n, more than 50%, or even more than 80%, and even more than 90% of the connection coefficients are null. The connection between the two successive layers can be represented by a connection matrix W n-l n , of dimension (P n-1 P n ), each term of which w pl p is the connection coefficient between the node of order p' of the layer of rank n — 1 and the node of order p of the layer of rank n. Each term w pl p represents a contribution from node x n-1;P ' in node x n p . The W connection matrix n-l nis a sparse matrix, in the sense that more than 50%, or even more than 80%, or even more than 90% or 95% are harmed. By null, it is understood equal to zero or can be considered harmed. The terms that can be considered harmed are the terms whose value is at least 10 times less than at least one other term in the matrix. The terms of the connection matrix are positive or harmed. This means that the matrix is made up of harmed terms, or considered as such, and positive non-harmed terms.
[0129] At least one multi-layer perceptron, and preferably each multi-layer perceptron, is established such that at least one connection matrix W n-l n defining the connections between two successive layers, or even each connection matrix, or a sparse matrix as defined in the previous paragraph. Each connection matrix can be defined, prior to the learning phase, by random selection.
[0130] Using a multi-layer perceptron with at least one sparse connection matrix improves learning diversity when learning is performed using a parallel multi-network approach. In such an approach, several elementary neural networks with identical structure but different connection matrices are implemented in parallel. This improves analysis performance.
[0131] Using a sparse connection matrix W n-l n between two consecutive layers (upstream layer L n - downstream layer L n -i) is preferably accompanied by a structuring of the highest-ranking layer (downstream layer) into groups, or clusters. Each cluster X n q of a layer L n of rank n is assigned an order q. Each cluster X n q groups several x nodes n pof the downstream layer. The number of nodes per cluster can for example be between 2 and 10. The downstream layer L n of rank n is thus segmented into different clusters, which do not overlap. Thus, preferably, a node x n p can only belong to one cluster X n q .
[0132] Figure 3A illustrates the principles of implementation of the measurement system described in connection with Figure 1. During a step 100, the detector detects a physical quantity and generates an input signal, for example an image. Generally, the input signal can be expressed in vector form, or matrix form, or in the form of several matrices. During a step 110, the input signal is transmitted to the processing unit 12. During a step 120, an input data item of the neural network NN is formed using the input signal. During a step 130, the neural network NN is implemented, the result of the analysis of the input signal being obtained at the output layer OUT.
[0133] Advantageously, the structuring of the nodes of a layer into clusters is accompanied by a process of selecting one or more nodes from each layer segmented into clusters as described below, in connection with Figures 3B to 3E. Figure 3B illustrates the selection process as it is carried out for each cluster. In Figure 3C, a detail of Figure 2C has been extracted, which shows the connections of the nodes of the first cluster X n q . In this example, n = 2 and q = 1. The cluster X n l has three x nodes n l , x n 2 , x n 3 . Nodes are activated by nodes in the upstream layer L n-lt of rank n-1. Each node x n p of the L layer n receives an activation signal s n p of the upstream layer, as described in connection with (1). When node x n p is connected to a single node of the upstream layer, the signal s n p corresponds to the connection signal s n p pr generated by said node, of order p', of the upstream layer. When node x n p is connected to several nodes of the upstream layer, the signal s np corresponds to the sum of the connection signals generated by said upstream layer nodes.
[0134] During a step 131, the activation signals of each node s are taken into account. np of the cluster.
[0135] Preferably, during a step 132, the activation signals of each node are normalized, so as to be between a predetermined minimum value and a predetermined maximum value. Preferably, the signals are normalized so as to be homogeneous to a probability, being between the minimum value 0 and the maximum value 1. The normalization can be carried out according to:
[0136] °ù Z ' x n q s n,p corresponds to the sum of the activation signals of the nodes of the cluster of order q of layer n and s^ pcorresponds to the normalized activation signal of each node x n p of order p of the cluster X n q of order q. Step 132 is optional.
[0137] During a step 133, the activation signals of the cluster are processed by a selection function f. The selection function is preferably a continuous and monotonic function. The selection function is or preferably comprises a sigmoid function, as shown diagrammatically in FIG. 3D, or a function approaching a sigmoid function. Alternatively, the selection function may be a piecewise linear function, as shown in FIG. 3E. The selection function makes it possible to accentuate the discrimination between the values of the normalized activation signals. The activation signals fs^p) processed by the selection function are comparison signals, intended to be compared with each other, or with respect to a threshold. This is the subject of a comparison step 134.
[0138] During the comparison, according to a first possibility, the highest comparison signal fs^p) is selected. According to another possibility, each comparison signal f(Sn,p) exceeding a predetermined threshold value is selected.
[0139] Following the comparison: the x nodes n p of cluster X n q corresponding to the selected comparison signals are activated. the nodes x n p of cluster X n q corresponding to unselected comparison signals are disabled.
[0140] Thus, during a step 135, the nodes x are activated or deactivated n p of cluster X n qdepending on the comparison. Activated nodes receive activation signals s n p from the upstream layer. They generate, if necessary, a connection signal to one or more nodes in the next layer. Non-activated nodes do not generate a connection signal for the next layer. If the layer containing the nodes is the last layer of the perceptron, non-activated nodes are ignored for further processing.
[0141] Steps 131 to 135 are repeated for each cluster defined on at least one layer of the multi-layer perceptron. Preferably, clusters in the same layer have the same number of nodes.
[0142] The selection function f can have the following analytical form:
[0143] It is noted that, following normalization, when the values of the activation signals ;P are between 0 and 1, the values of the comparison signals (s^p ) are also between 0 and 1.
[0144] 6 is a threshold and T is a parameter designated by the term “temperature”.
[0145] The values of 6 and T are predetermined or can be self-adjusting. When the values of are between 0 and 1, the threshold 6 is also between 0 and 1. When 6 > 0.5, only one neuron can be activated following the selection process.
[0146] The temperature T determines the slope of the selection function. The lower the value of T, the higher the slope of the sigmoid, which increases the number of occurrences for which (s„ iP ) =0 + or (s„ iP ) =1". The designations 0 + and 1" respectively denote tending towards 0 when being greater than 0, and tending towards 1 when being less than 1. A low value of T makes the sigmoid function tend towards a niche-type function.
[0147] It is preferable that the function f be differentiable and strictly increasing. Indeed, during the learning phase, gradient descent type algorithms are used. The implementation of this type of algorithm can present difficulties if the derivative of the function f is zero. According to one possibility, the function f includes a sigmoid function, as explained in connection with (3), to which a linear term is added.
[0148] An important aspect of the invention is the use of normalization of the values s„ ;P by the sum of the activation signals reaching the nodes of the cluster considered. Thus, the values s„ ;Pare comparable to probabilities. This allows us to have values extending over a controlled interval, which is more appropriate prior to the application of a sigmoid function. This probabilistic approach, coupled with a selection process carried out in parallel on several small clusters of the same layer, is particularly interesting when considering a small number of activation signals, induced by a sparse connection matrix. We take advantage of a principle of diversity, which consists of multiplying the competitions between small subsets of signals.
[0149] Generally, the size of each cluster is between 2 and 10 nodes. The number of nodes selected in a cluster is 1 or 2 per cluster, i.e., around 10% to 50% of the nodes forming the cluster.
[0150] As previously described, the analysis algorithm 2 is intended to process input data resulting from a detection of a physical quantity, forming a vector or a matrix or several matrices. When each elementary neural network has an extraction block by convolution layers, the data forming the input layer of the multilayer perceptron are positive, which facilitates the normalization previously described. The fact that the values are positive makes it possible to avoid the use of a complex function of the normalized exponential function type (usually designated softmax), and the associated memory cost.
[0151] Preferably, the selection process as previously described is implemented on several layers of each multi-layer perceptron arranged downstream of the first layer Li.
[0152] Using elementary neural networks, each comprising a multi-layer perceptron as previously described, arranged in parallel, allows us to take advantage of a certain diversity, due to the structure of each perceptron: their structure is similar, except for at least one connection matrix. This increases the robustness of the analysis carried out by the analysis neural network, formed by the association of the different multi-layer perceptrons, and combining the outputs resulting from the multi-layer perceptrons. Using sparse matrices makes it possible to simply achieve a great diversity, in particular when the connection matrices are defined by a random selection. The connection matrices thus formed are very decorrelated from each other.
[0153] It should be noted that the use of a neural network comprising one or more sparse connection matrices is not obvious. Indeed, it is generally accepted that the performance of a neural network decreases when the connections are few in number between two successive layers. However, a key element of the invention is that the use of sparse matrices, combined with the selection in each cluster, as previously described, and / or a parallelization of several identical elementary neural networks, apart from the connection matrices, makes it possible to constitute a high-performance NN neural network, taking into account the learning diversity conferred by the connection matrices.
[0154] The inventors tested an analysis method as described in connection with Figures 2A to 2C. The input data were images resulting from the MNIST database, by a selection of only 10% of them. The MNIST database is known to those skilled in the art. It comprises 60,000 samples representative of ten digits ranging from 0 to 9. Each image represents a character coded under 28 x 28 pixels, or 784 pixels. The input data IN of the neural network was a vector formed by the 784 pixels. In each elementary neural network, an extraction block formed by two convolution layers was used: a first convolution layer comprised 64 convolution filters of size 5x5 and a second convolution layer comprised 128 convolution filters of size 5x5. The output of the extraction block was formed by a feature vector of dimension (1, 4608).
[0155] As previously described, the neural network comprised three elementary neural networks operating in parallel. Each elementary neural network comprised an extraction block (convolution layers) 21, 22, 23, as described in the previous paragraph, respectively feeding a multilayer perceptron 31, 32, 33. Each multilayer perceptron comprised, in addition to the first layer Li (n = 1), three layers L2, L3, L4 comprising respectively 1500 nodes, 1200 nodes and 504 nodes. Each of these layers was segmented into clusters of 3 nodes each. The selection process, as described in connection with Figure 3B, was implemented on each cluster of each layer. A sigmoid function was used as explained in (3), to which a linear term with a slope equal to 0.05 was used, in order to form a strictly increasing function and avoid a too small derivative. The 6 values were 0.64, 0.79 and 0 respectively.4 for layers L2, L3, L4. The value of T was equal to 0.05 for each layer. Considering the linear term, the selection function was:.
[0156] The training of the three elementary neural networks was carried out using annotated images, with a number of epochs limited to 10. An epoch corresponds to a number of times that all the images are submitted to the network, in a different order at each epoch.
[0157] The output layer of each elementary neural network was a binary codeword of length 504, structured into 168 clusters. Each word resulting from the output layer corresponded to the identified character.
[0158] A test to estimate the quality of the classification was carried out, analyzing the classifications resulting from the three elementary neural networks implemented independently of each other, as well as a classification obtained by combining, according to a majority vote, the classifications established by the three elementary neural networks. By majority vote, we mean that the result of the classification corresponds to the majority classification among the classifications resulting from each elementary neural network. The classification quality is quantified by a percentage of correctly recognized characters. The use of elementary neural networks, without combining the results, resulted in the respective percentages of 99.15%, 98.95% and 99.11%. Combining the results, according to the majority vote approach, a percentage of 99.23% was obtained, which corresponds to an increase of 0.16% compared to the average percentages obtained with elementary neural networks used independently. Thus, paralleling elementary neural networks, comprising at least one sparse connection matrix, is different, improves the analysis performance.
[0159] At these performance levels, a gain of 0.16% is not insignificant. This corresponds to 18% of the difference between the average percentage and the ideal value of 100%. This result is particularly encouraging, knowing that we were limited to three multilayer perceptrons used in parallel.
[0160] We will now describe another advantage of the selection approach described above, combined with a parallelization of multilayer perceptrons of identical structures, up to at least one connection matrix. The training of a neural network requires annotated data, that is to say input data whose output label is known. This is called supervised learning. The implementation of neural networks operating in parallel makes it possible to increase the number of training data, by using unannotated data. We thus move from supervised learning, in which all the training data are annotated, to partially supervised learning, in which part of the data used for training are not previously annotated.
[0161] Figure 4A represents an architecture of an algorithm, similar to the structure shown in Figure 2A. A first multi-layer perceptron 31 is arranged downstream of a convolutional extraction block 21. The association of the extraction block 21 and the multi-layer perceptron 31 forms a first neural network NN a . In the first multi-layer perceptron 31, at least two successive layers (upstream layer - downstream layer) are connected by a sparse connection matrix, the downstream layer being segmented into clusters of nodes implementing a selection process as previously described. The first neural network NN ais trained with annotated first training data Di, but also with unannotated first training data di. In this example, the training data, whether annotated (10% of the training data) or not (90% of the training data), are images extracted from the MNIST database.
[0162] There is also a second multi-layer perceptron 32, connected to a convolutional extraction block 22, whose structure is identical to the first multi-layer perceptron 31. The association of the extraction block 22 and the multi-layer perceptron 32 forms a second neural network NNb. The second multi-layer perceptron 32 is similar to the first multi-layer perceptron 31, except for at least one connection matrix. Thus, between at least two layers, the first and second multi-layer perceptrons have at least one connection matrix W n-l ndifferent from each other. The second neural network NNb is trained with second annotated training data D2, but also second unannotated training data d2. The first annotated data Di and the second annotated data D2 are preferably disjoint sets. The same is true for the first unannotated data di and the second unannotated data d2.
[0163] Figure 4B illustrates the main steps of a training process for the two NN neural networks a and NNb. During steps 200 and 300, the first and second NN neural networks a and NNb are respectively trained using the first and second annotated data Di and D2. Following training: the first neural network NN aperforms an annotation of the first unannotated data di, so as to obtain first pseudo-annotated data D'i: step 210; the second neural network NNb performs an annotation of the second unannotated data d2, so as to obtain second pseudo-annotated data D'2: step 310.
[0164] The annotations of the pseudo-annotated data D'i and D'2 are provisional. We speak of pseudoannotations, insofar as the annotations are not definitive and can be adjusted during the iterative process described below.
[0165] The first pseudo-annotated data D'i are transmitted to the second neural network NNb: step 220. Symmetrically, the second pseudo-annotated data D'2 are transmitted to the first neural network NN a : step 320.
[0166] In step 230, the first neural network NN ais retrained using the first annotated data Di and the second pseudo-annotated data D'2. Symmetrically, the second neural network NNb is retrained using the second annotated data D2 and the first pseudo-annotated data D'i.
[0167] Steps 210 to 230 as well as 310 to 330 can be repeated. At each iteration: during steps 210 and 310, the first neural network NN a and the second neural network NNb perform an update of the pseudo-annotations respectively of the first pseudo-annotated data and the second pseudo-annotated data; during steps 220 and 320, the first and second pseudo-annotated data, respectively updated during steps 210 and 310 of the same iteration, are respectively transmitted to the second neural network NNb and to the first neural network NN a; during steps 230 and 330, the first and second neural networks are retrained, using respectively: o the first annotated data Di and the second pseudo-annotated data D'2; o the second annotated data D2 and the first pseudo-annotated data D'i.
[0168] Steps 210 to 230 and 310 to 330 are repeated until stability is achieved in the pseudo-annotations, for example when a predefined proportion of pseudo-annotated data no longer changes annotation following two successive iterations. The pseudo-annotations are then considered stable.
[0169] In case of instability in an annotation, for example when after 20 or 30 iterations a pseudo-annotation has not been stabilized, an annotation by a human user can be requested.
[0170] Figure 5 illustrates a variant of the architecture described in connection with Figure 4A. According to this variant: the first neural network NN a comprises three first elementary neural networks NN a ,i, NN a ,2, NN a,3 operating in parallel. Each first elementary neural network comprises an extraction block (21i, 212, 2I3) coupled to a multilayer perceptron (31i, 312, 31s). Each first elementary neural network has the same structure: same number of layers, same number of nodes per layer. At least one connection matrix between two layers of each multilayer perceptron is different in each first elementary neural network. the second neural network NNb comprises several second elementary neural networks NNb,i, NNb,2, NNb,3 operating in parallel. Each second elementary neural network comprises an extraction block (22i, 222, 223) coupled to a multilayer perceptron (32i, 322, 323). Each second elementary neural network has the same structure: same number of layers, same number of nodes per layer.At least one connection matrix between two layers of each multilayer perceptron is different in every second elementary neural network.
[0171] The multi-layer perceptrons of the first and second neural networks are respectively connected to a first combination layer 41 and a second combination layer 42. Each combination layer is configured to combine the outputs from the multi-layer perceptrons to which it is connected. The combination may be based on an average or a median. The output of each combination layer constitutes the output of the neural network.
[0172] The first and second NN neural networks a, NNb can be implemented, for learning purposes, as described in connection with Figure 4B. The inventors implemented the method described in connection with Figure 4B using an architecture as described in connection with Figure 5. The first and second NN neural networks a, NNb were trained using first annotated data (5% of the database), first unannotated data, second annotated data (5% of the database), and second unannotated data. The number of first pseudo-annotated data, randomly chosen at each iteration, was equal to the number of first annotated data. Similarly, the number of second pseudo-annotated data, randomly chosen at each iteration, was equal to the number of second annotated data. The first annotated and pseudo-annotated data after 20 iterations were used to train a neural network as described in Figure 5. The rate of correctly recognized digits reached 99.4%.
[0173] Thus, using neural networks operating in parallel and in a cross-functional manner, it is possible to annotate data by forming pseudo-annotated data from a small number of initially annotated data. The ratio between initially annotated data and pseudo-annotated data can typically be less than 10%.
[0174] Performance can be improved by increasing the number of neural networks working in parallel. The architectures described in the example had 3 networks working in parallel. It is possible to increase this number to 4 or 5 parallel networks, or even more.
[0175] The invention may be used for processing measured data, for example image processing, for example image recognition, or sound processing, for example sound classification or speaker identification. In the case of sound processing, each input data may be represented in the form of an image resulting from the evolution of a frequency spectrum as a function of time. Thus, the invention applies to any data that can be represented in the form of a multidimensional vector.
Claims
24 DEMANDS 1. A computer-implemented method for analyzing numerical data, in the form of a vector or matrix, the numerical data resulting from a measurement performed by a detector, and forming an input to a neural network, the neural network comprising several elementary neural networks (NN1, NN2, NN3), each elementary neural network comprising a multilayer perceptron extending between: - a first layer (Li, 1.2, L3); - an output layer (OUT1, OUT2, OUT3), the output layer containing a result of elementary analysis, by the elementary neural network, of the numerical data; each multilayer perceptron being such that: - each layer is assigned a rank (n), the rank of a layer being higher the closer the layer is to the output layer; - at least two layers of successive ranks, forming an upstream layer and a downstream layer, contain nodes, nodes of both layers being connected, each node of the upstream layer (x n-l p i) addressing a connection signal (s n-l p > p ) to at least one node of the downstream layer (x n p ) to which it is connected, the connection of the nodes of the upstream and downstream layers being defined by a connection matrix (W n-l n ), each term of the connection matrix (w PiP ,) being associated with a node of the upstream layer and a node of the downstream layer, and quantifying a contribution of the node of the upstream layer for the node of the downstream layer; - the process comprising the following steps: • a) use of the input data to feed the first layer of the multilayer perceptron of each elementary neural network; • b) implementation of each elementary neural network to obtain an elementary analysis result via the output layer of the multilayer perceptron of each elementary neural network; the method being characterized in that: - at least one connection matrix (W n-l n ) of the multilayer perceptron of each elementary neural network is a sparse matrix, containing at least 50% of nuisance terms or whose value is at least ten times less than at least one other term in the matrix; - the multilayer perceptron of each elementary neural network comprises, respectively, between two successive layers of the same respective ranks, different sparse connection matrices.
2. Method according to claim 1, wherein each elementary neural network comprises an extraction block (21, 22, 23), programmed to extract features from the input data, the features thus extracted forming the first layer of the multilayer perceptron (31, 32, 33) of said elementary neural network.
3. A method according to claim 2, wherein the extraction block comprises different successive convolution layers, each convolution layer resulting from the application of a convolution filter to the previous convolution layer.
4. A method according to any one of the preceding claims, wherein each multilayer perceptron has the same number of layers and the same number of nodes per layer.
5. A method according to any one of the preceding claims, wherein each multilayer perceptron comprises at least one intermediate layer, between the first layer and the output layer.
6. A method according to any one of the preceding claims, wherein the two successive rank layers of at least one multilayer perceptron are such that: - the nodes of the downstream layer (x n p ) are segmented into different groups (X n q ); the process being such that step b) comprises, for the multilayer perceptron, the following substeps: - bi) from the connection signals (s n-l p / p ) resulting from the nodes of the upstream layer, connected to the same group of the downstream layer, selection of nodes, belonging to said group, at least one node of said group not being selected; - b-ii) activation of the selected nodes, at least one node of the group not being activated.
7. A method according to claim 6, wherein: - at least one multilayer perceptron comprises several pairs consisting of two successive layers, each pair comprising an upstream layer and a downstream layer, with a connection matrix defined between the upstream and downstream layers; - each connection matrix (W n-l n ) contains at least 50% of nuisance terms or terms whose value is at least ten times lower than at least one other term in said matrix; - substeps bi) and b-ii) are implemented for each pair of layers.
8. A method according to any one of claims 6 or 7, wherein substep bi) comprises, for each group of a downstream layer of at least one multilayer perceptron: - calculation of an activation signal (s n p ) for each node (x n p ) of the group (X n q ), depending on connection signals (s n-l p > p) emitted, towards said node, by each node of the upstream layer connected to said node; - normalization of the activation signals calculated for each node of the group so that the normalized signals (s^ p ) are between a predetermined minimum value (0) and a predetermined maximum value (1); - selection of nodes in the group based on normalized activation signals (s^ p ).
9. A method according to claim 8, wherein substep bi) comprises: - taking into account a selection function ( ), the selection function being an increasing or strictly increasing function; - application of the selection function ( ) to each normalized activation signal, so as to calculate for each normalized activation signal, a comparison signal ( / (Sn, p )); - selection of the nodes of the group based on the comparison signal calculated for each node.
10. Method according to claim 9, wherein the selection function comprises a sigmoid or piecewise linear function.
11. A method according to any one of the preceding claims, wherein at least one or each connection matrix of a multilayer perceptron comprises at least 90% or at least 95% nuisance terms or at least 10 times less than at least one other term of said matrix.
12. A method according to any one of the preceding claims, wherein for at least one multilayer perceptron, each connection signal between two nodes of two successive layers is positive. 27 13. A method according to any one of the preceding claims, comprising a step c) of combining the elementary analysis results, resulting from each elementary neural network, to form an analysis result.
14. Method according to claim 13, comprising, prior to step a), - measurement of a physical quantity (11) by a detector (10); - formation, by the detector, of an input signal (S) from the measured physical quantity; - formation of the input data from the input signal; the result of the analysis being a characterization of the measured physical quantity.
15. A method according to claim 13, comprising, prior to step a): - taking into account data stored in a database, the stored data forming the input signal; - formation of the input data using the input signal; the result of the analysis being a characterization of the stored data.
16. Measurement system, comprising: - a detector (10), configured to measure a physical quantity (11) and to establish an input signal (S) from the measured physical quantity; - a processing unit (12), programmed to implement the process according to any one of claims 1 to 15, from an input data formed using the input signal.
17. Measurement system according to claim 16, wherein the detector is an image sensor or a sound sensor or a magnetic sensor.
18. Computer-readable data carrier, or configured to be connected to a computer, or integrated circuit, comprising instructions for implementing a method according to any one of claims 1 to 15.
19. A computer program comprising instructions which, when the program is executed by a computer, lead to the implementation of a neural network, configured to analyze input data, the neural network comprising several elementary neural networks, each elementary neural network comprising a multilayer perceptron extending between: 28 - a first layer (Li, L2, L3); - an output layer (OUT1, OUT2, OUT3), the output layer containing a result of elementary analysis, by the elementary neural network, of the numerical data; each multilayer perceptron being such that: - each layer is assigned a rank (n), the rank of a layer being higher the closer the layer is to the output layer; - at least two layers of successive ranks, forming an upstream layer and a downstream layer, contain nodes, nodes of both layers being connected, each node of the upstream layer (x n-x p ') addressing a connection signal (s n-1 p > p ) to at least one node of the downstream layer (x n p ) to which it is connected, the connection of the nodes of the upstream and downstream layers being defined by a connection matrix (W n-l n ), each term of the connection matrix (w p pl) being associated with a node of the upstream layer and a node of the downstream layer, and quantifying a contribution of the node of the upstream layer for the node of the downstream layer; the program being characterized in that; - at least one connection matrix (W n-l n ) of each multilayer perceptron is a sparse matrix, containing at least 50% nuisance terms or whose value is at least ten times less than at least one other term in the matrix; - The multilayer perceptrons respectively comprise, between two successive layers of the same respective ranks, different sparse connection matrices. Computer program according to claim 19, wherein each multilayer perceptron comprises at least one intermediate layer, between the input layer and the output layer. Computer program according to claim 19 or claim 20, wherein - each multilayer perceptron comprises several pairs consisting of two successive layers, each pair comprising an upstream layer and a downstream layer, a connection matrix being defined between the upstream layer and the downstream layer; - each connection matrix (W n-l n ) contains at least 50% of nuisance terms or terms whose value is at least ten times less than at least one other term in said matrix. 29 Computer program according to any one of claims 19 to 21, comprising instructions for combining analysis results resulting from each elementary neural network.
