Spectrum prediction methods for chemical processes
The method uses an autoencoder to predict spectroscopic data from chemical processes using process variables, addressing the limitations of existing methods by eliminating the need for invasive measurements and enabling accurate predictions under varying conditions and with new chemicals, thus enhancing prediction accuracy and resource efficiency.
Patent Information
- Application Number
- PCT/EP2024/056415
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-14
- Filing Date
- 2024-03-11
- Publication Date
- 2024-09-19
AI Technical Summary
Existing methods for predicting spectroscopic data in chemical processes are error-prone and require invasive spectroscopy measurements, struggling with information loss, sensitivity to temperature changes, and the inability to include newly discovered chemicals without updating calibration models.
A method using an autoencoder to generate feature vectors from process variables, allowing for spectroscopic data prediction without direct spectroscopy measurements, by training a machine learning structure to mimic the encoding process and using a decoder unit for reconstruction, enabling predictions under varying conditions and accommodating new chemical components.
This approach reduces model complexity and processing latency, allows for accurate spectroscopic data prediction without spectroscopy equipment, and adapts to changing conditions and new chemicals, improving resource efficiency and prediction accuracy.
Smart Images

Figure EP2024056415_19092024_PF_FP_ABST
Abstract
Description
[0001] Spectrum prediction methods for chemical processes
[0002] Field of the invention
[0003] The present invention relates to methods and devices for predicting spectroscopic information on chemical processes. More particularly, the present invention relates to the process analysis tools and chemometric methods that predict spectroscopic information on a chemical process based on actual plant data for the same process.
[0004] Background of the invention
[0005] Raman spectroscopy is an inspection technique that enables non-invasive and nondestructive measurements of spectral fingerprints based on which individual molecules can be identified with excellent specificity at low concentrations in solids, liquids, and gases. Therefore, Raman spectroscopy has attracted a lot of interest for its use as a process analysis tool (PAT) in various chemical processes. Unfortunately, the development of quantitative calibration models for Raman spectra is a complex and error-prone endeavor. Univariate and multivariate calibration methods are known in the field of chemometrics, but are susceptible to information loss and incomplete knowledge of the underlying chemical process that is analyzed. Built on human expertise and professional experience, these calibration methods select a limited number of basic components to explain the observed spectrum and its correlation with the concentration parameters. It is hard to modify these methods to include new information about previously undiscovered chemicals. Any process model that is built on top of pre-developed or standardized calibration models has to be updated as soon as the calibration model changes. A further challenge encountered by existing calibration methods lies in the sensitivity of Raman spectra with respect changes in the recording conditions, such as changes in the ambient temperature. It is difficult to accurately predict concentration levels under operation conditions that differ from the recording conditions. Furthermore, it frequently occurs in complex chemical systems that pre-selected spectral peaks, identified beforehand by human experts as part of the calibration model, are overlapped or masked by spectral features relating to distinct, often unknown chemical species, which creates another hurdle on the way towards the development of accurate spectral prediction methods.
[0006] Summary of the invention
[0007] It is an object of embodiments of the present invention to provide accurate methods and devices for predicting spectroscopic data in a chemical process of interest, where spectroscopy techniques are unavailable or difficult to install. The above objective is accomplished by a method and device according to the present invention.
[0008] In one aspect, the present invention relates to a method of predicting spectroscopic data pertaining to a chemical processes to be analyzed. The prediction method comprises obtaining a feature vector for a set of process variables pertaining to the chemical process to be analyzed, and generating spectroscopic data connected to the chemical process to be analyzed by applying the feature vector as input to a decoder unit. The decoder unit is derived from an autoencoder configured to encode an original spectroscopic measurement, pertaining to the chemical process to be analyzed, into a code vector and to generate a reconstruction of the original spectroscopic measurement from the code vector.
[0009] Obtaining the feature vector includes applying the set of process variables as inputs to a machine learning structure which is configured to receive the set of process variables as inputs and generate the respective feature vector as output, and further to generate feature vectors that are predictions of the code vectors encoded by the autoencoder, provided that the original spectroscopic measurement correlates with and relates to the same chemical process to be analyzed as the set of process variables.
[0010] In embodiments of the invention, the decoder unit is thus different from the machine learning structure; it differs structurally and functionally from the machine learning structure, receives different inputs and generates different outputs compared to the machine learning structure. More specifically, the decoder unit is configured to receive feature vectors as inputs which are latent representations or compact encodings of spectroscopic measurements and reconstruct these spectroscopic measurements as outputs, whereas the machine learning structure is configured to receive process variables as inputs and predict a latent representation or compact encodings of the spectroscopic measurements as outputs. It is understood that the process variables which are inputs to the machine learning structure do not comprise the spectroscopic measurements, e.g. exclude and differ from the spectroscopic measurements. This has the advantage that spectroscopic data can be predicted by the method at execution time, without requiring any spectroscopy-related input. In other words, there is no need to perform spectroscopic measurements by means of a spectrometer or similar spectroscopy apparatus while the method is performed. Only a set of process variables have to be furnished as inputs to the method which are usually much easier to monitor, sense or measure indirectly as compared to spectroscopic measurements or spectroscopy-related variables.
[0011] Moreover, the code vectors and feature vectors are related but different entities. Here, code vectors refer to the latent representations or encodings produced by the encoder unit of the autoencoder during the training phase, knowing that the output units of the encoder unit are connected to the input units of the decoder unit only during the training phase, but disconnected therefrom during execution time, which means that no code vectors are produced at execution time with respect to original spectroscopic measurements. In contrast thereto, feature vectors relate to outputs of the machine learning structure, which has been trained to mimic the code vectors produced by the encoder unit, based on the set of process variables as inputs. In this sense, the feature vectors can be regarded as educated guesses or estimations of the code vectors at execution time, while the code vectors themselves are unavailable at execution time.
[0012] In embodiments of the invention, the chemical process typically is a manufacturing process and the predictions of spectroscopic data thus typically relates to reaction mixtures or output streams which are outputs manufactured by this process.
[0013] It is an advantage of some embodiments of the invention that only the decoder unit of an autoencoder module needs to be implemented at runtime, during the inference process, whereas the encoder part is only required during the training phase. In such embodiments, the encoder unit is thus not required during execution time. Therefore, the model complexity and processing latency can be reduced, resulting in more compact, speedier and easier to implement runtime configurations of the machine learning-related parts of the method.
[0014] According to embodiments of the invention, an encoder unit of the autoencoder has been trained to generate compact representations (i.e. encoding or authentic code vector) of original spectroscopic measurements and these compact representations having served as training targets for the machine learning structure that relates sets of process variables to a corresponding feature vectors. The feature vectors thus constitute predictions, e.g. a faithful approximation, of the authentic code vectors obtainable from the encoder unit, even in the case of inference where original spectroscopic measurement are typically unavailable. Applying the feature vector to the decoder unit thus results in the reconstruction of spectroscopic data from a predicted or estimated code vector, predicted from the set of process variables characterizing the underlying chemical process, which is correctly designated as spectroscopic data prediction from a set of process variables. In embodiments of the invention, as a general rule, the code vector and the feature vector have the same size, e.g. the same number of vector components. This can be achieved by choosing the output layer dimension of the encoder unit to be equal to the output layer dimension of the machine learning structure.
[0015] It is advantage of embodiments of the invention that predictions of spectroscopic data for a chemical process can be obtained solely on the basis of a set of process variables as inputs. Spectroscopy probes or spectroscopic measurement systems that are costly or difficult to handle, calibrate, maintain or install, can be avoided. The set of process variables preferably comprises exogenous process variables, such as temperature, which are uncorrelated with the prediction error term of the autoencoder.
[0016] It is a further advantage of embodiments of the invention that predictions of spectroscopic data for a chemical process can be obtained reliably under varying operating conditions for the chemical process, including operating temperatures in reactors or ambient temperature, which tend to strongly affect the spectroscopic response of the chemical system. In particular, the set of process variables accounts for and reflects the varying operating conditions for the chemical process so that the machine learning structure has learnt to accurately predict the compact representations of the original spectroscopic measurements associated with the different operating conditions.
[0017] It is a further advantage of embodiments of the invention that predictions of spectroscopic data for a chemical process can be obtained reliably without the (incorrect) use of a pre-defined calibration model. This simplifies the prediction method as well as the inclusion of newly discovered chemical components, which also participate in the chemical process.
[0018] Generating compact representations of the original spectroscopic measurements has the additional benefit of reducing resources for information storage and / or further data processing. Moreover, noise affecting the original spectroscopic measurements can be removed efficiently by choosing a compact encoding.
[0019] According to some embodiments of the invention, the encoder unit of the autoencoder may be configured to perform a linear mapping, which is advantageous over neural network architectures in terms of complexity, stability and energy cost of computation. In particular embodiments of the invention, the encoder unit may be configured to perform principle component analysis (PCA), which is an efficient and more stable means to control information loss during the encoding stage, e.g. dimensionality reduction. Besides, PCA has the advantage of not requiring the training of network parameters; only the explained total variance is typically controlled as a hyperparameter.
[0020] In embodiments of the invention, the chemical process may be a continuous flow process or a batch process. The chemical process may be a reaction process, for instance a synthesis process.
[0021] Original spectroscopic measurements for the training of the autoencoder may be obtained by spectroscopically probing a chemical mixture in a reaction vessel or one or more products (i.e. outputs) leaving the reaction vessel. The chemical mixture may be a liquid mixture, a gas mixture, or gas-liquid mixture (e.g. suspension). The products may be probed in the fluid phase (e.g. gas or liquid phase) or in the condensed phase (e.g. liquid or solid, e.g. powder). Spectroscopic probing may include various variants of Raman spectroscopy, X-ray diffraction, infrared or visible light spectroscopy, mass spectroscopy and other suitable spectroscopy techniques. Original spectroscopic measurements such as spectrograms or prominent spectral features (e.g. peaks) are linked to the set of process variables and obtained under the same operating conditions for the chemical process.
[0022] According to some embodiments of the invention, the method further comprises deriving a synthetic code vector corresponding to the generated spectroscopic data, by applying the generated spectroscopic data to the encoder unit of the autoencoder, and predicting at least one performance indicator related to a product of the chemical process to be analyzed. A further machine learning structure is used to predict the at least one performance indicator, wherein the further machine learning structure is configured to receive the synthetic code vector corresponding to the generated spectroscopic data and the set of process variables as inputs and generate the respective at least one performance indicator as output. Preferably, the at least one performance indicator corresponds to the concentration level of one or more products of the chemical process.
[0023] In particular embodiments of the invention, it is therefore possible that the input units of the encoder unit are connected to the output units of the decoder unit during execution time. This creates an inverted version of the autoencoder as used during the training phase, in which the processing order of data has been changed. In the inverted version of the autoencoder, the use of the decoder unit is preceding the use of the encoder unit, whereas the opposite is true for the original (i.e. non-inverted) autoencoder as used during the training phase. During the training phase, the encoder unit receives the original spectroscopic measurements as inputs; hence, its input units are not connected to the output units of the decoder unit. This has to be contrasted with the inverted version of the autoencoder as used during execution time, where the predicted spectroscopic data from the decoder unit represents the inputs that are now applied to the input units of the encoder unit (and which were receiving the original spectroscopic data inputs during the training phase). The resulting output this time is again a code vector, but a different type of code vector compared to the training phase. To avoid confusion, code vectors produced by the encoder unit at execution time in response to the predicted spectroscopic data from the decoder unit may be referred to as "predicted or synthetic code vectors", whereas the term "authentic code vectors" may be used to refer to code vectors produced by the encoder unit at training time in response to original spectroscopic data or measurements. Here, the term "original" is used in the sense of "actually measured or observed", or "genuine or authentic" as opposed to "predicted, modelled or synthetic". Besides, the decoder unit and the encoder unit are different from the further machine learning structure.
[0024] Embodiments of the invention in which the at least one performance indicator is predicted may be part of a control method or can be used for the design of a control method, e.g. a method of controlling a chemical plant, a chemical reactor or reactor chain. A control signal for controlling at least one process variable pertaining to the chemical process may be generated based on the at least one predicted performance indicator.
[0025] Embodiments of the invention may further comprise the step of training the autoencoder, wherein each training instance comprises an original spectroscopic measurement as training input and the same original spectroscopic measurement as training target associated with the training input.
[0026] Embodiments of the invention may further comprise the step of training the machine learning structure, wherein each training instance comprises the set of process variables as training inputs and the authentic code vector encoded by the autoencoder for the corresponding original spectroscopic measurement as training targets associated with the training inputs. A first training dataset may be provided for training of both the autoencoder and the machine learning structure, selecting different fields from the training dataset to build the training sequences.
[0027] Embodiments of the invention may further comprise the step of training the further machine learning structure, wherein each training instance comprises an original spectroscopic measurement, or the authentic code vector derived from the original spectroscopic measurement, and the set of process variables as training inputs and a respective reference value for each one of the at least one performance indicator as training targets associated with the training inputs. Preferably, a reference method is used to collect the training targets of the second training dataset, which is more accurate than the method by which the original spectroscopic measurements are obtained. For instance, gas chromatography or high performance liquid chromatography may be used to gather concentration levels of chemical species, e.g. in the output streams or in the reaction chamber, as training targets. A second training dataset may be provided for training of the further machine learning structure.
[0028] The invention also relates to a processing device that is suitable for carrying out the steps of a prediction method in accordance with embodiments of the invention, and further relates to computer program product that stores instructions which, when executed by such processing device, cause the device to perform the steps of the prediction method.
[0029] Particular and preferred aspects of the invention are set out in the accompanying independent and dependent claims. Features from the dependent claims may be combined with features of the independent claims and with features of other dependent claims as appropriate and not merely as explicitly set out in the claims.
[0030] For purposes of summarizing the invention and the advantages achieved over the prior art, certain objects and advantages of the invention have been described herein above. Of course, it is to be understood that not necessarily all such objects or advantages may be achieved in accordance with any particular embodiment of the invention. Thus, for example, those skilled in the art will recognize that the invention may be embodied or carried out in a manner that achieves or optimizes one advantage or group of advantages as taught herein without necessarily achieving other objects or advantages as may be taught or suggested herein.
[0031] The above and other aspects of the invention will be apparent from and elucidated with reference to the embodiment(s) described hereinafter.
[0032] Brief description of the drawings
[0033] The invention will now be described further, by way of example, with reference to the accompanying drawings, in which:
[0034] FIG. 1 is a flowchart of a spectroscopic data prediction method in accordance with embodiments of the invention.
[0035] FIG. 2 is a block diagram of a processing device adapted for carrying out the training steps of a spectroscopic data prediction method in accordance with embodiments of the invention.
[0036] FIG. 3 is a block diagram of a processing device adapted for carrying out the inference steps of a spectroscopic data prediction method in accordance with embodiments of the invention.
[0037] FIG. 4 compares a measured Raman spectrum with a predicted Raman spectrum as obtained by an embodiment of the invention.
[0038] FIG. 5 depicts predicted and measured time traces for the concentration values of various substances, wherein predicted time traces were obtained by an embodiment of the invention.
[0039] The drawings are only schematic and are non-limiting. In the drawings, the size of some of the elements may be exaggerated and not drawn on scale for illustrative purposes. The dimensions and the relative dimensions do not necessarily correspond to actual reductions to practice of the invention.
[0040] Any reference signs in the claims shall not be construed as limiting the scope.
[0041] In the different drawings, the same reference signs refer to the same or analogous elements. Detailed description of illustrative embodiments
[0042] The present invention will be described with respect to particular embodiments and with reference to certain drawings but the invention is not limited thereto but only by the claims.
[0043] The terms first, second and the like in the description and in the claims, are used for distinguishing between similar elements and not necessarily for describing a sequence, either temporally, spatially, in ranking or in any other manner. It is to be understood that the terms so used are interchangeable under appropriate circumstances and that the embodiments of the invention described herein are capable of operation in other sequences than described or illustrated herein.
[0044] It is to be noticed that the term "comprising", used in the claims, should not be interpreted as being restricted to the means listed thereafter; it does not exclude other elements or steps. It is thus to be interpreted as specifying the presence of the stated features, integers, steps or components as referred to, but does not preclude the presence or addition of one or more other features, integers, steps or components, or groups thereof. Thus, the scope of the expression "a device comprising means A and B" should not be limited to devices consisting only of components A and B. It means that with respect to the present invention, the only relevant components of the device are A and B.
[0045] Reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present invention. Thus, appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment, but may. Furthermore, the particular features, structures or characteristics may be combined in any suitable manner, as would be apparent to one of ordinary skill in the art from this disclosure, in one or more embodiments.
[0046] Similarly it should be appreciated that in the description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. This method of disclosure, however, is not to be interpreted as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
[0047] Furthermore, while some embodiments described herein include some but not other features included in other embodiments, combinations of features of different embodiments are meant to be within the scope of the invention, and form different embodiments, as would be understood by those in the art.
[0048] In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In other instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
[0049] The steps of a method which generates predictions of spectroscopic data pertaining to a chemical process, according to one embodiment of the invention, are now described with reference to FIG. 1. Chemical processes - run continuously or in batches, on an industrial scale or in a laboratory environment - can be analyzed and / or monitored by means of the predicted spectroscopic data in the same way as actual spectral measurements collected by spectroscopy probes are used to characterize the state or performance of chemical processes. For instance, spectral data with regard to the chemical composition of an output stream or the chemical composition inside a reaction vessel can be predicted in embodiments of the invention. The chemical process to be analyzed may be a reaction process, e.g. in chemical synthesis, but is not limited thereto.
[0050] A spectroscopic data generation method 10 is depicted in FIG. 1, comprises an embedding vector generation step 12 and a spectroscopic data generation step 13. Optionally, a training step 11 and a code vector generation step 14, followed by a performance indicator prediction step 15, are performed.
[0051] A feature vector is generated in step 12 by the trained version of a first machine learning structure "ANN-1" in response to a first set of process variables "PV SET-1", which are inputs to the first machine learning structure. The first machine learning structure implements a statistical model that maps the first set of process variables "PV SET-1" (input variables) to the features of the feature vector (response variables). This mapping may be a linear mapping or a nonlinear mapping, e.g. a linear or nonlinear regression model. Since the first machine learning structure is a data-driven model that learns from and uses process variables as inputs, it can also be considered a black box process model. An artificial neural network (ANN) may be selected as the first machine learning structure, which may comprise one or several hidden layers in addition to an output layer and an input layer, whose input nodes are configured to receive the respective process variables of the first set of process variables "PV SET-1". For instance, the first machine learning structure may be a multi-layer perceptron network. Considering the fact that training data of high quality as obtained for the chemical process of interest (e.g. by measurement equipment of a chemical plant performing the chemical process of interest or measurement equipment for analyzing samples gathered during the chemical process of interest) is generally scarce, the ANN which implements the first machine learning structure preferably has only a few hidden layers (e.g. only one or two hidden layers), and / or uses sparse layer-to-layer connections. A set of process variables that pertain to the chemical process to be analyzed may include one or more process variables selected from the following, non-exhaustive list of variables: flowrate(s) (e.g. inlet flowrates), temperature(s) (e.g. jacket or service fluid temperatures), pressure(s), raw material qualities, processing time(s).
[0052] As will be explained further below, the first machine learning structure is trained in combination with an autoencoder such that, after training, the first machine learning structure is configured to generate feature vectors that are predictions of the code vectors obtainable through the autoencoder if the latter was applied to a hypothetical spectroscopic measurement linked to the first set of process variables via the same underlying chemical process. The spectroscopic measurement is hypothetical after training, e.g. during run-time or testing, simply because it is assumed to be unavailable; only training data from spectroscopic measurements is supposed to be available. In other words, the trained version of the first machine learning structure has adopted a configuration that mirrors the transformation of original spectroscopic measurements into a code vector, e.g. mirror the extraction of features of the code vector from the original spectroscopic measurement, under the effect of the encoder unit in the autoencoder, but uses the applied sets of process variables instead. This is advantageous since it is often easier and less expensive to measure the process variables for the chemical process of interest than to obtain measurements from spectroscopy probes. More importantly, most chemical plants or apparatuses are already equipped to measure sets of process variables so that embodiments of the invention can be put to work at little or no additional costs.
[0053] Next, the generated feature vector is passed to a decoder unit that is derived from the trained version of an autoencoder. In step 13, the decoder unit generates spectroscopic data, e.g. a spectrum or data related to the spectrum, in response to the applied feature vector. A spectrum may be predicted as a spectral trace, e.g. a spectral power density or spectral energy density graph, where output units of the decoder units are associated with spectral power / energy density values at predefined wavelengths or photon energies, or as a probability density function for the spectral power / energy density values as a function of wavelengths or photon energy. Data related to the spectrum may be the peak amplitude and location, or the peak amplitude, location and spectral width associated with prominent peaks in the spectrum. The generated spectroscopic data can be sent to a data storage device, from which it can be retrieved later for further analysis, or can be presented to the user, e.g. a plant operator, via known output means, e.g. computer screens, displays, user interfaces, etc. Various spectroscopy methods are known in the art that can be used to gather spectral information about chemical compositions in a chemical process, including but not limited to Raman scattering spectroscopy, (near) infrared spectroscopy, NMR spectroscopy, UV / visible spectroscopy, X-ray diffraction spectroscopy, mass spectroscopy. Spectra obtainable by means of such spectroscopy methods are all considered examples of spectral data for the purpose of spectral data prediction in embodiments of the invention. While preferred embodiments of the invention predict spectral data that is obtainable from output streams in the liquid phase, spectral data can also be predicted with respect to different phases for the output streams or reaction mixtures. For instance, Raman spectroscopy techniques can be applied to gaseous, liquid, solid and mixture phases to obtain spectrum information. Mass spectroscopy covers solid, liquid and gaseous phases and X-ray diffraction can be applied in gaseous, liquid, and solid phases.
[0054] Moreover, the spectroscopic data generation method 10 can be used for predicting at least one performance indicator for the chemical process that is analyzed. The prediction of concentration values of one or more (reaction) products obtainable through the chemical process, e.g. in chemometrics, is one non-limiting example of the at least one performance indicator. Alternatively, or additionally, concentrations of chemical substances participating in the chemical process, e.g. reactants or intermediate products in a reaction vessel, may be predicted as performance indicators. Yet other performance indicators may relate to the expected finishing time for the chemical process, the average residence time of chemical substances in a reactor, the particle size or particle size distribution in emulsion copolymerization reactions, or even the extent of membrane fouling (e.g. bacterial attachment to membrane surfaces) in the context of surface- enhanced Raman scattering (SERS) spectroscopy.
[0055] In the present embodiment, predicting the at least one performance indicator involves the two additional steps: code vector derivation 14 and performance indicator prediction 15. In the code vector derivation step 14, the previously generated spectroscopic data is applied as input to an encoder unit, which is derived from the same trained version of the autoencoder as the decoder unit. Connecting the encoder unit with the decoder unit such that the outputs of the encoder unit coincide with the inputs of the decoder unit indeed returns the complete autoencoder. Contrary to the decoder unit which accepts code vector predictions as inputs and generates spectroscopic data as outputs, the encoder unit is configured to produce code vectors at its output when presented with spectroscopic data, e.g. a spectrum, at its input. Hence, the encoder and decoder unit are designed to cooperate, e.g. during the training phase 11, so that the autoencoder is capable of successfully learning to encode spectroscopic measurements on the one hand and reconstruct the encoded spectroscopic measurements on the other hand. At the same time, the feature vectors generated by the first machine learning structure mimic the code vector generation by the encoder unit when training has completed. This implies, of course, the equal size of feature vectors and code vectors obtained from the first machine learning structure and the autoencoder respectively.
[0056] Although the number of encoded features (i.e. components of the code vector) depends on the desired degree of accuracy with which the autoencoder is generating reconstructions of the originally presented spectroscopic measurements, it is usually much smaller than the number of data points in the spectroscopic measurement. Embodiments of the invention therefore have the advantage that originally presented spectroscopic data, e.g. recorded spectra such as inelastic Raman scattering spectra, can be represented, processed, and stored more efficiently as code vectors, in particular with regard to online computations. Indeed, the code vectors are the result of the dimensionality reduction effect (e.g. compression) exerted by the autoencoder. By way of example, a Raman spectrum often comprises several hundreds or even thousands of data points, whereas the number of code vector / feature vector components typically lies in the range 3-100. Likewise, reconstructed spectroscopic data, e.g. a spectrum to predicted, can be represented and stored more efficiently as feature vectors. A compressed version of the spectroscopic data, e.g. a compressed version of a spectrum, may be output, displayed, or stored in step 14 in the form of a derived code vector.
[0057] A further advantage of embodiments of the invention is related to the fact that the number of process variables in the first set of process variables presented to the first machine learning structure generally exceeds the number of components in the feature vector. This leads to a further reduction in terms of dimensionality, which makes the first learning structure less complex to design and easier to train, especially when reliable data for training is scarce and / or costly to obtain.
[0058] Following the derivation of the code vector in step 14, the at least one performance indicator, e.g. a plurality of performance indicators, e.g. a concentration value of each product of the chemical process to be analyzed, is generated in step 15 by the trained version of a second machine learning structure "ANN-2". This second machine learning structure "ANN-2" is configured to receive a second set of process variables, "PV SET-2", and the derived code vector from the encoder unit as inputs. As the first machine learning structure "ANN-1", the second machine learning structure "ANN-2" implements a statistical model that maps input variables to response variables. The mapping may be a linear mapping or a nonlinear mapping, e.g. a linear or nonlinear regression model. However, the input variables to the second machine learning structure "ANN-2" corresponds to the combination of process variables of the second set of process variables and the derived code vector from the encoder unit and the output variables correspond to the at least one performance indicator. An artificial neural network (ANN) may be selected as the second machine learning structure, which may comprise one or several hidden layers in addition to an input layer. For instance, the second machine learning structure may be a multi-layer perceptron network. The parameters of the second machine learning structure may be determined during the same training phase 11 that is used to determine the parameters of the autoencoder, e.g. an offline training phase, or may be trained subsequently to the autoencoder.
[0059] In embodiments of the invention, both the original spectroscopic measurements used for training of the autoencoder and the first and second set of process variables (e.g. PV SET-1 and PV SET-2) pertain to the same chemical process that is underlying the spectroscopic data generation method. The first and second set of process variables may be identical sets, but usually are overlapping sets which differ in size. In general, the first set of process variables (e.g. PV SET-1) is chosen to contain the second set of process variables (e.g. PV SET-2), e.g. as a subset thereof. For instance, the second set of process variables used for concentration prediction is a selection of those process variables of the first set of process variables that have an influence, not only on the concentration levels (e.g. in the output stream), but also on the measurable spectrum. In a particular embodiment of the invention, the first set of process variables comprises or consists of temperature (e.g. temperature inside a reaction chamber, jacket temperature of a reactor, temperature of a service fluid, etc.), flowrates of the feeds and / or products, and raw material qualities (e.g. purity levels), whereas the second set of process variables comprises or consists of temperature. Any one or both of the first and second set of process variables may be acquired by measurements, e.g. performed on the apparatus that carries out the chemical process of interest, prior to providing them as inputs to the first and second machine learning structure respectively.
[0060] Another important advantage related to the combination of the first machine learning structure and the autoencoder, wherein the first machine learning structure acts as a predictor for the code vectors generated by the encoding unit of the autoencoder, is the possibility to marry quantitative spectral modelling approaches (e.g. chemometrics) and a thorough understanding and modelling of the underlying chemical process. Where conventional univariate or multivariate spectrum-based models require complex calibration techniques that are error-prone and challenging to apply accurately, embodiments of the present invention overcome the difficulties related to the calibration techniques by focusing directly on and learning from a set of process variables that characterize the chemical process and correlate with spectral features in the measured spectrum. Instead of choosing a set of basic components at the outset to which the multivariate calibration and analysis techniques adhere strictly, at the risk of being incomplete or overlooking some components (e.g. unstable components) due to a lack of understanding of the underlying chemical process, embodiments of the present invention are more flexible and can adapt quicker to changes in the chemical process, e.g. adapt to and accurately account for changes in the operating conditions for the chemical process (e.g. temperature changes), adapt to and include previously unknown components, etc. In embodiments of the invention, changes in the operating conditions are captured automatically through the corresponding changes in the first and second set of process variables, whereas newly discovered chemical species that participate in the process and influence the process can be taken into account easily through minor modification and retraining of the second machine learning structure, whereby information regarding the new species (e.g. concentration value) is included as an additional performance indicator that is predicted at an additional output unit of the second machine learning structure. If exceptional changes in the operating conditions affect the predicted spectroscopic data too, e.g. changes in a reaction mixture caused by impurities from a preceding or changing processing step that are not reflected in the first and second set of process variables, then the autoencoder and first machine learning structure may be retrained with respect to a larger number of code vector / feature vector components.
[0061] Yet a further advantage of embodiments of the invention resides in the fact that errorinducing preprocessing steps of the measured spectrum can be avoided. By way of example, no spectral filtering, smoothening, or wavelength recalibration steps are required in embodiments of the invention, in which combinations of process variables and spectral data are considered as inseparable training data.
[0062] The above-described method of predicting spectroscopic data can be used as the basis for the further developments, e.g. aiming at the monitoring and / or control of the chemical process that is analyzed, the conception of new or improved control strategies for new or existing chemical apparatuses, e.g. plant equipment, or the optimization of the chemical process.
[0063] In some embodiments of the invention, the spectroscopic data prediction method is extended to chemical process monitoring applications, wherein the at least one performance indicator is predicted at a plurality of time points while the chemical process is being performed. Each predicted performance indicator can be reported to a user as a function of time. At regular intervals, the predicted values of one or more of the performance indicators may be compared to corresponding measured values (e.g. sensed directly, or derived from other measurements) to verify that the predicted performance indicators are still accurate enough to serve as a basis for monitoring applications. Alternatively, or additionally, predicted performance indicators may be used to monitor chemical processes for which measurements for the performance indicators would be difficult or even impossible to obtain. The predicted values of the at least one performance indicator, e.g. a plurality of performance indicators, or the feature vectors inducing the predicted performance indicators at each time point may be stored and / or further processed.
[0064] In other embodiments of the invention, the spectroscopic data prediction method is extended to chemical process optimization, e.g. by way of software simulation directed to the same chemical process, wherein one or more of the predicted performance indicators are maximized with respect to a number of control scenarios and / or initial conditions. Non-limiting performance indicators that may be varied and optimized include operational cost, amount of waste products, product yield, product purity, processing time, carbon emissions, etc. Different control scenarios explore the influence of changing the timing of and / or setpoints for controllable process variables, e.g. temperature, inlet flowrates, pressure, etc. Initial conditions are particularly relevant in batch processes and may relate to different volumes / masses of the starting materials, different configurations of the equipment used (e.g. different numbers of trays in distillation columns), or the like.
[0065] In yet other embodiments of the invention, the spectroscopic data prediction method is extended to chemical process control methods, wherein predicted values of the at least one performance indicators, e.g. a plurality of performance indicators, are repeatedly compared to target values (e.g. setpoints) and control actions are derived from the results of this comparison. Control variables may be adjusted, e.g. increased or decreased, if a deviation between the targeted value and the predicted value for the at least one performance indicator is detected as the result of the comparison, or a threshold has been crossed. A control device, e.g. a controller, may be configured to generate control signals for adjusting at least one controllable process variable, i.e. control variable, pertaining to the chemical process that is analyzed and controlled. The control device, or any other suitable processing device in communication with the control device, may be executing a control loop, wherein the at least one predicted performance indicator is received as an input at each loop iteration. Model predictive control is one of the many known loop-based control methods that can be implemented by the skilled artisan.
[0066] The generated spectroscopic data is useful for analyzing the chemical process, provided the predictions are in good agreement with the actually observed data from spectroscopic measurements related to the same chemical process. If the predictions are accurate enough to mimic the corresponding experimental data from spectroscopic measurements, then the spectroscopic measurements becomes optional and is no longer needed as a tool for inspection or analysis of the chemical process. Prediction methods according to embodiments of the invention therefore have the advantage that existing spectroscopy equipment for the analysis of chemical processes can be simplified or even eliminated, which can lead to important cost savings and simplified designs for chemical reactors or chemical plants. They can also be used to provide guidance in the design of improved chemical equipment. Furthermore, prediction methods according to embodiments of the invention have the benefit that they can be used to analyze chemical processes where conventional spectroscopic measurements are difficult or even impossible to realize with the required degree of accuracy. One example of conventional spectroscopic measurement and analysis techniques failing to provide a high degree of prediction accuracy is the case of concentration prediction of chemical substances in a chemical process based on detected peaks in the recorded Raman spectrum, where a pre-developed calibration model is used that has been established for a different ambient temperature compared to the operating temperature for the chemical process. Hereinunder, "analysis" generally refers to the process or result of determining - qualitatively or quantitively - the chemical composition of the final or intermediate products of the chemical process. However, a spectrum-based analysis may go further than just providing information on the chemical species involved in a chemical process under study. Part or all of the spectrum-based analysis may be directed to the determination of concentration levels for the chemical species involved in a chemical process, the determination of particle sizes during or at the end of a chemical process, the determination of film thicknesses during film-forming chemical process, etc. In combination with additional information, an indirect spectrum-based analysis may be directed to the verification or detection of reaction paths, detection of changes in the reaction paths, the determination of residence times of chemical species in a reactor, etc. A spectrum-based analysis can be performed dynamically, for instances if the chemical process under study is a time-dependent process or if transient behavior, such as reactor start-up, is investigated.
[0067] A training phase aims to minimize the difference between the measured spectroscopic data and the predicted spectroscopic data in embodiments of the invention, thereby improving the accuracy of the predicted spectroscopic data . During the training phase, the software- or hardware implementation of the first machine learning structure and autoencoder learns to infer spectroscopic data from training data that is available for the chemical process to be analyzed. More specifically, the training dataset is used to determine the trainable parameters (e.g. weights or trainable interconnections) of the first machine learning structure and autoencoder. Once the training phase has ended, the software- or hardware implementation of the first machine learning structure and autoencoder is capable of accurately predict the spectroscopic data from unknown input data related to only the first set of process variables. In consequence, the encoder unit of autoencoder may be disconnected or even removed during the inference phase if only the prediction of spectroscopic data is sought. In the case that also the at least one performance indicator is to be predicted, the software- or hardware implementation of the second machine learning structure requires training too. The training dataset for the second machine learning structure is used to determine the trainable parameters (e.g. weights or trainable interconnections) of the second machine learning structure.
[0068] FIG. 2 illustrates a processing device that is adapted for carrying out the training during the training phase, e.g. a training apparatus. The processing device 100 comprises a first machine learning structure 112, an autoencoder 107 and a second machine learning structure 122, wherein the autoencoder 107 contains an encoder unit 103 and a decoder unit 105 as sub-components. An input of the encoder unit is adapted to receive training data inputs 102 and authentic or genuine code vectors 104 are generated at an output of the encoder unit in response to the applied training data inputs. The encoder unit 103 and the decoder unit 105 are connected in such a way that the output of the encoder unit acts as the input of the decoder unit, whereby authentic code vectors 104 generated by the encoder unit play the role of inputs to the decoder unit. A reconstruction 106 of the training data input 102 is generated at an output of the decoder unit.
[0069] The training data inputs 102 correspond to original spectroscopic measurements, e.g. from a spectroscope or spectroscopy probe, which have been acquired previously in respect of the chemical process to be analyzed. Therefore, the reconstructions 106 that are delivered at the output of the decoder unit are reconstructed spectroscopic measurements, i.e. reconstructions or faithful approximations of the original spectroscopic measurement provided to the encoder unit. A non-limiting example of original spectroscopic measurements would be a collection of Raman shift spectra detected in respect of a fluid mixture in a reaction vessel, an output stream in the fluid phase, or a condensed phase in solid manufacturing processes (e.g. mechanochemical milling reactions). The training data inputs 102 are part of a first training dataset that is used to train both the autoencoder 107 and the first machine learning structure 112. The first training dataset may be stored on a data storage means 110, e.g. a database maintained by a host server or a memory device like hard disk, from which it is made accessible to the processing device 100. In particular embodiments of the invention, the processing device 100 may include the data storage means
[0070] 110. As the training phase progresses, many different training data inputs 102 are applied to the input of the encoder unit and compared to the resulting reconstructions 106 at the output of the decoder unit. Hence, the resulting reconstructions 106 are used as feedback signals during training. The training parameters of the autoencoder are optimized iteratively such that the approximation error between the original spectroscopic measurement and the reconstructed version thereof is reduced. Eventually, this leads to self-supervised feature learning by the encoder unit of the autoencoder, where latent features are represented by the components of the authentic code vectors 104 that are extracted from each original spectroscopic measurement. At the same time, the decoder unit of the autoencoder learns to restore the spectroscopic measurements from the latent features contained in the code vectors. These latent features can be regarded as an encoding of the original spectroscopic measurement. From a different viewpoint, the latent features can be interpreted as a lower-dimensional embedding of a highdimensional input signal. Indeed, the dimension of the code vector 104 is generally much smaller than the dimension of the original spectroscopic measurement, which can be defined as the number of points that compose a one-dimensional spectral profile at given wavelengths or as a the number of pixels that compose a two-dimensional spectral density graph having a density and a wavelength coordinate. In that sense, the code vectors 104 correspond to points in a lowerdimensional embedding space, thereby effectively compressing the original spectroscopic measurements. The dimensionality reduction may have the additional benefit of removing or reducing measurement noise.
[0071] In general, the encoder and decoder unit 103, 105 are implemented as artificial neural networks (ANNs), e.g. as single-layer (single hidden layer in addition to an input layer) or multilayer ANNs (multiple hidden layers in addition to an input layer), e.g. as deep neural networks. Nonetheless, different machine learning units can be used instead of ANNs to implement the encoder and decoder unit, including, for example, deep belief network, restricted Boltzmann machine, stacked restricted Boltzmann machine, principle component analysis (PCA), independent component analysis (ICA), or locally linear embedding (LLE). Preferably, light-weight machine learning units such as shallow ANNs or PCA that do not require a lot of computational resources and do not have too many training parameters, compatible with smaller-sized training datasets, are used to implement the encoder and decoder unit. Convolutional neural network architectures may be adequate if the original spectroscopic measurements are interpreted as images. If implemented as ANN, the last hidden layer of the encoder unit is the layer of the autoencoder in which the code vectors are generated, e.g. the activations of the respective hidden units in this layer correspond to the components of the code vector. A backpropagation algorithm in combination of a gradient-based optimization method such as Gradient-Descent, or other optimization algorithms known in the art , may be used to train the autoencoder.
[0072] The first machine learning structure 112 is configured to receive the first set of process variables 111 as input and generate a corresponding feature vector 114 as output. The first sets of process variables 111 are also attributes of training samples in the first training dataset. As indicated in FIG. 2, a relationship is established between the authentic code vector 104 and the feature vector 114 by:
[0073] (i) ensuring the feature vector 114 and the authentic code vector 104 have the same size; and
[0074] (ii) using the authentic code vector 104 as a training target for the first machine learning structure 112 during the training phase, such that the feature vector 114 is a prediction of the authentic code vector 104.
[0075] Applying this relationship to each instance of the first training dataset has the effect that a derived training dataset for the first machine learning can be constructed, in which code vectors are the training targets that are assigned to the respective pairs of input data attributes (e.g. first set of process variables being the first attribute and the associated spectroscopic measurement being the second attribute).
[0076] In preferred embodiments of the invention, the training targets of the derived training dataset for the first machine learning structure can be obtained from the trained version of the autoencoder, e.g. by applying the original spectroscopic measurements of the first training dataset as inputs to the trained encoder unit 103 and saving the resulting authentic code vectors 104. This means that the autoencoder and the first machine learning structure are trained sequentially.
[0077] In other embodiments of the invention, the autoencoder and the first machine learning structure are trained in parallel. This can be achieved by alternating updates of the training parameters (e.g. weights) in the autoencoder and the first learning structure respectively. The code vector that is generated in the current update of the autoencoder is used as the training target for the subsequent update of the first machine learning structure.
[0078] Once the autoencoder 107 has been trained, the encoder unit 103 is disconnected from the decoder unit 105 and the two sub-components are assigned different roles. On the one hand, the trained decoder unit is reconnected to the trained first machine learning structure in the inference phase, such that the feature vectors 114 output by the first machine learning structure 112 are received as inputs to the decoder unit 105, e.g. the output layer of the first machine learning structure is identical to the input layer of the decoder unit. This way, feature vectors 114 that are predictions of the authentic code vectors 104 will be transformed into predictions of the spectroscopic measurements 113.
[0079] On the other hand, the trained encoder unit 103 is used to create code vectors 110 as first attributes of training inputs in a second training dataset, when a collection of original spectroscopic measurements 109 is presented as inputs to the trained encoder unit. The collection of original spectroscopic measurements 109 can be retrieved from the data storage means 110. It is possible that the collection of original spectroscopic measurements 109 is identical to, or contained in, the collection spectroscopic measurements 102. If this is the case, the code vectors 104 can be pre-computed for the spectroscopic measurements 109, saved, and directly accessed at a later time, e.g. while training the second machine learning structure 122. Second attributes of the training inputs in the second training dataset correspond to the second set of process variables 121 pertaining to the process to be analyzed. The second set of process variables 121 may be subset of the first set of process variables 111, e.g. those process variables which are known or suspected to influence the at least one performance indicator to be predicted. Reference values 124 for the at least one performance indicator 123 constitute the training targets for the respective training inputs to the second training dataset. The second training dataset is used to train the parameters (e.g. weights) of the second machine learning structure 122, which is configured to receive the second set of process variables 121 and the code vectors 110 as inputs and generate the at least one performance indicator 123 as output. Preferably, the first machine learning structure and the second machine learning structure are trained in parallel, but subsequently to the training of the autoencoder.
[0080] Alternatively, the code vectors 110 that correspond to the original spectroscopic measurements 109 of the second dataset may be computed on the fly while the autoencoder 107 is still being trained. In this case, an encoder unit 103 that is not yet fully trained is used to generate the code vector inputs 110 of the second training dataset, i.e. the second training dataset is built progressively. The second machine learning structure can then be trained in parallel with the autoencoder, and, in particular embodiments of the invention, can even be combined with the autoencoder to form a larger multi-task learning structure with autoencoding capability. That is, the larger machine learning structure is trained to perform multiple different tasks in parallel, e.g. the encoding / decoding task as well as the task of predicting the at least one performance indicator, e.g. a plurality of performance indicators, e.g. a concentration value of each product of the chemical process to be analyzed.
[0081] In some embodiments of the invention, the updates of the training parameters may be determined and applied separately by each one of the autoencoder, first and second machine learning structure. In other embodiments of the invention, a control unit may be provided that performs the steps of determining and applying the training parameters updates to the respective ones of the autoencoder, first and second machine learning structure. The control unit may be a part of the processing device.
[0082] In a variant of the embodiment referred to in FIG. 2, the autoencoder and the first learning structure are combined into a larger multi-task learning structure, in which the encoder unit and the first machine learning structure have common outputs (e.g. a common output layer) that they share with each other. Whereas the encoder unit and the first machine learning structure share a common output layer during inference, the first machine learning structure would typically be transposed during the training phase. Hence, during training only, the first set of process variables plays the role of the training targets (i.e. at the output layer of the transposed first machine learning structure), whereas the code vectors generated by the encoder unit serve as training data inputs (i.e. applied to the input layer of the transposed first machine learning structure). Optionally, and as mentioned before, the larger multi-task learning structure also includes the second machine learning structure.
[0083] When training embodiments of the invention, the training inputs of the first and second training datasets, i.e. the original spectroscopic measurements and the sets of process variables, may be the same and can thus be shared. It is also possible that the training inputs of the first and second training datasets are derived from each other, e.g. by sampling or subset formation. Typically, the second training dataset is smaller than the first training data size (in terms of training instances), because accurate training targets for the at least one performance indicator are scarce. In embodiments of the invention in which the reference values for the at least one performance indicator corresponds to the concentrations of the respective products in an output stream of the chemical process, the aforesaid training targets may be gathered through concentration measurements based on gas chromatography. As these concentration measurements are performed offline at a different location, building the second training dataset proves to be a timeconsuming and rather expensive task. High-performance liquid chromatography (HPLC) may be used instead of gas chromatography to gather the training targets through concentration measurements. More generally, any concentration measurement method which has or tends to have a higher degree of accuracy compared to the derivation of concentration levels from spectroscopic measurements, e.g. from signals / spectra collected from a Raman probe, is can be used to gather the training targets in preferred embodiments of the invention. Using a supervised learning approach for the second machine learning structure, unlike the self-supervised learning in the autoencoder, also allows for a smaller training dataset. FIG. 3 illustrates a processing device for carrying out the steps of the spectroscopic data prediction method, in accordance with embodiments of the invention. The processing device 200 may be obtained from the processing device of FIG. 2 through minor modifications, e.g. changing the connectivity between encoder unit, decoder unit and first machine learning structure, whereby a training apparatus can be reconfigured into an inference apparatus. In some embodiments of the invention, the processing device 200 is a control device, e.g. a control unit, or part of a control device.
[0084] The processing device 200 accepts a first set of process variables 211 and a second set of process variables 221 as inputs. The first and second set of process variables 211, 221 relate to the same chemical process and one may be the subset of the other. The first set of process variables 211 is applied to the input of the first machine learning structure 112, whereby a feature vector 204 is generated at its output. The feature vector 204 has the characteristic that it would be an accurate prediction / approximation of a code vector generated by the encoder unit 103 if a spectroscopic measurement for the chemical process, operated according to the first set of process variables, was available. The feature vector 204 is then supplied as an input to the decoder unit 105 to predict or simulate spectroscopic data 213 that pertains to the chemical process. The predicted spectroscopic data 213 may be displayed visually to a user, e.g. as a spectrum on display means. In addition thereto, the predicted spectroscopic data 213 (e.g. in a representation that is non-visual) is supplied to the encoder unit 103, where it is re-encoded to give rise to a synthetic or predicted code vector 210. Together with the second set of process variables 221, the synthetic code vector 210 is applied to the second machine learning structure 122 which, in turn, generates a prediction for the at least one performance indicator 223 at its output.
[0085] In embodiments of the invention in which the predicted spectroscopic data is not being used for display or is not needed, the feature vector can replace the code vector and directly be applied to the second machine learning structure. This has the benefit of saving the steps of decoding and re-encoding.
[0086] A prediction method according to embodiments of the invention can be performed in real time. The prediction of spectroscopic data or performance indicators is considered to take place in real time if predictions can be made repeatedly at time intervals that are sufficiently short to capture the dynamics of the chemical process under study. The time interval between two prediction events is thus representative of the typical timescale at which the chemical process is evolving, which depends on the particular chemical process. For very fast chemical process such as photochemical reaction, the time interval between successive predictions may be as short as a few milliseconds or seconds. Slower chemical processes, e.g. biochemical processes, do not require time intervals that are as short, but are on the order of minutes or even hours.
[0087] Suitable processing devices may be general purpose computers or computer chips, microcontrollers, ASICs, FPGAs, or neuromorphic hardware, but are not limited thereto. Instead of a single processing device a network of processing nodes may be provided, which has the same computing functionality as the single processing device, but distributes and assigns the computational tasks over several processing nodes. Examples of such computation networks are computation clusters that comprise a plurality of interconnected and communicating CPUs, cloud computation, or server-client based computer networks.
[0088] The present invention also relates to a computer program that comprises instruction which, when carried out by one of the previously described processing devices, causes the processing device to perform the steps of the spectroscopic data prediction method according to embodiments of the invention. The processing device may be part of a chemical apparatus suitable for carrying out the chemical process to be analyzed. Embodiments of the invention are not limited to a particular number of inlets and outlets.
[0089] FIG. 4 shows both the measured ("MEASURED") and simulated ("MODELED") graph of scattering intensity vs. spectral Raman shift with respect to a continuous flow process. The continuous flow process is concerned with a reversible reaction and a synthesis reaction as main reactions and replacement reactions as side reactions, involving a ketone and an amine as feeds, a ketone as product, and an alcohol and ketone as side products. The simulated graph has been generated by a spectroscopic data prediction method according to the invention. The outlet stream has been measured to obtain the experimental graph. A very good agreement between measured and simulated results is observed, even though the code vectors contained only six latent features. This demonstrates the potential to achieve excellent compression performance for the set of process variables and / or spectroscopic data. Furthermore, noisy spikes that are visible in the measured graph are not seen in the simulated graph, indicating that noise can be effectively suppressed in embodiments of the invention.
[0090] FIG. 5 compares predicted concentration levels (by weight %) of various substances A through E (lines) with their experimentally verified concentration levels (symbols) for a reaction process with four identical continuous flow reactors over an extended period of time, e.g. about 28 hours. The continuous flow process is concerned with a reversible reaction and a synthesis reaction as main reactions and replacement reactions as side reactions, involving a ketone "A" and an amine "B" as feeds, a ketone "C" as product, and an alcohol "D" and ketone "E" as side products. Reactions of this kind can be found in patent application US 2015038687 Al (e.g. preparation of "Liquizald"). Concentration levels as performance indicators have been predicted in accordance with embodiments of the invention. The experimental concentration values have been obtained by gas chromatography at the exist of the fourth reactor. It can be seen that the predicted time trace of each component closely follows the measured evolution thereof. The spikes in the figure are due to an unexpected shutdown of the plant which caused an interruption of the feeds, i.e. feed flowrates decreasing suddenly to zero.
[0091] Other variations to the disclosed embodiments can be understood and effected by those skilled in the art in practicing the claimed invention, from a study of the drawings, the disclosure and the appended claims. In the claims, the word "comprising" does not exclude other elements or steps, and the indefinite article "a" or "an" does not exclude a plurality. The mere fact that certain measures are recited in mutually different dependent claims does not indicate that a combination of these measures cannot be used to advantage. Any reference signs in the claims should not be construed as limiting the scope.
Claims
Claims1. A method of predicting spectroscopic data pertaining to a chemical processes to be analyzed, comprising:- obtaining a feature vector (114; 204) for a set of process variables (111; 211) pertaining to the chemical process to be analyzed, by applying the set of process variables (111; 211) as inputs to a machine learning structure (112), said machine learning structure (112) being configured to receive the set of process variables as inputs and generate the respective feature vector as output;- generating spectroscopic data (113; 213) connected to the chemical process to be analyzed, by applying the feature vector (114; 204) as input to a decoder unit (105), said decoder unit (105) being derived from an autoencoder (107) configured to encode an original spectroscopic measurement (102), pertaining to the chemical process to be analyzed, into an authentic code vector (104) and to generate a reconstruction (106) of the original spectroscopic measurement from the authentic code vector; wherein an input layer of the decoder unit (105) is connected to an output layer of the machine learning structure (112), and wherein the machine learning structure (112) is further configured to generate feature vectors (114; 204) that are predictions of the authentic code vectors (104) encoded by the autoencoder (107), provided that the original spectroscopic measurement (102) correlates with and relates to the same chemical process to be analyzed as the set of process variables (111; 211).
2. The method according to any of the previous claims, further comprising: training the autoencoder (107), wherein each training instance comprises an original spectroscopic measurement (102) as training input and associated training target; training the machine learning structure (112), wherein each training instance comprises the set of process variables (111) as training inputs and the authentic code vector (104) encoded by the autoencoder for the corresponding original spectroscopic measurement (102) as associated training targets.
3. The method of claim 1 or 2, further comprising:- disconnecting an output layer of the encoder unit (103) of the autoencoder (103, 105) from the input layer of the decoder unit (105) and connecting an input layer of the encoder unit (103) to an output layer of the decoder unit (105);- deriving a synthetic code vector (210) corresponding to the generated spectroscopic data (213), by applying the generated spectroscopic data (213) to the encoder unit (103) of the autoencoder (103, 105);- predicting at least one performance indicator (223) related to a product of the chemical process to be analyzed, using a further machine learning structure (122), wherein the further machine learning structure (122) is configured to receive the synthetic code vector (210) corresponding to the generated spectroscopic data (213) and the set of process variables (211; 221) as inputs and generate the respective at least one performance indicator (223) as output.
4. The method according to claim 3, further comprising: training the further machine learning structure (122), wherein each training instance comprises an original spectroscopic measurement (109), or the therefrom derived authentic code vector, and the set of process variables (121) as training inputs and a respective reference value for each one of the at least one performance indicator as associated training targets.
5. The method according to claim 4, wherein the respective reference values for each one of the at least one performance indicator are obtained by gas chromatography.
6. The method according to any of the previous claims, wherein the spectroscopic data corresponds to a Raman shift spectrum, and / or wherein a number of vector components of the feature vector is comprised in the range from three to one hundred.
7. The method according to any one of the preceding claims, wherein the spectroscopic data relates to a fluid phase, and / or wherein the at least one performance indicator to be predicted corresponds to the concentration levels of the products of the chemical process in a liquid mixture.
8. The method according to any one of the preceding claims, further comprising:- generating a control signal for controlling at least one process variable pertaining to the chemical process, based on the at least one predicted performance indicator.
9. The method according to any one of the preceding claims, further comprising:- monitoring the chemical process by predicting the at least one performance indicator at a plurality of time points while the chemical process is being carried out;- optionally storing the at least one performance indicator, or the feature vector corresponding to the at least one performance indicator, predicted at each of the plurality of time points.
10. The method according to any one of the preceding claims, wherein the set of process variables includes at least one of the following: flowrate, temperature, pressure, processing time, purity of raw materials.
11. The method according to any one of the preceding claims, further comprising: - controlling the chemical process through a control loop, said control loop receiving the at least one predicted performance indicator as input.
12. The method according to any one of the preceding claims, further comprising:- performing measurements of the set of process variables to be applied to the machine learning structure (112).
13. The method according to any one of the preceding claims, wherein said set of process variables excludes said original spectroscopic measurement.
14. A computer program comprising instructions which, when the program is executed by a computer, cause the computer to carry out the method steps of any one of claims 1 to 10.
15. A data processing device configured to perform the method steps of any one of claims 1 to 10.
16. A chemical reaction apparatus for carrying out the chemical process, the apparatus comprising the data processing device according to claim 15.
Citation Information
Patent Citations
Method for the preparation of diazoalkanes
US20150038687A1
System for detecting chemicalwarfare agents of ground surface using artificial neural networks
KR102271995B1
Substance ingredient detection method and apparatus, and detection device
US11468264B2
Method and apparatus for producing infrared spectrum
US20220092431A1
Automatic calibration and automatic maintenance of raman spectroscopic models for real-time predictions
US20220128474A1
