Method for validating the predictions of a supervised model for multivariate quantitative analysis of spectral data
A multivariate, multi-output model using deep learning architectures addresses the reliability issues in spectroscopic techniques by predicting chemical species concentrations and spectral line intensities, enhancing the accuracy and reliability of concentration measurements.
Patent Information
- Authority / Receiving Office
- FR · FR
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2022-06-21
- Publication Date
- 2026-03-13
AI Technical Summary
Existing spectroscopic techniques, such as LIBS, struggle with validating the reliability of predictions due to uncertainties in the calibration models, especially at low concentrations, and lack a method to verify that the training data represents the actual measurement conditions, leading to unreliable predictions.
A multivariate, multi-output quantification model using deep learning architectures that predict both the concentration of chemical species and additional measurable quantities, such as spectral line intensities, to provide a confidence measure for the primary predictions.
The model enhances the reliability and accuracy of concentration measurements by providing a confidence indicator, allowing for the identification of anomalous predictions and reducing uncertainties, even under varying operating conditions.
Smart Images

Figure 00000021_0000 
Figure 00000021_0001 
Figure 00000022_0000
Abstract
Description
Title of the invention: Method for validating the predictions of a supervised model for multivariate quantitative analysis of spectral data
[0001] The invention relates to the field of quantitative analysis, for example, the determination of the concentration of chemical species contained in a sample, and supervised qualitative analysis, for example, the classification of samples, from spectral data, that is to say, data that exhibit a plurality of intensity values in different wavelength channels or spectral bands. The data can be both multi- or hyperspectral data, where the number of spectral bands varies from a few dozen to hundreds, and data from emission or absorption spectra of a chemical species, containing thousands of wavelength channels.
[0002] The invention relates to a novel multivariate analysis method for the quantitative analysis of chemical species contained in a sample from spectral data acquired by a spectroscopic technique. One objective of the invention concerns determining a confidence measure for the predictions of the model used for quantification, using a multioutput algorithm. More specifically, within the framework of the invention, the model provides both the primary prediction, for example, the concentration value of a species from the spectrum, and secondary outputs on tasks related to this prediction, hence the need for a multioutput system. These secondary predictions are then used to measure the confidence in the primary prediction.In other words, unlike a classical quantification approach that only predicts the main output, for example the concentration of the species of interest, the invention aims to simultaneously predict directly verifiable quantities (i.e., present in the experimental data both during training and in inference) in the experimental data and thus ensure the reliability of the predicted concentration.
[0003] A possible application of the invention relates to the determination of the concentration of chemical elements and an indicator of the reliability of predictions from spectral data, for example, acquired using a laser-induced breakdown spectroscopy (LIBS) technique. The invention is not limited to this particular technique; it can be applied to any type of spectroscopy technique that produces multi- or hyperspectral data or spectral data of emission or absorption of chemical species.
[0004] Specifically, LIBS technology enables material analysis by focusing a laser beam onto the surface of a sample. The plasma emission resulting from this focusing is collected by a spectrometer. The data acquired by this method are spectral data which correspond, for each focal point on the surface, to an emission spectrum comprising atomic and molecular lines characteristic of the elemental chemical composition of the sample. The intensity of these lines increases non-trivially with the concentration of the chemical elements present in the sample. Calibration is performed using several standards, i.e., samples whose species concentrations are previously known, to obtain a model that allows the spectral signatures to be linked to the concentration of the species.This model can then be used to predict the unknown concentration of a species from a spectrum. Once the model is defined, methods exist for defining a measure of the uncertainty around the predictions made by the model (for example, confidence intervals). However, assessing the nature of uncertainties during the inference phase is complicated: it may be impossible or very difficult to determine whether the uncertainties are entirely due to statistical fluctuations, or whether the standards used to define the quantitative model are truly representative of the samples to be measured. Furthermore, without specific weighting of the data, calibration is characterized by relative uncertainties that increase as the concentration of the species in the standards decreases, up to the limit of detection. In fact, a level of 100% relative uncertainty is sometimes used as the definition of the limit of detection.In general, the limitations of the LIBS technique are typical of any spectroscopic technique: validation of the reliability of predictions is always problematic, and relative uncertainties close to the detection limit are by definition significant.
[0005] The invention aims to overcome these limitations by proposing: • A multivariate, multioutput quantification model to obtain both predictions of species concentrations and values usable for determining their confidence. To this end, the invention introduces a technique for validating the predictions of quantitative models and for establishing a confidence measure of the predictions or for identifying the presence of anomalies (i.e., predictions that do not have a good level of confidence). • A multivariate analysis model that reduces uncertainties in determining species concentration to obtain more reliable and accurate measurements within the scope of the invention.
[0006] The invention aims to solve problems related to determining the concentration of species from spectral data that can be produced by LIBS spectroscopy or by other spectroscopic methods (e.g., multi- or hy- imaging). (perspectral). In general, this type of data is characterized by spectra specific to the species present in a sample. Quantitative analysis of spectral signatures (for example, using the intensity of emission or absorption lines of chemical elements) ultimately allows the concentration of the species to be determined. In this context, several problems can arise.
[0007] Conventional calibration methods provide a prediction of the concentration of a species in a sample. Since the model is defined using known standards, there is no way to verify that the standards used to define the model represent the samples to be measured, even though this is necessarily an assumption to be made in order to use the model. That is to say, it is not possible to verify that the samples to be measured are outside the training distribution, and, consequently, to verify the generalization of the learning model. For example, the experimental conditions of a measurement when using the model may not correspond to the experimental conditions when training the model because various external factors may occur related to the instrumentation, environmental conditions, or the sample itself.
[0008] The trained model always provides a prediction based on a measurement, without verifying that the data used for training are actually representative of the real data. Therefore, there is a need for a tool to verify the reliability of the predictions when the model's operating conditions vary slightly from the training conditions, or conversely, to ensure that the model's operating conditions have not changed.
[0009] Currently, the quantification of chemical species from spectral data is carried out using various univariate methods, which partially take into account the information contained in the spectra, or multivariate methods, which fully or almost fully exploit the content of the spectra. An example of such methods is given in reference [1]. Among all the variables available in a spectrum (wavelength channels or spectral bands), univariate methods use the information contained in one variable, generally the intensity of an emission line (or the sum of the intensities of neighboring channels) at a given wavelength, or of a spectral band, associated with the species to be analyzed.This information can then be used to obtain a calibration function (e.g., a straight line) that links the concentration of the species in question to the signal intensity for each of the standards, for which the concentration of the species is known. Mathematically, this procedure defines a relationship between concentration and spectral intensity. The calibration function can then be used to obtain predictions of the concentration of a species in an unknown sample by inverting this relationship, for example, by means of an interpolation such as described in [reference]. reference [2].
[0010] Other multivariate methods have also been studied, notably using algorithms based on principal component analysis and multilinear regression (see reference [3]). Neural networks (described in [4]) have already been introduced in LIBS spectroscopy, either by using the intensity of certain lines selected a priori (as proposed in [5]), or by coupling principal component analysis and neural networks for multioutput regression (as proposed in [6]), or through the exploitation of information contained in time-resolved spectra (as proposed in [7]). The result of the analysis is always the prediction of the concentration of a species (or several species in [6]) as a function of several variables (hence the expression "multivariate analysis").
[0011] In recent years, deep learning techniques, given their high extrapolation capabilities, have become relevant techniques also in the case of sample classification (see, for example, [8], [9]): these analyses use high-performance algorithms (such as convolutional neural networks) to predict the category of chemical species contained in the samples. Although the architectures achieve good classification results, the confidence level of the predictions cannot be directly established by the model. As the authors of references
[10] ,
[11] point out, classical measures such as the mean squared error can be very misleading depending on the concentration level: the authors therefore suggest using different measures for each subpopulation of data in order to better assess the model's performance.Other approaches have also been proposed to verify the robustness of a model, such as randomizing the model's reference values in
[12] : the authors present a technique to test whether a given prediction of the model is obtained by chance.
[0012] In general, known analyses focus on predicting a single variable (concentration) from input data of different dimensions [5],[7]. However, there are works implementing multioutput models, for example, for the simultaneous prediction of the concentrations of several chemical elements using the PLS2 technique in
[13] . The first example of multioutput regression using neural networks was presented in [6]. These multioutput algorithms have been used to obtain more information at the same time (in particular, the concentrations of several elements instead of just one), while using the same input data.
[0013] However, state-of-the-art techniques do not allow for the determination of a reliability indicator for the concentration predictions provided by the different proposed learning models.
[0014] Unlike prior art solutions, the invention deals with the validation of predictions, rather than that of the model. The invention relates to a technique for associating a confidence measure of predictions using information available at any time, even in unknown data, and thus directly comparing them to a ground truth value. In the invention, this is achieved by introducing multi-output models, and in particular by introducing deep learning architectures capable of efficiently processing the information contained in the data.
[0015] The invention relates to a method for validating predictions from a multi-output model. That is to say, the secondary outputs are experimentally measurable to allow evaluation of the relevance of the main output, assumed to be unknown during the inference.
[0016] The proposed invention includes an additional step compared to prior art methods. Multi-output algorithms are used to predict secondary outputs that are verifiable in experimental data, in order to ensure a degree of confidence in the predictions. This is not possible when only the concentration (or concentrations) of the chemical species is predicted.
[0017] The invention proposes using trained algorithms to predict both the concentration of a species from spectral data and to provide secondary outputs predicting additional quantities, such as the emission or absorption intensity of one or more spectral lines or bands characteristic of the analyzed species. This additional data must be measurable and experimentally verifiable during inference. Furthermore, the prediction of these values must be sufficiently complex for the model, compared to the main prediction. That is, the prediction must be performed on a non-trivial task (whose complexity is comparable to that of the main prediction) using the input data to avoid imbalance during the learning process. For example, it is possible to use the intensity of spectral lines or bands integrated on channels of neighboring wavelengths.Conversely, it is not recommended to simply use the intensity of spectral lines in the spectra, as this would be a trivial task to solve (it is a simple component of the input data). This type of information allows for additional information to be obtained during the inference phase (hence the use of multi-output algorithms) which can be related to the real data.
[0018] The invention makes it possible to provide, for any concentration prediction, a reliability indicator of the prediction which makes it possible, for example, to discard certain measurements subject to randomness which will make the prediction provided by the model on these measurements unreliable.
[0019] The invention relates to a computer-implemented learning method automatic of a multioutput prediction model configured to jointly determine, from a set of spectral data characteristic of a sample, at least one primary prediction of at least one first physical quantity characterizing a given species in the sample and at least one secondary prediction of at least one second physical quantity characterizing said species, the multioutput prediction model being trained from a set of annotated spectral data.
[0020] According to a particular aspect of the invention, the multi-output prediction model is a multi-task neural network and is implemented by means of a first common learning engine configured to extract from spectral data sets received as input, representations common to the different tasks to be solved and several learning engines specific to each task to be solved, each receiving as input said common representations and delivering as output a prediction corresponding to the task to be solved.
[0021] According to a particular aspect of the invention, the common learning engine is a convolutional neural network and the specific neural networks are convolutional neural networks supplemented by fully connected neural layers.
[0022] According to a particular aspect of the invention, said species is a chemical species, the primary prediction is a concentration value of the chemical species and the secondary prediction is an intensity value of a spectral line for at least one given wavelength or at least a band of wavelengths of a given width.
[0023] The invention also relates to a computer-implemented prediction model, obtained according to the machine learning process according to the invention.
[0024] The invention further relates to a method, implemented by computer, for the quantitative analysis of spectral data comprising the implementation of the prediction model according to the invention to determine, from a spectrum measured on a sample, at least one main prediction of at least one first physical quantity characterizing a given species in the sample and at least one secondary prediction of at least one second physical quantity characterizing said species, the method further comprising a step of calculating a reliability indicator of at least one main prediction from an indicator of the difference between at least one secondary prediction and a value of the corresponding second physical quantity measured on the spectrum.
[0025] According to a particular aspect of the invention, the reliability indicator is equal to the relative error between the intensity value predicted via the implementation of the prediction model and the corresponding intensity value measured on the spectrum.
[0026] According to a particular aspect of the invention, the reliability indicator is equal to the deviation, in absolute value, between the intensity value predicted via the implementation of the prediction model and the corresponding intensity value measured on the spectrum divided by the standard deviation of this deviation.
[0027] In one embodiment, the quantitative analysis method according to the invention further includes the implementation of a classification model configured to classify predictions of chemical species concentration into two classes corresponding to normal values and anomalies, from predictions of spectral line intensity values or reliability indicators.
[0028] According to a particular aspect of the invention, the measured spectrum is acquired by means of a laser-induced plasma atomic emission spectroscopy method.
[0029] The invention further relates to a computer program comprising instructions for the execution of a process according to the invention, when the program is executed by a processor, and to a processor-readable recording medium on which is recorded a program comprising instructions for the execution of a process according to the invention, when the program is executed by a processor.
[0030] Other features and advantages of the present invention will become more apparent from the following description in relation to the following accompanying drawings.
[0031] [Fig-1] represents an example of spectral data characterizing a sample containing different chemical species,
[0032] [Fig.2] represents a diagram illustrating the learning and use of a model of multi-output prediction according to the invention,
[0033] [Fig.3] represents a diagram of an example implementation of the model of prediction according to the invention by means of one or more convolutional neural networks,
[0034] [Fig.4] represents an example table of learning and analysis results secondary exits.
[0035] The following description of the invention is made in the context of using LIBS technology, but the invention is not limited to this technique and applies more generally to any type of spectral, multi-spectral or hyper-spectral data.
[0036] LIBS technology enables material analysis by laser ablation and spectroscopy. The data acquired via this technique are spectral data which correspond, for each point in an area, to an emission spectrum comprising atomic and molecular lines characteristic of the elemental chemical composition of the sample.
[0037] LIBS spectral data are obtained by focusing a laser beam onto a point on a surface to be analyzed. The plasma emission resulting from this focusing is collected and processed by spectroscopy to obtain a spectrum of atomic lines (or molecular emission bands. The process is iterated for each point in the area to be analyzed.
[0038] Figure 1 shows, by way of illustration, an example of an atomic line spectrum obtained for a sample having a certain chemical composition. In Figure 1, the spectral signatures of certain chemical elements (Ca, Al) have been identified, which correspond to atomic lines in channels of given wavelengths.
[0039] An objective of the invention is to determine a prediction model capable of estimating a concentration of a chemical element from an automatic analysis of a spectrum such as that of [Fig.1] and to further provide an indicator of the reliability of the estimate provided.
[0040] Figure 2 represents, in a diagram, a method of learning and using a prediction model according to the invention.
[0041] The method consists, in a learning phase, of determining a prediction model 231 configured to determine, from spectra measured on given samples, a concentration of one or more chemical species on the one hand and a prediction of the intensity of one or more atomic lines (or molecular bands) in the spectrum on the other hand.
[0042] The method then consists, in a usage phase, of using the trained model to determine these predictions on new measured spectral data. The secondary outputs of the model are used to determine a reliability indicator for the predictions.
[0043] More specifically, during the learning phase, the method uses spectral input data 210 in the form of several sets of spectra obtained by LIBS spectroscopy in order to characterize a given sample. The spectral data 210 are labeled, that is to say, for example in the case of quantitative analysis, the concentrations of the different chemical elements to be quantified in the sample are known.
[0044] In other words, the input data 210 consists of a set of pairs, each associating a spectrum with a concentration of one or more chemical elements in a sample of a given type. A sample is characterized, for example, by a type of material and a concentration of certain chemical elements in that material.
[0045] The input data 210 are separated into a first subset of training data 221 and a second subset of evaluation data 222. The model 231 is trained from the training data 221 and then it is optimized on the evaluation data 222 during an optimization cycle 232 to determine the best hyperparameters of the model 231.
[0046] The choice of the percentage of achievements used for learning 221 may depend on the computing medium and the type of data to maximize capacity training architectures. For example, for a dataset containing 100,000 realizations, typically 80% can be used for training, but for datasets with millions of realizations, the percentage can increase, unless the computing resources do not allow it. The training data 221 is used directly for calculating the model parameters, while the evaluation data 222 is used to evaluate the predictions and optimize the model 231.
[0047] The prediction model 231 is a multivariate and multioutput statistical model. It receives as input the entire spectra as input data and is trained to predict on the one hand a first set of primary outputs 251 corresponding to one or more predictions of the concentration of one or more chemical species and on the other hand a second set of secondary outputs 252 corresponding to one or more predictions of the intensity values of atomic lines in certain wavelength ranges.
[0048] Once the model 231 has been trained, it can be applied to a new set of spectral data 240. The first set of predictions 251 is used to determine the concentrations of the chemical species in the sample on which the input spectrum 240 was measured. The second set of predictions 252 is processed to determine a confidence measure of the first predictions 251.
[0049] The confidence measure is based on the interpretation in terms of probability (for example, using the probability distribution of a given estimator, presented below) or relative error of the predictions of the secondary outputs 252 of the model 231. These outputs must predict quantities, related to the prediction of species concentration, present in the unknown real data 240, so that a comparison between real and predicted values makes it possible to quantify the reliability of the learning and the predictions. Since the secondary outputs 252 were trained from the same representation of the input data 210, the secondary predictions 252 are related to the predictions 251 of species concentration and they share at least a subset of the model weights (so-called "hard parameter sharing" implementations).We can then assume that a reliable result on secondary outputs can lead to equally reliable predictions on concentration, i.e., that the generalizability of the model for the main output and secondary outputs is comparable.
[0050] The input data 210 used for model training are representative of the standard samples used to define the model: several spectra can represent the same standard. This data can be preprocessed to reduce experimental fluctuations in spectral intensity values. For example, in one embodiment of the invention, each spectrum can be normalized by The intensity of a given line or band, or preprocessed by a standard normal variable (SNV) or any other preprocessing method. In another embodiment, for each standard, the average spectral intensity value of the spectrum at a given wavelength can be used to determine outliers. For example, before defining the model, spectra whose intensity value at a given wavelength is outside an arbitrary interval (e.g., outside the 5th and 95th percentiles, or the 1st and 99th percentiles) can be rejected. The interval depends on the measurement conditions and the number of realizations for each standard: if this number is high, a larger interval can be chosen (e.g., the 1st and 99th percentiles). In another embodiment, these two types of preprocessing can be combined. The real data used during the model application phase must be preprocessed in the same way as the input data, but it is possible to leave outliers in the real data unknown. Indeed, if the trained model has a high generalization capacity, outliers will be correctly handled during the inference phase. The goal is to learn the prediction task from a reliable representation of the standard: a good model must be able to extrapolate the necessary information in case the samples have defects.
[0051] The model can be evaluated using evaluation data 222 by directly using each spectrum as input data. The average of the predictions can then be calculated and a deviation associated with the predictions to better evaluate the performance of the algorithm (and to train the algorithm on more complex cases where noise can produce significant differences between spectra, even if they come from the same standard).
[0052] In one embodiment of the invention, to reduce the impact of noise during the inference phase, the average spectrum of the real data 240 can be calculated beforehand and used as input data, representative of the sample.
[0053] In one embodiment of the invention, the primary outputs 251 consist of the concentrations of the analyzed chemical species. The secondary outputs 252 of the model contain the intensities of emission (or absorption) lines (or molecular bands) associated with the same chemical species in the case of spectral data, or the intensity measured in a spectral band in the case of multi- or hyperspectral data. In univariate models, the intensities of spectral lines or bands are used for concentration prediction. Thus, including these two elements in the secondary outputs of the model makes it possible to obtain secondary predictions corresponding to physical quantities related to the concentrations of chemical species.
[0054] In one embodiment of the invention, the quantitative analysis method includes a step of calculating a reliability indicator of the primary outputs of the model from the secondary outputs of the model. For example, the reliability indicator corresponds to a measure of the difference between the predicted intensity output of the model and the actual intensity directly measured on the input data 240. For example, we can calculate the Student's t-value of the difference between the two values, using the formula i = | / predicted 'AeelleI / °ù ^Predicted is the average intensity 252 of the sample predicted by the model 231,I actual is the actual average intensity measured on the input data 240 and ° is the standard deviation of the difference (i.e., the square root of the quadratic sum of the differences between the predicted and actual intensities).Finally, we can choose the confidence level, as is customary for statistical analyses (for example, 95% or 99%), to determine a threshold, based on the number of realizations for each sample (the degrees of freedom). If the prediction leads to a t-value greater than 0.05, we deduce that the prediction of concentration 251 is biased, which allows us to reject this prediction based on a probability interpretation (i.e., we reject the hypothesis that the difference between the prediction and the true value is solely due to statistical fluctuations). If the prediction leads to a t-value greater than 0.05, the available data do not allow us to reject prediction 251, so the concentration prediction, linked to the intensity prediction, can be accepted with a confidence level quantifiable by the threshold.
[0055] As an alternative, a simple threshold can be used for the relative error between the true value of the intensity and its predicted value: r = | / predicted- / actual I / / actual: values lower than the chosen value cannot be rejected, as their distance from the true value is mainly due to statistical fluctuations. This estimator is independent of the standard deviation of the emission intensity and can be used as a first statistical test, directly applied to the intensity values: if the prediction fails this test, then we can reject it without risk, as the error is too large. The Student's t-test can then be used as a refinement of the procedure, as it also depends on the variance of the data.
[0056] The invention thus proposes a method based on a multi-output machine learning algorithm that allows the use of information explicitly contained in the experimental data (the intensities of the emission lines in the spectrum), and therefore verifiable (by direct measurement on the spectrum), to obtain an interpretation of concentration predictions in terms of probability. The invention thus proposes a method for quantitatively characterizing the confidence of these predictions using the error on the secondary outputs. In particular, these predictions must have common elements with verifiable elements. Verifiable in the actual data (240) to allow for comparison. The rejection (or non-rejection) of the results can then be done using statistical tests.
[0057] In one embodiment of the invention, since the confidence level of the predictions is quantitative, the secondary predictions or the results of the statistical tests can be coupled to a classification algorithm for determining anomalies in the analyzed samples. That is, the difference between the predicted and actual values of the secondary outputs can be used as input data for a classification algorithm trained to recognize normal values and manufacturing, compositional, or measurement anomalies. In another embodiment, an arbitrary threshold on the t-values or the relative errors calculated from the predictions can be used directly to determine the presence of an anomaly.
[0058] In one embodiment of the invention, the prediction model 231 may be, for example, a multilinear model (such as the PLS2 model described in reference
[13] ), or a decision tree (or its ensemble learning variants such as random forests or gradient boosting), or a support vector machine model. The fundamental point of the model is the possibility of using a common representation of the input data to obtain multioutput predictions simultaneously, that is, an approximation of the composition of the function f°g, where g : RA -* A c R7 f : Rw- is the dimension of the spectra, L is the dimension of the common representation and M is the number of predictions output by the model, such that M > 2, using the same set of parameters for the model definition. In this way, the model first calculates a new representation of the input data (the spectra), which can then be used to generate the predictions.
[0059] In general, to train the model 231, the definition of a learning function (or loss function) \ for the output i of the model 'Actual' V' 'predicted) is necessary (y (A and yW.,, represent the actual and predicted values of output i • predicted real This allows us to define the training objective and measure the difference between predicted and actual values (in supervised learning, the actual values are known during training). Thus, there are loss functions typically dedicated to regression learning, unlike loss functions typically used for classification tasks. In various embodiments of the invention, a mean squared error function or a mean absolute error function can be used. In another embodiment of the invention, these functions can be combined into a so-called "Huber loss" function as described in reference
[14] , defined by:
[0060]
[0061]
[0062] Once the loss function t U chosen for output i of the model,
[0063]
[0064]
[0065] y) =l(yy)2®(Lv-51 -s) +^(|v-$|-f )©(ô-where <5 is part of the hyperparameters to be optimized during the optimization cycle 232 of the model and 0 is the Heaviside function which takes the value 1 for all strictly positive real numbers and the value 0 for strictly negative real numbers. This function allows us to directly take into account the problems related to outliers present in the datasets. y(0 - actual and predicted The overall loss function of the model is defined as a linear combination of the loss functions specific to each output: r iv v .t / \, where N is the number of Lglobalet real' predicted, ^2) — )predicted / outputs of the model, v — (v(0 1 is the set of real values sp- real U real islands J^^ j^ specific to each output, y _ [ (f) I is the set of predictions 1 Predict - | >predict J (} of the model outputs, and Q_1 "re R) is the set of coefficients of the 1 * ' te {L. JV} linear combination of loss functions. The coefficients represent hyperparameters of model 231. In another embodiment of the invention, model 231 is implemented using one or more neural networks. An example of the architecture of model 231 is shown in [Fig. 3]. In one embodiment, the neural networks constituting the model 231 are convolutional neural networks. A convolutional neural network is implemented via a set of convolutions by vectors extending in the direction of the wavelength channels of the spectra. The input data are scanned using several convolution filters to obtain both the primary predictions 251 and the secondary predictions 252 from a multioutput model. These neural networks can be deep, with several hidden layers, connecting convolution and activation operations, with their trainable weights. The advantage of this type of algorithm is the direct use of information contained in spectra: by using a convolution operation, one can maintain relationships between channels of neighboring wavelengths and use the physical information contained in the profiles of spectral lines (or spectral bands), such as emission or absorption intensity and profile width. More generally, other types of neural network architectures, such as fully connected neural networks (based on multilayer perceptrons as described in
[16] ) or graph networks as described in
[17] , can also be used: a A sufficient condition of the invention is the ability to form multi-output architectures, without specific restrictions on the type of neural network.
[0066] In the example in [Fig. 3], a multitask network (as described in reference
[20] ) is represented. The difference between a multitask network and a multioutput network lies in the processing of data representations in the hidden layers: a multioutput network uses a common representation without further transformations, but a multitask network allows the use of a common representation and then specialized branches for specific tasks. In this sense, a multitask network is a multioutput network, but the reverse is not true. The use of a multitask architecture makes it possible to resolve many problems related to overfitting training data and to limit the impact of outliers on predictions (as discussed, for example, in reference
[18] ).
[0067] The algorithms used can be based on multitasking deep convolutional neural networks. This gives the models the ability to directly analyze spectra, formulating a new common representation of the data, and to predict with high accuracy either the concentrations of the species of interest or, for example, the intensity of spectral emissions associated with the species. These predictions can then be interpreted by probability models by studying the difference between the predicted and actual values.
[0068] The input data 310 of the model have already been described: they are spectra acquired by a spectroscopic technique, possibly preprocessed. The first block of the model 320 is represented by a neural network comprising one-dimensional convolutional layers. The task of this first block is to learn a common representation of the spectra using the same set of weights and parameters ("hard parameter sharing"). Several examples of implementations of multitasking neural networks are given in reference
[19] . It aims to transform the input data into a representation capable of providing predictions for all tasks simultaneously.
[0069] The outputs / tasks of model 341-343, including the concentrations of the analyzed species and the values used for confidence determination, are calculated using other specific convolutional networks 331-333: each network allows for further transformations to be calculated from the common representation and yields a specific result. For example, the model calculates the secondary outputs (the intensities of the lines present in the spectra) starting from this common representation and then processing it in specific branches. Thus, the model does not simply "read" the intensity from the spectra, but is obliged to first find a suitable representation of the input data and then process this information. This type of network provides a significant improvement over other networks traditional.
[0070] The convolutional neural networks 331-333 take as input a vector of common features extracted from the input data via the first neural network 320, and produce as output a prediction in the form of a scalar. To this end, each convolutional neural network 331-333 includes a final layer fully connected to an output.
[0071] An example of a possible architecture for the multitasking model of [Fig.3] is defined by: - a first neural network of 320 formed by 3 convolutional layers with respectively: i. 64, 40 and 16 filters, ii. Core size: 5, 3 and 2 wavelength channels, iii. not: 3, 2 and 1 wavelength channels, - neural networks to solve specific tasks 331 - 333 having the same hyperparameters as the first neural network 320 and supplemented by two fully connected layers of 16 and 1 neurons respectively (each network 331 - 333 predicts a real number).
[0072] The activation function after each hidden layer is, for example, of the "LeakyReLU" type (with a slope of 0.03). The learning rate is, for example, set at 10⁻³.
[0073] Figure 4 shows a table displaying the results of the calibration of iron (Fe) concentration in a nickel (Ni) matrix and a zirconium (Zr) matrix. Twenty-five laser shots were recorded for each sample, and each spectrum is composed of 68,000 wavelength channels. The secondary outputs are the intensity values of the Fe emission lines at 373.49 nm, 358.12 nm, 373.71 nm, 374.56 nm, 382.04 nm, 385.99 nm, 404.58 nm, and 438.35 nm. The training consists solely of spectra of the Ni standards (the results are given on an independent test set). As shown in the table, the multivariate architecture (MVA), based on multitask learning, is capable of providing more accurate predictions than the classical univariate method (UVA) on matrices of the same nature as those used for learning.The multitasking architecture is also capable of providing a measure of the reliability of predictions on Ni matrices by using a confidence measure on the predicted intensities for the emission lines (in this limiting case, v = 2.485, where the confidence level is ε = 0.99 and the degrees of freedom are v = 25). The table also shows the generalization capabilities on a Zr matrix, which differs in nature from the training samples: the neural network is able to significantly reduce the error in the extrapolation regime. However, the multitasking architecture allows for... To measure the reliability of the predictions: the relative errors of the emission line intensities (and the z-values) in the Zr samples are indeed very high. In this case, the Zr matrix was recognized as anomalous compared to the training distribution.
[0074] The invention makes it possible to quantify the confidence in the predicted concentration using probability models based on a set of predictions from a multi-output model. The model can predict both the concentration of species and other quantities (for example, the intensity of the emission lines of a chemical species). This makes it possible to have both unknown quantities (for example, the concentrations of species) and secondary quantities that can be directly verified in the spectra, and which are used to determine the confidence level of the quantitative analysis.
[0075] The invention makes it possible to reduce uncertainties by using efficient algorithms capable of directly and fully automatically processing the spectral signatures of the species contained in the entire spectra.
[0076] The steps of the invention can be implemented as a computer program comprising instructions for its execution. The computer program can be stored on a storage medium readable by a processor.
[0077] The reference to a computer program that, when executed, performs any of the functions described above, is not limited to an application program running on a single host computer. Rather, the terms computer program and software are used here in a general sense to refer to any type of computer code (for example, application software, firmware, microcode, or any other form of computer instruction) that can be used to program one or more processors to implement aspects of the techniques described herein. The computing means or resources may, in particular, be distributed ("cloud computing"), possibly using peer-to-peer technologies.The software code can be executed on any suitable processor (e.g., a microprocessor) or processor core, or a set of processors, whether located in a single computing device or distributed across multiple computing devices (e.g., as potentially accessible within the device's environment). The executable code for each program, enabling the programmable device to implement the processes according to the invention, can be stored, for example, on the hard drive or in read-only memory. Generally, the program(s) can be loaded into one of the device's storage means before execution. The central processing unit can command and direct the execution of the instructions or portions of software code of the program(s) according to the invention. the invention, instructions which are stored in the hard drive or in read-only memory or in the other aforementioned storage elements. References
[0078] [1] V. Costa et al., “Calibration Strategies Applied to Laser-Induced Breakdown Spectroscopy: A Critical Review of Advances and Challenges,” J. Braz. Chem. Soc., 2021, doi: 10.21577 / 0103-5053.20200175.
[0079] [2] V. Motto-Ros, S. Moncayo, F. Trichard, and F. Pelascini, “Investigation of signal extraction in the frame of laser induced breakdown spectroscopy imaging,” Spectrochim. Acta Part B At. Spectrosc., vol. 155, pp. 127-133, 2019, doi: 10.1016 / j.sab.2019.04.004.
[0080] [3] P. Yaroshchyk, D. L. Death, and S. J. Spencer, “Comparison of principal components régression, partial least squares régression, multi-block partial least squares régression, and serial partial least squares régression algorithms for the analysis of Fe in iron ore using LIBS,” J Anal Spectrom, vol. 27, no. 1, pp. 92-98, 2012, doi: 10.1039 / C1JA10164A.
[0081] [4] I. Goodfellow, Y. Bengio, and A. Courville, Deep Learning. MIT Press, 2016.
[0082] [5] J. El Haddad et al., “Artificial neural network for on-site quantitative analysis of soils using laser induced breakdown spectroscopy,” Spectrochim. Acta Part B At. Spectrosc., vol. 79-80, pp. 51-57, 2013, doi: 10.1016 / j.sab.2012.11.007.
[0083] [6] L. Narlagiri and V. R. Soma, “Shnultaneous quantification of Au and Ag com position from Au-Ag bi-metallic LIBS spectra combined with shallow neural network model for multi-output régression,” Appl. Phys. B, vol. 127, no. 9, p. 135, 2021, doi: 10.1007 / s00340-021-07681-y.
[0084] [7] C. Lu, B. Wang, X. Jiang, J. Zhang, K. Niu, and Y. Yuan, “Détection of K in soil using time-resolved laser-induced breakdown spectroscopy based on convolutional neural networks,” Plasma Sci. Technol., vol. 21, no. 3, p. 34014, 2019, doi: 10.1088 / 2058-6272 / aaef6e.
[0085] [8] T. Chen, S. Kornblith, M. Norouzi, and G. Hinton, “A simple framework for contrastive learning of visual représentations,” in International conférence on machine learning, 2020, pp. 1597-1607.
[0086] [9] T. Chen et al., “Deep learning with laser-induced breakdown spectroscopy (LIBS) for the classification of rocks based on elemental imaging,” Appl. Geochem., vol. 136, p. 105135, 2022, doi: 10.1016 / j.apgeochem.202L 105135.
[0087]
[10] L.-N. Li, X.-F. Liu, W.-M. Xu, J.-Y. Wang, and R. Shu, “A laser-induced breakdown spectroscopy multi-component quantitative analytical method based on a deep convolutional neural network,” Spectrochim. Acta Part B At. Spectrosc., vol. 169, p. 105850, Jul. 2020, doi: 10.1016 / j.sab.2020.105850.
[0088]
[11] L.-N. Li, X.-F. Liu, F. Yang, W.-M. Xu, J.-Y. Wang, and R. Shu, “A review of artificial neural network based chemometrics applied in laser-induced breakdown spec-troscopy analysis,” Spectrochim. Acta Part B At. Spectrosc., vol. 180, p. 106183, Jun. 2021, doi: 10.1016 / j.sab.2021.106183.
[0089]
[12] J. El Haddad, L. Canioni, and B. Bousquet, “Good practices in LIBS analysis: Review and advices,” Spectrochim. Acta Part B At. Spectrosc., vol. 101, pp. 171-182, Nov. 2014, doi: 10.1016 / j.sab.2014.08.039.
[0090]
[13] R. B. Anderson, J. F. Bell, R. C. Wiens, R. V. Morris, and S. M. Clegg, “Clustering and training set sélection methods for improving the accuracy of quantitative laser induced breakdown spectroscopy,” Spectrochim. Acta Part B At. Spectrosc., vol. 70, pp. 24-32, 2012, doi: 10.1016 / j.sab.2012.04.004.
[0091]
[14] P. J. Huber, “Robust Estimation of a Location Parameter,” Ann. Math. Stat., vol. 35, no. 1, pp. 73-101, 1964, doi: 10.1214 / aoms / l 177703732.
[0092]
[16] F. Rosenblatt, The perceptron, a perceiving and recognizing automaton Project Para. Cornell Aeronautical Laboratory, 1957.
[0093]
[17] F. Scarselli, M. Gori, Ah Chung Tsoi, M. Hagenbuchner, and G. Monfardini, “The Graph Neural Network Model,” IEEE Trans. Neural Netw., vol. 20, no. 1, pp. 61-80, 2009, doi: 10.1109 / TNN.2008.2005605.
[0094]
[18] J. Baxter, “A Model of Inductive Bias Leaming,” J. Artif. Intell. Res., vol. 12, pp. 149-198, 2000, doi: 10.1613 / jair.731.
[0095]
[19] M. Crawshaw, “Multi-Task Leaming with Deep Neural Networks: A Survey,” 2020, [Online]. Available: https: / / arxiv.org / abs / 2009.09796
[0096]
[20] R. Caruana, “Multitask Leaming: A Knowledge-Based Source of Inductive Bias,” in Proceedings of the Tenth International Conférence on Machine Leaming, 1993, pp. 41-48.
[0097]
[21] B. Xu, N. Wang, T. Chen, and M. Li, “Empirical Evaluation of Rectified Ac tivations in Convolutional Network,” 2015, [Online]. Available: http : / / arxi v .org / abs / 1505.00853
Claims
Demands
1. A computer-implemented method for machine learning a multioutput prediction model (231) configured to jointly determine, from a set of spectral data characteristic of a sample, at least one primary prediction (251) of at least one first physical quantity characterizing a given species in the sample and at least one secondary prediction (252) of at least one second physical quantity characterizing said species, the multioutput prediction model being trained from a set of annotated spectral data (210).
2. A machine learning method according to claim 1 wherein the multioutput prediction model is a multitask neural network and is implemented by means of a first common learning engine (320) configured to extract from spectral data sets received as input, representations common to the different tasks to be solved and several specific learning engines (331,332,333) for each task to be solved, each receiving as input said common representations and delivering as output a prediction (341,342,343) corresponding to the task to be solved.
3. A machine learning method according to claim 2 wherein the common learning engine (320) is a convolutional neural network and the specific neural networks (331,332,333) are convolutional neural networks complemented by fully connected neural layers.
4. A machine learning method according to any one of the preceding claims wherein said species is a chemical species, the primary prediction is a concentration value of the chemical species and the secondary prediction is an intensity value of a spectral line for at least one given wavelength or at least a band of wavelengths of a given width.
5. A computer-implemented method for the quantitative analysis of spectral data comprising the implementation of a prediction model (231) trained by means of the machine learning method according to any one of the preceding claims to determine, from a spectrum (240) measured on a sample, at least one main prediction (251) of at least one first physical quantity characterizing a given species in the sample and at least one secondary prediction (252) of at least one second physical quantity characterizing said species, the method further comprising a step of calculating a reliability indicator of at least one primary prediction from an indicator of the difference between at least one secondary prediction and a value of the corresponding second physical quantity measured on the spectrum.
6. A quantitative analysis method according to claim 5 wherein the reliability indicator is equal to the relative error between the intensity value predicted via the implementation of the prediction model and the corresponding intensity value measured on the spectrum.
7. A quantitative analysis method according to claim 5 wherein the reliability indicator is equal to the absolute difference between the intensity value predicted via the implementation of the prediction model and the corresponding intensity value measured on the spectrum divided by the standard deviation of this difference.
8. A quantitative analysis method according to any one of claims 5 to 7 further comprising the implementation of a classification model configured to classify predictions of chemical species concentration into two classes corresponding to normal values and anomalies, from predictions of spectral line intensity values or reliability indicators.
9. A quantitative analysis method according to any one of claims 5 to 8 wherein the measured spectrum is acquired by means of a laser-induced plasma atomic emission spectroscopy method.
10. A computer program comprising instructions for carrying out a process according to any one of the preceding claims, when the program is executed by a processor.
11. Processor-readable recording medium on which is recorded a program containing instructions for the execution of a process according to any one of claims 1 to 9, when the program is executed by a processor.