Self-optimizing regression model
The self-optimizing regression model system automates the generation of chemometric models for complex mixtures by using iterative wavelength selection and machine learning, addressing the challenges of expertise and time in developing globally optimal models, and achieving accurate and consistent results.
Patent Information
- Application Number
- PCT/US2024/018842
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-07
- Filing Date
- 2024-03-07
- Publication Date
- 2024-09-12
AI Technical Summary
Developing globally optimal regression models for multiple analytes in complex mixtures is challenging due to the need for skilled expertise and time-consuming preprocessing and post-processing of chemometric data, especially for users with little experience in chemometric model development.
A self-optimizing regression model system that uses calibration spectra to generate best-fit models through iterative wavelength selection and baseline correction, applying machine learning methods like ensemble linear regression, random forest, and extreme gradient boosting to predict component concentrations in test samples.
The system automates the generation of accurate regression models, reducing the need for manual expertise and improving the efficiency of chemometric analysis by identifying optimal spectral regions and baseline corrections, leading to consistent and generalizable results across different model developers.
Smart Images

Figure US2024018842_12092024_PF_FP_ABST
Abstract
Description
TITLE: Self-Optimizing Regression ModelInventors: Matthew Glace, Thomas Roper, and Roudabeh Sadat Moazeni PourasilCROSS-REFERENCE TO RELATED APPLICATIONS
[0001] This application claims priority to, and the benefit of, US Provisional Patent Application 63 / 450,424, entitled “Self-Optimizing Regression Model,” which was filed on March 7, 2023, and is incorporated by reference as if set forth herein in its entirety.BACKGROUND
[0002] Chemometrics is an interdisciplinary science which uses mathematical, statistical, and other data-analytic tools to obtain information from chemical systems. Chemometrics can be used to analyze and interpret large, complex chemical data obtained from spectrometers. In order to interpret this data, a scientist will often have to apply pre- and post-processing techniques to the data in order to simplify the data for analysis. In addition, generating a model requires a scientist to identify the most pertinent data from which to build the model, identify and remove outliers, as well as select various parameters. Often, generating an optimal model can be a difficult and time-consuming process.BRIEF DESCRIPTION OF DRAWINGS
[0003] Many aspects of the present disclosure can be better understood with reference to the following drawings. The components in the drawings are not necessarily to scale, with emphasis instead being placed upon clearly illustrating the principles of thedisclosure. Moreover, in the drawings, like reference numerals designate corresponding parts throughout the several views.
[0004] FIG. 1 is a drawing of a network environment according to various embodiments of the present disclosure.
[0005] FIG. 2 is a sequence diagram illustrating one example of interactions between the components of the network environment of FIG. 1 according to various embodiments of the present disclosure.
[0006] FIG. 3 is a flowchart illustrating one example of functionality implemented as portions of an application executed in the network environment of FIG. 1 according to various embodiments of the present disclosure.
[0007] FIG. 4 is a drawing of an example data analysis workflow of the components of the network environment of FIG. 1 according to various embodiments of the present disclosure.
[0008] FIG. 5 is a drawing of an example procedure for model fitting implemented as portions of an application executed in the network environment of FIG. 1 according to various embodiments of the present disclosure.
[0009] FIG. 6 is a drawing of a sample baseline correction and R2assignment for a highly effective baseline (1079 to 1087 cm-1) according to various embodiments of the present disclosure.
[0010] FIG. 7 is a drawing of chemical structures for Case Study 1 described herein. FIG. 7(1 ) is a drawing of the chemical structure of 2,6-diisopropylphenol (Propofol), FIG. 7(2) is a drawing of the chemical structure of 4-hydroxy-3,5-diisopropylbenzoic acid (HDIPBA), and FIG. 7(3) is a drawing of the chemical structure of 2-isopropyl phenol (2-IP).
[0011] FIG. 8 is a drawing of a plot of the top baselines described in Case Study 1 herein. FIG. 8(A) shows the top baselines of Case Study 1 for Propofol, FIG. 8(B) shows the top baselines of Case Study 1 for HDIPBA, and FIG. 8(C) shows the top baselines of Case Study 1 for 2-IP.
[0012] FIG. 9 is a drawing of Case Study 1 regression models plotted for 9(A) Propofol, 9(B) HDIPBA, and 9(C) 2-IP.
[0013] FIG. 10 is a drawing of the plots of top baselines in Case Study 2, described herein, for 10(A) Nitrogen, 10(B) Ciso, and 10(C) CEC.
[0014] FIG. 11 is a drawing of the Case Study 2 regression models plotted for 11 (A) Nitrogen, 11 (B) Ciso, and 11 (C) CEC.
[0015] FIG. 12 is a drawing of the plot of top baselines in Case Study 3 for 12(A) Kyanite, 12(B) Wollastonite, 12(C) Olivine, 12(D) Silica, and 12(E) Zircon.
[0016] FIG. 13 is a drawing of the Case Study 3 regression models plotted for 13(A) Kyanite, 13(B) Wollastonite, 13(C) Olivine, 13(D) Silica, and 13(E) Zircon.
[0017] FIG. 14 is a drawing of an example method for outlier detection from the corrective baseline matrix (Xiransform) according to various embodiments of the present disclosure.DETAILED DESCRIPTION
[0018] Disclosed are various approaches for developing a self-optimizing regression model for identifying multiple analytes from complex mixtures. Often, thedevelopment of concentration models is accomplished offline by experts in chemometrics and is highly dependent on the skill level of the user. This process may require preprocessing and post-processing of chemometric data (including, but not limited to, baseline correction, variable selection, normalization, filtration, selection, exclusion, or weighting). For quantitative model development, the variable selection process to achieve the best fitting parameters (e.g., root mean squared error, limit of quantitation, correlation coefficient, etc.) frequently does not result in the globally optimal solution. Users with little or no experience in chemometric model development may find it difficult and timeconsuming to create ‘globally optimal’ regression models for multiple analytes from complex mixtures.
[0019] As such, various embodiments of the present disclosure are directed to systems and methods for generating best-fit regression models for multiple analytes in a complex mixture. A system can be developed to use a plurality of calibration spectra. Each of the calibration spectra corresponds to a calibration sample containing multiple components in known concentrations. The system can use the calibration spectra to generate a best-fit regression model for each component through iterative wavelength selection by adjusting internal parameters of a baseline correction method. The system can iterate through various combinations of internal parameters, generating potential models, analyzing the fit of those models, and returning the model of best-fit for each component. The best-fit regression model can be utilized to predict the concentrations of components in test samples having some or all the same components as the calibration samples in unknown concentrations. A system can be arranged to perform a method of generating calibration spectra from calibration samples; generating a model based on thecalibration spectra; generating test spectra from test samples; applying the model to the test spectra; and determining component concentrations of the test samples based on the application of the model.
[0020] In the following discussion, a general description of the system and its components is provided, followed by a discussion of the operation of the same. Although the following discussion provides illustrative examples of the operation of various components of the present disclosure, the use of the following illustrative examples does not exclude other implementations that are consistent with the principles disclosed by the following illustrative examples.
[0021] With reference to FIG. 1 , shown is a network environment 100 according to various embodiments. The network environment 100 may include a computing device 103 and a spectrometer 106, as well as other client or computing devices which can be in data communication with each other via a network 109.
[0022] The network 109 can include wide area networks (WANs), local area networks (LANs), personal area networks (PANs), or a combination thereof. These networks can include wired or wireless components or a combination thereof. Wired networks can include Ethernet networks, cable networks, fiber-optic networks, and telephone networks such as dial-up, digital subscriber line (DSL), and integrated services digital network (ISDN) networks. Wireless networks can include cellular networks, satellite networks, Institute of Electrical and Electronic Engineers (IEEE) 802.11 wireless networks (e.g., WI-FI®), BLUETOOTH® networks, microwave transmission networks, as well as other networks relying on radio broadcasts. The network 109 can also include acombination of two or more networks 109. Examples of networks 109 can include the Internet, intranets, extranets, virtual private networks (VPNs), and similar networks.
[0023] The spectrometer 106 can be one or more instruments designed to analyze the composition of substances or compounds based on the absorption, emission, or reflection of light from samples of those substances or compounds. The spectrometer 106 can be an infrared spectrometer, a Raman spectrometer, or other spectrometer as can be appreciated. In some embodiments, the spectrometer 106 can be part of an in-line, at- line, or on-line spectroscopy system. In some embodiments, the spectrometer 106 can be a “smart” spectrometer having an on-board processor-based system, such as a computer system. In at least one embodiment, the spectrometer 106 can be a specialized computing device capable of data storage, data analysis and display capabilities. In some embodiments, the spectrometer 106 can be coupled to a computing device 103 through the network 109.
[0024] The spectrometer 106 can be configured to receive samples of substances, mixtures, or compounds. The spectrometer 106 can use spectroscopy to analyze the samples, and produce spectra (e.g., graphical representations of intensity versus wavelength) based at least in part on the spectroscopic analysis of the samples. The samples can be calibration samples 114 of which at least one component is present in known concentration. In some embodiments, the calibration samples 114 can have known concentration values for all components. The samples can be test samples 115 of which at least one component is present in unknown concentration. In some embodiments, the test samples 115 can have unknown concentration values for all components.
[0025] The spectrometer 106 can be configured to execute various applications, such as a spectroscopy application 119 or other applications. The spectroscopy application 119 can be configured to collect, obtain, and / or receive data corresponding to the spectroscopic analysis of various samples. The spectroscopy application 119 can be configured to convert the spectroscopic analysis data into spectra that can be sent to other devices and / or other applications. In at least one embodiment, the spectroscopy application 119 can be configured to send the spectra through the network 109 to the computing device 103.
[0026] The computing device 103 can include a processor, a memory, and / or a network interface. In some embodiments, the computing device 103 can be coupled to the network 109. The computing device 103 can be embodied in the form of a personal computer (e.g., a desktop computer, a laptop computer, or similar device), a mobile computing device (e.g., personal digital assistants, cellular telephones, smartphones, web pads, tablet computer systems, music players, portable game consoles, electronic book readers, and similar devices), media playback devices (e.g., media streaming devices, BluRay® players, digital video disc (DVD) players, set-top boxes, and similar devices), a videogame console, or other devices with like capability. The computing device 103 can include one or more displays 123, such as liquid crystal displays (LCDs), gas plasma-based flat panel displays, organic light emitting diode (OLED) displays, electrophoretic ink (“E-ink”) displays, projectors, or other types of display devices. In some instances, the display 123 can be a component of the computing device 103 or can be connected to the computing device 103 through a wired or wireless connection.
[0027] In many embodiments, the computing device 103 can have a data store 126. The data store 126 can be representative of a plurality of data stores 126, which can include relational databases or non-relational databases such as object-oriented databases, hierarchical databases, hash tables or similar key-value data stores, as well as other data storage applications or data structures. Moreover, combinations of these databases, data storage applications, and / or data structures may be used together to provide a single, logical, data store 126. Various data can be stored in the data store 126 that is accessible to the computing device 103. The data stored in the data store 126 is associated with the operation of the various applications or functional entities described below. This data can include calibration spectra 117 and test spectra 118 from the spectrometer 106 and potentially other data.
[0028] Each spectrum can be a graphical representation of the intensity versus wavelength generated during a spectroscopic analysis of a sample. Spectra can include calibration spectra 117 or test spectra 118. The calibration spectra 117 can be generated from calibration samples 114, where at least one component is present in known concentration. The calibration spectra 117 can be used to generate a model to predict component concentrations in test samples 115. The test spectra 118 can be generated from test samples 115, where at least one component is present in unknown concentration.
[0029] The computing device 103 can be configured to collect, obtain, and / or receive data through the network 109, and store the data in the data store 126. The computing device 103 can be configured to render a user interface 129 on the display 123. The computing device 103 can be configured to execute various applications suchas a modeling application 133, or other applications. The computing device 103 can be configured to execute applications beyond the modeling application 133, such as email applications, social networking applications, word processors, spreadsheets, or other applications.
[0030] The modeling application 133 can be executed to receive calibration spectra 117 generated from calibration samples 114. In addition, the modeling application 133 can be executed to receive test spectra 118 generated from test samples 115. In some embodiments, the components in the calibration samples 114 are the same as the components in the test samples 115. In some embodiments, only one component in the calibration samples 114 is found in the test samples 115. In some embodiments, the components in the calibration samples 114 are in different concentrations than the concentrations in the test samples 115. The modeling application 133 can be executed to generate a model based at least in part on the calibration spectra 117, apply the model to test spectra 118, and determine component concentrations of the test samples 115. In some embodiments, the model can be a linear regression model, multiple regression model, non-linear regression, stepwise regression, or other models as can be appreciated.
[0031] Next, a general description of the operation of the various components of the network environment 100 is provided. Although this general description illustrates the interactions between the components of the network environment 100, other interactions or sequences of interactions are possible in various embodiments of the present disclosure.
[0032] To begin, a spectrometer 106 could be used to generate one or more spectra from various samples. The spectra can be stored in a data store 126 of a computing device 103. A user can insert a set of calibration samples 114 having known component concentrations into a spectrometer 106 and execute a spectroscopy application 119 to generate calibration spectra 117. The spectroscopy application 119 is further explained in the discussion of FIG. 2. A modeling application 133 can be used to analyze the calibration spectra 117 and produce a model of best-fit corresponding to the known concentration values of the calibration spectra 117. The modeling application 133 is further explained in the discussion of FIG. 3.
[0033] The user can insert test samples 115 having unknown component concentrations into the spectrometer 106 and execute the spectroscopy application 119 to generate test spectra 118. The user can then apply the model to the test spectra 118 to determine the component concentrations of the test samples 115. The component concentrations can be displayed on the user interface 129 of a display 123 in the form of a results report.
[0034] Referring next to FIG. 2, shown is a sequence diagram that provides one example of interactions between the spectroscopy application 119, the modeling application 133, and the display 123 of FIG. 1. It is understood that the sequence diagram of FIG. 2 provides merely an example of the many different types of functional arrangements that may be employed. As an alternative, the sequence diagram of FIG. 2 may be viewed as depicting an example of elements of a method implemented with the network environment 100 of FIG. 1 according to one or more embodiments.
[0035] At block 200, the spectroscopy application 119 can generate calibration spectra 117 from calibration samples 114. In some embodiments, the spectroscopy application 119 can be executed after the calibration samples 114 have been inserted into the spectrometer 106. The spectroscopy application 119 can cause the spectrometer 106 to perform a spectroscopic analysis to generate the calibration spectra 117.
[0036] At block 203, the spectroscopy application 119 can cause the calibration spectra 117 to be sent through the network 109 to the modeling application 133 on the computing device 103. In some embodiments, the spectroscopy application 119 can send the calibration spectra 117 to a data store 126 on the computing device 103.
[0037] At block 206, the modeling application 133 can receive the calibration spectra 117. In some embodiments, the modeling application 133 can receive the calibration spectra 117 from the spectroscopy application 119. In some embodiments, the modeling application 133 can receive the calibration spectra 117 from the data store 126 on the computing device 103.
[0038] At block 209, the modeling application 133 can generate a model from the calibration spectra 117. In some embodiments, the model generated by the modeling application 133 can include a globally optimal out variable matrix describing an optimal spectral region and a regression fit to that region. Further detail regarding the operation of the modeling application 133 in generating the model can be found in the discussion of FIG. 3.
[0039] At block 213, the spectroscopy application 119 can generate test spectra118 from test samples 115. To do this, the spectroscopy application 119 can be executed after one or more test samples 115 having unknown component concentrations havebeen inserted into the spectrometer 106. The spectroscopy application 119 can cause the spectrometer 106 to perform a spectroscopic analysis to generate the test spectra 118.
[0040] At block 216, the spectroscopy application 119 can cause the test spectra 118 to be sent through the network 109 to the modeling application 133 on the computing device 103. In some embodiments, the spectroscopy application 119 can send the test spectra 118 to a data store 126 on the computing device 103.
[0041] At block 219, the modeling application 133 can receive the test spectra 118. In some embodiments, the modeling application 133 can receive the test spectra 118 from the spectroscopy application 119. In some embodiments, the modeling application 133 can receive the test spectra 118 from the data store 126 on the computing device 103.
[0042] At block 223, the modeling application 133 can apply the model to the test spectra 118. In some embodiments, application of the model can include analyzing the test spectra 118 to determine the area under the curve of the optimal spectral region and using the regression fit for that optimal spectral region to calculate the predicted concentration. Further detail regarding the operation of the modeling application 133 in applying the model can be found in the discussion of FIG. 3.
[0043] At block 226, the modeling application 133 can determine the component concentrations based at least in part on the application of the model at block 223. The component concentrations can be determined by using the model to calculate concentration values for regions of the test spectra 118 corresponding to each component.
[0044] At block 229, the modeling application 133 can send the component concentrations determined at block 226 to a display 123. In some embodiments, the modeling application 133 sends the component concentrations to the display 123 on the computing device 103 and causes the component concentrations to be included on the user interface 129. After the component concentrations have been sent to the display 123, the sequence diagram of FIG. 2 ends.
[0045] Moving next to FIG. 3, shown is a flowchart that provides one example of the operation of a portion of the modeling application 133 according to various embodiments. It is understood that the flowchart of FIG. 3 provides merely an example of the many different types of functional arrangements that may be employed to implement the operation of the portion of the modeling application 133 as described herein. As an alternative, the flowchart of FIG. 3 could be viewed as depicting an example of elements of a method implemented by the computing device 103 of FIG. 1 according to one or more embodiments.
[0046] At block 300, the modeling application 133 can receive the calibration spectra 117. The modeling application 133 can receive the calibration spectra 117 from the data store 126 of the computing device 103. In some embodiments, the modeling application 133 can receive the calibration spectra 117 from the spectrometer 106. In some embodiments, the modeling application 133 can receive one calibration spectrum 117 at a time, each calibration spectrum 117 corresponding to one calibration sample 114.
[0047] At block 303, the modeling application 133 can set one or more baseline correction parameters. In some embodiments, the one or more baseline correctionparameters include a lower limit. In some embodiments, the one or more baseline correction parameters include a range. In some embodiments, the modeling application 133 can iterate through every potential combination of baseline correction parameters.
[0048] At block 306, the modeling application 133 can generate a model based at least in part on the calibration spectra 117. In some embodiments, the model is a regression model. In some embodiments, the modeling application 133 can generate the model by applying the one or more baseline correction parameters from block 303 to a spectral region on a calibration spectrum, calculating the area under the curve, and performing the regression. The modeling application 133 can repeat this process through iterative wavelength selection (e.g., using various combinations of baseline correction parameters and generating a model for each potential combination of baseline correction parameters).
[0049] At block 309, the modeling application 133 can fit the regression model(s) generated at block 306 to the calibration spectra 117. The modeling application 133 can return an output variable matrix consisting of information describing a single spectral region and the regression statistics for determining fit for that region. Regression statistics may include fitting parameters such as correlation coefficient, root mean squared error, limit of quantification, limit of detection, as well as other parameters. Additionally, regression statistics may include weighted combinations and / or functions of these parameters over on or more calibration periods. In some embodiments, the modeling application 133 can record the regression statistics and store them in a data store 126.
[0050] At block 313, the modeling application 133 can determine the model of best- fit. To do this, the modeling application 133 can compare the regression statisticsobtained at block 309 for all models generated for a spectral region. In some embodiments, the modeling application 133 can minimize the limit of quantification to identify the best-fit model. In some embodiments, the modeling application 133 can use some or all of the regression statistics obtained at block 309 to identify the best-fit model. According to various examples, the modeling application 133 can use machine learning to determine the model of best fit. The modeling application 133 can apply a machine learning model to results of the iterative baseline correction from block 309 to generate a model of best fit. In some embodiments, the machine learning model can represent machine learning methods such as ensemble linear regression (ELR), random forest (RF) from scikit-learn, and extreme gradient boosting (XGB).
[0051] At block 316, the modeling application 133 can further receive the test spectra 118, corresponding to test samples 115 having unknown component concentrations. The modeling application 133 can receive the test spectra 118 from the data store 126 of the computing device 103. In some embodiments, the modeling application 133 can receive the test spectra 118 from the spectrometer 106. In some embodiments, the modeling application 133 can receive one test spectrum 118 at a time, each test spectrum 118 corresponding to one test sample 115.
[0052] At block 319, the modeling application 133 can apply the best-fit model to the test spectra 118. Through the application of the model to the test spectra 118, the model can determine component concentrations of the test samples 115. In some embodiments, the modeling application 133 can apply the best-fit model for each component to the test spectra 118 to determine the concentration of each component inthe test samples 115. In some embodiments, the modeling application 133 can apply the best-fit model to one test spectrum 118 at a time.
[0053] At block 323, the modeling application 133 can generate a results report. In some embodiments, the results report can comprise the concentration of each component in a test sample 115. In some embodiments, the results report can comprise a list of the components identified in a test sample 115. In some embodiments, the components and / or the concentration of each component can be listed for multiple test samples 115. In some embodiments, the results report can include the baseline correction parameters selected for the best-fit model.
[0054] At block 326, the modeling application 133 can send the results report to a user interface 129. In some embodiments, the modeling application 133 can store the results report in the data store 126. After the modeling application 133 has sent the results report to a user interface 129, the flowchart of FIG. 3 ends.
[0055] While embodiments of the present disclosure are described in connection with the following Examples and the corresponding text and figures, there is no intent to limit the disclosure to the embodiments in these descriptions. On the contrary, the intent is to cover all alternatives, modifications, and equivalents included within the spirit and scope of embodiments of the present disclosure.EXAMPLE 1Introduction:
[0056] Process analytical technologies (PAT), such as Raman and infrared spectroscopies have been deployed for an increasing number of use cases in manufacturing and quality control. Among others, these numerous applications of PAT include food, pharmaceuticals, cosmetics, tobacco, and nuclear waste. The US Food and Drug Administration (FDA) and the International Council for Harmonization (ICH) have stated that PATs should play a pivotal role in the adoption of advanced pharmaceutical manufacturing methods. Spectroscopic-based PAT are highly compatible with an advanced manufacturing framework and their usage has been encouraged as part of quality by design initiatives. Many studies have reported on the use of spectroscopic based-PAT tools, such as infrared (IR) and Raman, to monitor various stages of pharmaceutical manufacturing. Spectroscopic-based PAT is useful both for real-time release and model predictive control.
[0057] Because spectrometers do not provide physical separation between the measured compounds, the resulting measurement is the combined molecular fingerprint for all the compounds within the mixture providing data-rich but highly complex spectra. Multivariate statistical methods, such as partial least squares (PLS) and principal component analysis (PCA), have typically been utilized to deconvolute and model the resulting spectra. The development and implementation of quantitative models from the spectra has historically been a challenging task. Data treatment, known as preprocessing, is also typically required for complex mixtures to correct for non-linearity and focus on the model on the analyte of interest. Significant efforts have been placed on the developmentof new pre-processing methods to improve the capabilities of spectroscopic-based PAT to model more complex data, such as crude reaction mixtures. As such, new types of data-processing are frequently reported, some of which rely on iterative methods or neural networks for pre-processing optimization. Although artificial intelligence has previously been applied for pre-processing treatments, few examples for end-to-end automated quantitative model development have been attempted. Automated end to end quantitative model development may provide significant advantages to the generalizable accuracy and repeatability of chemometric models.
[0058] Here, a new methodology for chemometric model development referred to as iterative regression of corrective baselines (IRCB) is described. The proposed method is simple, intuitive, and highly automated; yet, it can provide valuable spectra insights and be used to generate models that may outperform existing PLS methodologies. The approach is based in statistical methods and does not rely on any spectral interpretation from molecular structure or carry forward previous knowledge. The IRCB methodology is utilized in tandem with several supervised machine learning methods such as ensemble linear regression (ELR), random forest (RF) from scikit-learn, and extreme gradient boosting (XGB) to complete the model construction. While the methodology may be conceptualized as a preprocessing step for machine learning, it is used without any additional preprocessing.
[0059] The proposed methodology can improve the automatability and interpretability of regression model development for many types of PAT. The employed computational approach can be beneficial to identify the spectral regions of high selectivity and result in more consistent results across different model developers. Theeffectiveness of the proposed methodology is assessed with several diverse spectroscopic-based PAT cases studies. The algorithm is first detailed using a Fourier Transform infrared (FTIR) spectroscopy case study (CS) for prepared solutions of propofol and two structurally related impurities. Next, the algorithm is applied and compared to two additional previously benchmarked case studies. Case study 2 (CS-2) is near infrared (NIR) measurements of crude soil samples and CS-3 is Raman spectroscopy quantification of solids in a slurry of simulated nuclear waste. The statistical results of the regression models are reported and for comparison to other methodologies. The additional insights from the novel matrix transformation methodology are also discussed.Methods:Iterative Regression of Corrective Baselines (IRCB)
[0060] The general workflow for the applied algorithm approach is shown in FIG. 4. In addition to the calibration matrices of X and Y, the choice of a final machine learning predictive algorithm is also required for regression model development. No preprocessing or structural information about the spectra is required. The necessary model parameters are passed from the IRCB procedure to the trained model for application on Xiest. All test samples, even within k-folds, are excluded for the entirety of model development.
[0061] The algorithm procedure is detailed in FIG. 5, where ‘n’ is the number of spectra and ‘p’ is the number of datapoints in each spectrum. The Xi-ransform columns remain sample specific whereas the number of rows in Xiransform along the expanded axis is a function of the original number of datapoints ‘p’ in the spectra. The operation fromXcaiibration to Xfransform results in a unit change of the matrix elements from arbitrary units (a.u) to (a.u.)2The generation of Xiransform is facilitated by the application of an iterative baseline correction and subsequent area summation. Each Xi-ransform entry stores the area between a spectrum a ‘baseline’. Every unique baseline is a line segment with endpoints at two specific locations along the spectrum. The position of the line segment endpoints is row specific within the XTransform and sufficient to describe the application of a unique baseline to all samples in Xcaiibration and XTest.
[0062] For each row of Xiransform, a unique pair of start and stop datapoint locations will be applied to generate a linear baseline for each spectrum of Xcaiibration individually. Because each baseline and spectra contain discrete data, the area between them can be calculated using a trapezoidal summation applying a length of one between datapoints. For all datasets with equidistant spacing between observations, the spacing is an arbitrary scale factor, so it can be removed for computational efficiency. Therefore, the simplest area summation methodology is taking the sum of matrix that results from subtracting the baseline from the spectral response.
[0063] If the baseline connects two adjacent data points, the area between the baseline and the response will be zero. Therefore, only baselines that contain at least three data points result in a summed area that is non-zero and are useful for the next step of the operation. The number of potentially useful linear baselines, or the maximum number of rows contained in Xiransform, is defined in Eq. 1 , where p is the number of datapoints in the spectra and ‘a’ is an arbitrary counter variable. The ‘inverted’ areas (above the spectra and beneath the corrective baseline) are considered negative during the area approximation.p-2Za(D a=l
[0064] Because of the expansion nature of the iterative baseline correction, Xiransform is significantly larger than the original X dataset. A methodology to select the most useful features (rows) of Xiransform is next employed. Each row within Xiransform is assigned a coefficient of determination (R2) for Ycaiibration and sorted row-wise by the R2value assigned. Because of this sorting method, the highest rated features of Xiransform are linear depictions of Y. After sorting, an arbitrary number of the top features (Highest R2) within Xiransform are carried forward into the new matrix XFeatures. For the case studies described in this example, a maximum of 2% of the highest rated features of Xiransform were selected for XFeatures, although using less may also result in an adequate prediction as dictated by the complexity of the system. For any model, the start and stop baseline locations for XFeatures are indexed for the transformation of Xiest. The baseline indices for each element of XFeatures are used to generate an equivalent matrix (same number of rows) for the test set without requiring known concentrations for the test set.
[0065] In a classical spectroscopic interpretation, the simplest corrective baseline (row of Xiransform) captures a selective analyte peak which correlates to concentration as dictated by Beer Lambert’s law. An example of a highly rated baseline is shown in FIG. 6. The area between the spectral response and the baseline, which spans from 1079 to 1087 cm-1, is selective for the targeted component concentration (Ycaiibration) as demonstrated by a high R2value. This indicates that this feature of Xiransform will be useful for making predictions about Y and is likely to be included in XFeatures.
[0066] The matrix XFeatures is useful as input for a variety of predictive models including ensemble linear regression (ELR), random forest (RF), and extreme gradient boosting (XGB). The predictive algorithms may vary in effectiveness based on the complexity of the spectra and size of the calibration data. For simple cases, such as three component mixture of pure compounds, ELR was the most effective and interpretable. In summary for the ELR approach, each XFeatures element was used as a simple linear regression model and the predictions of numerous linear regression models were averaged for the test set prediction. The exact number of ensembled regression models included was determined by minimizing the error of cross-validation prediction of the calibration set. For the more complicated examples, machine learning algorithms RF and XGB may produce more accurate and robust test set predictions.Software
[0067] Data analysis was performed in Python (v 3.9). The following modules were utilized: numpy, scikit-learn, xgb, and matplotlib. FTIR spectra were collected in ICIR (v 7.1 , Mettler Toledo).Materials
[0068] Materials were used as received from vendors. 2,6-Diisopropylphenol (100%) and 2-isopropyl phenol (98%) were procured from Chem-lmpex International, INC. 4-Hydroxy-3,5-diisopropylbenzoic acid (98%) was procured from Combi-Blocks. The 4-Hydroxy-3,5-diisopropylbenzoic acid used for PAT model development wassynthesized in-house and purified by recrystallization from heptane. Acetonitrile (HPLC Grade) was procured from Sigma Aldrich.Sample Preparation - Case Study 1
[0069] Each stock solution of analyte was generated by the dissolution of the purified compounds into acetonitrile. A total of fourteen calibration and ten test samples were prepared. For reference concentrations, each sample was analyzed by HPLC in duplicate after diluting the FTIR samples into the linear range of the HPLC calibration. The concentrations as determined by HPLC were considered the true analyte concentration (Table 1 ).Table 1: Case Study 1 Concentrations of Prepared Solutions as determined by HPLCHigh-Performance Liquid Chromatography (Case Study 1)
[0070] For each analyte (Propofol [1], 2-IP [2], HDIPBA [3]) a 6-point calibration curve, from 0.05 to 1.00 mg / mL for each analyte, was prepared by in acetonitrile. A minimum coefficient of variation (R2= 0.99) was enforced for all HPLC calibrations.Samples were analyzed in duplicate. Full details of the HPLC method are outlined in the supporting information.Fourier Transform Infrared Spectroscopy
[0071] A ReactIR 15 was equipped with a DS Micro Flow Cell. The detector was chilled for at least two hours with liquid N2 prior to analysis. FTIR samples were maintained at room temperature prior to and during analysis. Sample were analyzed by manual injection into the Micro Flow Cell DS DiComp. A 30-second scan time was selected, and three spectra were collected for all calibration and test samples.Case Studies 2 and 3 - Data Acquisition
[0072] Case studies 2 and 3 are publicly available, with Case study 2 being detailed by Pierna and Dardenne (Fernandez Pierna, J. A.; Dardenne, P. Soil Parameter Quantification by NIRS as a Chemometric Challenge at “Chimiometrie 2006.” Chemometrics and Intelligent Laboratory Systems 2008, 91 (1 ), 94-98). Case study 3 is detailed by Prasad, Crouse, Rosseau and Grover (Prasad, R.; Crouse, S. H.; Rousseau, R. W.; Grover, M. A. Quantifying Dense Multicomponent Slurries with In-Line ATR-FTIR and Raman Spectroscopies: A Hanford Case Study. Ind Eng Chem Res 2023, 62 (39), 15962-15973).Results and Discussion:
[0073] A primary aim of the methods employed in this study was to model the targetY from the multicomponent calibration set X without reference spectra, manual peakidentification, or inferred structurally knowledge. To demonstrate the wide versatility and usefulness of the IRCB approach, three case studies were investigated and reported. An outline of all three case studies is shown in Table 2. The three case studies utilized different instruments (FTIR, NIR, Raman) and were applied to physically different sample types (Solution, Solids, Slurry). Similarly, Xpeatures was used as input for three different machine learning modelling strategies to generate the final Y prediction. In case study 1 (CS-1), the solution concentration of three different pharmaceutically relevant analytes was predicted using FTIR. In CS-2, the algorithm was applied to a previously reported dataset that utilized NIR to measure solid soil samples. Lastly, in CS-3 the methodology was tested to predict the solid concentration within a multicomponent slurry using Raman spectroscopy. For CS-2 and CS-3, the modelling results may be compared to the previously published benchmarks.Table 2: Outline of Case StudiesCase RegressionStudy Analyte Instrument Type Reference Modelling(CS) StrategyPropofol Fourier Transformp. Not1 2-IP Infrared Spectroscopye?^rePreviously ELRHDIPBA (FTIR) solution ReportedNitrogen2 Ciso . So ids Pierna et a .1RFSpectroscopy (NIR) tKyaniteWollastonitePrasad axt 3 Olivine Raman Spectroscopy Slurry XGBSilicaZirconCase Study 1 : FTIR for Three Component Mixture
[0074] In the first case study (CS-1 ), the model development procedure for a three- compound mixture of propofol and two structurally similar impurities is detailed. The solutions were prepared in-house as described in the “Sample Preparation” sectionherein. The three chemical structures from the solution are shown in FIG. 7. These three compounds were chosen based on their structural similarity. For example, 2-1 P contains only one unique aryl hydrogen as compared to propofol. Propofol has no unique functional selectivity when compared to 4-hydroxy-3,5-di isopropylbenzoic acid (HDIPBA) and 2- isopropyl phenol (2-IP) collectively.
[0075] As detailed in the “Sample Preparation” section herein, Xcaiibration contained 42 calibration spectra (14 independent samples x 3 replicates) and 1798 datapoints for each spectrum. The samples all contained each of the three analytes at a concentration between 5.0 and 45.0 mg / mL. The matrix transformation methodology was applied to create Xi-ransform of size 1 ,613,706 x 42. Although three different analyte models were developed, Xiransform is a comprehensive matrix of Xcaiibration that is generic to all three substrates. An XFeatures matrix must be generated for each substrate independently using the generic Xiransform and a substrate specific Ycaiibration. The top eight elements of XFeatures are shown for each substrate in Table 3. Highly selective baselines were discovered for each analyte as demonstrated by several R2values > 0.99. The upper and lower limit describe the endpoint locations of the baselines contained within XFeatures. Notably, Table 3 only shows the eight most selective baselines for each of the three substrates, but XFeatures contain numerous additional entries for each analyte. The full XFeatures matrices are available for this case study and the others in supporting information.Table 3: Top Baselines of Case Study 1 for Propofol, HDIPBA and 2-IPAnal te Lower Limit Upper LimitSlope (A.U.2Intercept y (cm'1) (cm'1)1443 1650 0.998 -3.50E+01 -2.95E+021201 1214 0.998 8.03E+02 -4.10E+00930 975 0.998 -4.07E+02 -1.03E+021443 1648 0.998 -3.57E+01 -2.96E+02Hroporoi1445 15620.998 -8.37E+01 -2.86E+02790 802 0.998 6.86E+02 2.07E+001229 1309 0.998 -1.07E+02 -3.11E+01790 800 0.998 9.37E+02 1.22E+001655 1778 0.999 2.73E+01 2.04E+001655 1782 0.999 2.73E+01 2.22E+001655 1780 0.999 2.73E+01 1.87E+001648 1788 0.999 2.65E+01 4.46E+00HDIHtSA1648 17820.999 2.63E+01 4.32E+001650 1788 0.999 2.67E+01 4.12E+001648 1780 0.999 2.63E+01 3.94E+001648 1786 0.999 2.64E+01 4.62E+001079 1087 0.999 1.19E+03 1.05E+00831 1225 0.999 -6.16E+00 4.40E+011081 1085 0.999 7.96E+03 4.85E-011497 1517 0.999 4.24E+02 5.12E+001497 1516 0.999 4.20E+02 4.40E+001497 1510 0.999 6.59E+02 1.22E-011499 1517 0.999 4.82E+02 3.59E+001078 1089 0.999 5.89E+02 2.34E+00
[0076] In FIGS. 8A, 8B, and 8C, the best eight baselines (as shown in Table 3) were plotted onto the calibration sets for propofol, HDIPBA, and 2-IP, respectively. Each of the baselines in Table 3 is overlaid to the spectra of FIGS. 8A, 8B, and 80. Multiple baselines are shown because, although they have the same start and stop location, the baseline is applied to every spectrum individually.
[0077] Several of the baselines selected by the algorithm are directly indicative of functional selectivity. In 2-IP, aromatic C-H bending near 1500 cm'1and 1080 cm'1was captured by the automated algorithm. The carboxylic acid functional group near 1725 cm'1for HDIPBA was similarly selected. Additionally, several non-intuitive baselines areshown to be quantitative concentration indicators. Although propofol lacks functional group selectivity, XFeatures elements were still highly correlated with Y. In some instances, the applied baseline resulted in a negative area of the spectra being captured. The selection of the best baselines by the IRCB algorithm is a comprehensive methodology that doesn’t require any structural knowledge or manual interpretation because every possible linear baseline is tested. Those selected by the protocol are unbiased by portion of the spectra that the operator may be predisposed to believe is the most selective. The selected baselines are considered the best only because when applied they result in an area that has the highest correlation to the targeted Y.
[0078] In some cases, the best baseline regions for different analytes may cross or entirely overlap. For example, the selective 2-IP baseline from 1499 to 1517 cm-1is entirely contained within the selective propofol baseline from 1445 to 1562 cm-1. The baseline discovery process may be enhanced by the area summation feature that allows ‘inverted’ portions to be considered negative. For example, the 2ndhighest rated 2-IP baseline from 831 to 1225 cm-1has significant spectral responses both above and below the corrective baseline. However, the sum of positive and negative areas balance to give a linear response in overall area of the baseline to the 2-IP concentration. Furthermore, it can be seen in the best propofol baselines that some selective regions (e.g., 1443 - 1650 cm-1) are entirely ‘inverted’. In terms of classical spectroscopic interpretation this result was initially perplexing. However, every typically ‘clean’ baseline for a unique selective peak is contained within Xiranstorm and the complex solutions appearing within XFeatures demonstrated higher correlation with Y than the simpler ones that may be easier to select manually.
[0079] The selection and application of a machine learning predictive model is required for converting the Xpeatures in Y prediction for the calibration and test sets. For CS-1 , ensemble linear regression (ELR) was applied to create the regression model. Using ELR, each row in Xpeatures served as a linear regression model that was averaged into the final prediction for Y. As described in the “Iterative Regression of Corrective Baselines (IRCB)” section herein, the number of ensemble linear regression models to average for the final prediction was determined by minimizing the cross-validation error of the calibration set. The number of ensemble regressions included was 98, 29, and 8 for propofol, HDIPBA, and 2-IP, respectively. Although Xpeatures can be set to include an arbitrary top 2% of Xiransform, fewer features were necessary to generate a robust prediction using the ELR strategy.
[0080] Finally, the model was applied to a selection of 30 spectra (10 samples x 3 scans) for test set evaluation. For the test set, Xpeatures for each analyte was generated using the corresponding baseline indices from the calibration set. The statistical results for each of the three analytes in this CS is outlined in Table 4.Table 4: Case Study 1 Statistical Results for Ensemble Linear Regression (ELR) Model
[0081] The algorithm provided an excellent fit for each of the three target analytes as indicated by a test R2of > 0.99 and a test RMSE of < 0.50 mg I mL. The results indicate that the baselines selected through assigning an R2value to the calibration set sampleswere effective for predicting the concentration of the test set. The results indicate that the IRCB methodology was effective because the baselines selected by the algorithm are directly useful to generate a test set prediction. The modelling results are plotted in FIGS. 9A, 9B, and 9C for propofol, HDIPBA, and 2-IP respectively.Case Study 2: ‘Chimiometrie 2006’ Soil Quantification with NIR Spectroscopy
[0082] Although the effectiveness of the algorithm was demonstrated for a prepared three component mixture, crude samples can introduce significant spectra complexity. As such, for CS-2 the outlined methods were next tested using the ‘Chimiometrie 2006 Conference’ soil quantification challenge. This dataset contains NIR measurement of 618 soil samples and offline measurements for total nitrogen (g / Kg dry soil), carbon percentage in dry soil (Ciso, %), and cation exchange capacity (CEC, meq / 100 g of dry soil). The test set was utilized as outlined by the conference guidelines.
[0083] Although this dataset was collected over a multiday period with likely instrument and environment variation, no preprocessing was performed. The baseline correction methodology was applied to generate Xi-ransform from the raw data. Next, iterative regression was performed on Xi-ransform to generate the three Xpeatures matrices for the three Ycaiibration matrices (Nitrogen, Ciso, CEC). For this case study, each Xpeatures matrix retained the top 2% of Xi-ransform that was selective for the respective Ycaiibration. The best baseline for each component is tabulated in Table 5 and plotted in FIGS. 10A, 10B, and 10C for Nitrogen, Ciso, and CEC, respectively. The full Xpeatures for each component is available in supporting information.Table 5: Top Baselines of Case Study 2 for Nitrogen, Ciso and CECYLower Limit Upper Limitr2Slope (A.U.2InterceptYTarget(cm1) (cm1)K / mg) (A.U.2)Nitrogen 1502 2052 0.701 -2.01 E+00 -1.27E+00Ciso 1722 1746 0.667 1.17E+03 8.11E-01CEC 1698 1720 0.509 -1.19E+04 8.65E+00
[0084] As shown in Table 5, the top baselines for the three targeted Ycaiibration matrices in CS-2 were less predictive than those reported in CS-1 . This is demonstrated by the top R2values for the best individual baselines being 0.701 , 0.667, and 0.509 for Nitrogen, Ciso, and CEC, respectively. One clear advantage of the outlined approach is the ability to determine which portion of the spectra is most correlated with the Y of interest. For example, cation exchange capacity (CEC) does not directly correspond to a known functional group but using the IRCB method it can be observed that 1698 to 1720 cm-1is a region of key interest (FIG. 10C). The best nitrogen baseline (FIG. 10A) was complex as it contained both positive and negative regions that summed to give a linear (R2= 0.701 ) response to the Ycaiibration.
[0085] Based on the Y correlations of the individual baselines, random forest (RF) machine learning was selected as the predictive model to capture more complex interactions within the Xpeatures matrices. As previously mentioned, each Xpeatures matrix consisted of the top 2% of XTranstorm as determined by linear regression with each respective Ycaiibration. The Xpeatures matrices were used to train RF models from scikit-learn with typical default hyperparameters as outlined in supporting information. The statistical results for the CS-2 RF regression models are outlined in Table 6. The model predictions and true values are plotted in FIG. 11. The resulting NIR soil composition test set prediction statistical parameters were near the authors predictions for the previous results. Although the test set fitting for the ‘CEC’ model was considered satisfactorycompared to other analyses of this dataset, the cross-validation error was quite high. It is hypothesized that this is due to outliers within Ycaiibration for this dataset. The cross- validation statistics for other methodologies were not previously reported.Table 6: Case Study 2 Statistical Results for Random Forest Regression Model.
[0086] These regression models were generated with no pre-processing or outlier removal. The results once again indicate the utility of the baseline regions discovered using the IRCB methodology. After the best XFeatures are identified using IRCB, the RF algorithm is then able to weight linear predictors and secondary interactions within Xpeatures. The overall regression prediction of the RF model surpasses the predictive capacity of any one baseline region. For example, in the ‘Ciso’ model, the best fitted baseline to Ycaiibration was R2= 0.667 (Table 5) but by including the best 2% of baselines (XFeatures) in the RF algorithm the overall prediction for an unknown test set was R2= 0.880 (Table 6). This indicates significant predictive capacity is being captured within XTransform and is effectively extracted into XFeatures using the outlined iterative regression sorting methodology. It is shown within the results of CS-2, that the IRCB algorithm can find selective responses even for complex mixtures with overlapping signals. This is further demonstrated by the containment of the best Ciso and CEC baselines within the best Nitrogen baseline (Table 5).Case Study 3: Raman Spectroscopy for Dense Slurry Solid Quantification
[0087] In CS-3, the IRCB approach was applied to another previously published dataset, which utilized Raman spectroscopy to measure a dense multicomponent slurry designed to simulate nuclear waste. The objective of the model reported is to predict the solid concentration for each of the five analytes (kyanite, wollastonite, olivine, silica, and zircon) using 66 spectra of the slurry. This CS-3 dataset provides additional complications compared to the previous two as the Raman probe is exposed to both solids and liquids. Moreso, the composition of the solids exposed to the probe may fluctuate as the slurry is stirred. In the original work, five solid analytes were modelled using partial least squares regression (PLS-R) with 10 principal components and assessed using leave one out cross-validation (LOOCV). For the current approach, 10-fold cross validation (CV) was applied to develop and assess the model of each analyte.
[0088] First, a generic Transform was generated and then / Features were generated for each analyte with each CV fold using the same IRCB methodology employed for the previous case studies. Once again, / Features consisted of the top 2% of / Transform for each analyte within each fold. The top baseline for each component is shown for the first fold in Table 7 and plotted in FIG. 12. Although the results are shown from the first fold, the order and statistics of the top baselines varied only slightly across the k-folds.Table 7: Top Baselines of Case Study 3 for Kyanite, Wollastonite, Olivine, Silica and,Zircon. . . Lower Limit Upper Limitd2Slope (A. U.2InterceptAnalyte(cm1) (cm1)K / mg) (A.U.2)Kyanite 672 792 0.835 3.10E-03 -4.21 E+01Wollastine 927 1534 0.790 6.00E-04 6.29E-01Olivine 726 827 0.461 -2.20E-03 9.48E+00Silica 463 519 0.748 -1.67E-02 -8.59E+00Zircon 438 716 0.804 -5.00E-04 -1.05E+01
[0089] It can be observed in FIG. 12, that the most selective baseline for each analyte is far more complex than a single analyte peak. For almost all of the samples, there are portions of the spectral response above the baseline. Given this complexity, the manual identification of the selective regions is extremely challenging or entirely impossible. This evidence helps to support our hypothesis that IRCB is beneficial to creating a standard automatable approach.
[0090] A machine learning package XGBoost (XGB), which stands for extreme gradient boosting, was used to develop the final regression model for each fold separately using the XFeatures matrices. XGB is a powerful algorithm that uses gradient boosted decision trees to solve many types of supervised regression and classification problems. While RF would also be suitable for this case study, XGB is also an acceptable choice and further demonstrates the versatility of the methodology with several machine learning packages. For each XGB model (specific to analyte and fold), XGB hyperparameters were tuned using a randomized grid search approach to minimize prediction of cross validation error. This is further detailed in the supporting documentation. The test set regression results were compiled from each fold and plotted in FIG. 13. The statistical metrics of the test set prediction are shown and compared to the previously reported PLS-R results in Table 8. The PLS-R model from the previously work utilized 10 principal components and the application of Savitzky-Golay filter.Table 8: Case Study 3 Statistical Results for Extreme Gradient Boosting (XGB) Regression ModelTes .t Se .t Me .trics IRCB + XGBKyanite Wollastonite Olivine Silica ZirconCoefficient of Determination (R2) 0.901 0.849 0.614 0.855 0.916Mean Absolute Error (g / kg solvent) 6.03 9.20 5.80 17.66 2.12Root Mean Squared Error (g / kg solvent) 7.69 11.53 7.70 21.59 3.12Mean Percent Error 17.9 29.6 39.3 21.7 15.8Test Set MetricsKyanite Wollastonite Olivine Silica ZirconCoefficient of Determination (R2) 0.932 0.912 0.527 0.885 0.837Mean Absolute Error (g / kg solvent) 4.57 5.66 5.20 13.53 2.52Root Mean Squared Error (g / kg solvent) 6.04 7.88 6.95 17.29 3.68Mean Percent Error 16.5 16.7 39.4 18.2 21.4
[0091] As shown in Table 8, the IRCB / XGB methodology was generally comparable with the PLS-R for the reported statistical metrics. The IRCB / XGB model outperformed the PLS-R model for Zircon and underperformed for Wollastonite. The statistics for Kyanite, Olivine and Silica indicate only slight differences in performance. Overall, the statistical results for the CS-3 model indicate that using IRCB and XGB is an effective methodology for the development of regression models from complex datasets.
[0092] The concept of the linear corrective baseline was reported in our previous work for the purpose of finding a regression model from two overlapping peak to develop a Raman spectroscopy model. The primary limitations of the previous approach was that only a small portion of the spectra and the single best baseline was used for a linear regression model. The previous approach did not facilitate its application to complex systems, where numerous baselines coupled with machine learning algorithms arerequired to make an effective prediction on the test set. For most datasets it is difficult to identify the region that contains the best baseline, and a single baseline is insufficient to develop a robust prediction.
[0093] Overall, the results of the three case studies indicate that generation of Xiransform is an effective methodology to generate linear predictors of Y. However, because Xiransform is much larger than Xcaiibration, it is also necessary to develop methods to select the most relevant features from Xiransform. Although simple linear regression is introduced as a method of generating Xpeatures from Xiransform, additional methodologies may also warrant investigation. More specifically, it may be useful to investigate methodologies that are compatible with classification problems and to investigate the utility of other types of machine learning algorithms.Case Study 4:Outlier Detection for Contaminants
[0094] Case Study 4 was performed to test the hypothesis that IRCB can also be utilized to monitor for the presence of new contaminants. Here within, FTIR was utilized to measure solutions containing the three compounds: propofol, HDIPBA, and 2-IP. However, the objective of this study was to demonstrate that the presence of 2-IP can be qualitatively detected without including it in the calibration set.
[0095] A novel method was implemented to detect outliers within a test dataset (FIG. 14). In both the calibration and test Xiransform matrices 1 ,613,706 observations (baselines) were generated. Z-scores were computed for each observation in the testXiransform, indicating the deviation of an observation from the mean of its corresponding variable in calibration Xiransform, in terms of standard deviations. Observations with Z-scores exceeding a threshold of 6 standard deviations (SDs), were identified as outliers. This threshold allowed for the identification of divergent values, both above and below the mean. The number of outliers per sample in the test dataset was then counted, providing a measure of deviation for each sample. This methodology facilitated the objective identification of anomalies, ensuring that the analysis was based on statistically highly significant deviations. The composition of each test sample and the number of outliers identified from the 1 ,613,706 baselines is shown in Table 9.Table 9: Case Study 4: Outliers Identified Using Xi-ransform Z-Scores (> 6 SDs)Test Sample - Test ( *—mg “ - / mL)1N i ummbueerr o ufrPropofol HDIPBA 2-IP OutliersT-1 83.0 0.84 0.84 89T-2 59.3 1.42 - 0T-3 63.9 1.98 - 0T-4 90.0 2.25 - 0T-5 81.7 1.04 3.15 2297T-6 60.2 2.92 - 0T-7 51.4 1.86 - 0T-8 53.8 0.46 - 0T-9 45.5 0.66 1.62 877T-10 48.3 0.95 - 1
[0096] The contaminated samples (those containing the uncalibrated 2-IP) were able to be identified using the Z-Score from the Xiransform calibration matrices. The results shown in Table 9 indicate the ability to detect the presence of a previously uncalibrated contaminant at less than 1 mg / mL and around 1 % of propofol. The detected contaminant (2-IP) was never introduced to the model during calibration and differed from the main API by only a single aryl hydrogen. These results support the hypothesis that IRCBmodeling can be used to detect extra-model contaminants in API mixtures including formulations.Conclusions
[0097] We have introduced a new framework for the development of spectroscopic models that can in some instances outperform the existing methodologies. By applying the IRCB computational strategy, the optimal baseline regions can be directly mapped and identified even by a non-expert or in instances when the physical structure of the target is unknown. For simple systems, IRCB can capture clear molecular selectivity based on classical spectroscopic interpretation. However, the spectral regions selected by IRCB are frequently non-intuitive and difficult to manually identify for complex mixtures. The selection of certain baseline regions may provide insights into spectral interpretability that were previously difficult to identify. The extracted XFeatures is compatible with a diverse machine learning framework. IRCB may be conceptualized as a highly effective preprocessing method that helps to linearize X and increase X’s compatibility with machine learning tools.
[0098] The development of a feature extraction technique that does not rely upon user experience represents a key milestone towards the automation of chemometric regression analysis. The removal of variable pre-processing requirements can significantly lower the barrier of entry to model development. The proposed methods may help to democratize accessibility to the model development process as facilitated by a more structured and scientific approach. The ongoing efforts in place to modify the algorithm for application to classification problems are primary focused on newmethodologies for selecting the most relevant features from Xiransform. Furthermore, it is important to investigate strategies that optimize the number of features that are included in the regression model and to determine which machine learning predictive algorithm is most appropriate.
[0099] A number of software components previously discussed are stored in the memory of the respective computing devices and are executable by the processor of the respective computing devices. In this respect, the term "executable" means a program file that is in a form that can ultimately be run by the processor. Examples of executable programs can be a compiled program that can be translated into machine code in a format that can be loaded into a random access portion of the memory and run by the processor, source code that can be expressed in a proper format such as object code that is capable of being loaded into a random access portion of the memory and executed by the processor, or source code that can be interpreted by another executable program to generate instructions in a random access portion of the memory to be executed by the processor. An executable program can be stored in any portion or component of the memory, including random access memory (RAM), read-only memory (ROM), hard drive, solid-state drive, Universal Serial Bus (USB) flash drive, memory card, optical disc such as compact disc (CD) or digital versatile disc (DVD), floppy disk, magnetic tape, or other memory components.
[0100] The memory includes both volatile and nonvolatile memory and data storage components. Volatile components are those that do not retain data values upon loss of power. Nonvolatile components are those that retain data upon a loss of power. Thus, the memory can include random access memory (RAM), read-only memory (ROM),hard disk drives, solid-state drives, USB flash drives, memory cards accessed via a memory card reader, floppy disks accessed via an associated floppy disk drive, optical discs accessed via an optical disc drive, magnetic tapes accessed via an appropriate tape drive, or other memory components, or a combination of any two or more of these memory components. In addition, the RAM can include static random access memory (SRAM), dynamic random access memory (DRAM), or magnetic random access memory (MRAM) and other such devices. The ROM can include a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or other like memory device.
[0101] Although the applications and systems described herein can be embodied in software or code executed by general purpose hardware as discussed above, as an alternative the same can also be embodied in dedicated hardware or a combination of software / general purpose hardware and dedicated hardware. If embodied in dedicated hardware, each can be implemented as a circuit or state machine that employs any one of or a combination of a number of technologies. These technologies can include, but are not limited to, discrete logic circuits having logic gates for implementing various logic functions upon an application of one or more data signals, application specific integrated circuits (ASICs) having appropriate logic gates, field-programmable gate arrays (FPGAs), or other components, etc. Such technologies are generally well known by those skilled in the art and, consequently, are not described in detail herein.
[0102] The flowcharts show the functionality and operation of an implementation of portions of the various embodiments of the present disclosure. If embodied in software, each block can represent a module, segment, or portion of code that includes programinstructions to implement the specified logical function(s). The program instructions can be embodied in the form of source code that includes human-readable statements written in a programming language or machine code that includes numerical instructions recognizable by a suitable execution system such as a processor in a computer system. The machine code can be converted from the source code through various processes. For example, the machine code can be generated from the source code with a compiler prior to execution of the corresponding application. As another example, the machine code can be generated from the source code concurrently with execution with an interpreter. Other approaches can also be used. If embodied in hardware, each block can represent a circuit or a number of interconnected circuits to implement the specified logical function or functions.
[0103] Although the flowcharts show a specific order of execution, it is understood that the order of execution can differ from that which is depicted. For example, the order of execution of two or more blocks can be scrambled relative to the order shown. Also, two or more blocks shown in succession can be executed concurrently or with partial concurrence. Further, in some embodiments, one or more of the blocks shown in the flowcharts can be skipped or omitted. In addition, any number of counters, state variables, warning semaphores, or messages might be added to the logical flow described herein, for purposes of enhanced utility, accounting, performance measurement, or providing troubleshooting aids, etc. It is understood that all such variations are within the scope of the present disclosure.
[0104] Also, any logic or application described herein that includes software or code can be embodied in any non-transitory computer-readable medium for use by or inconnection with an instruction execution system such as a processor in a computer system or other system. In this sense, the logic can include statements including instructions and declarations that can be fetched from the computer-readable medium and executed by the instruction execution system. In the context of the present disclosure, a "computer-readable medium" can be any medium that can contain, store, or maintain the logic or application described herein for use by or in connection with the instruction execution system. Moreover, a collection of distributed computer-readable media located across a plurality of computing devices (e.g., storage area networks or distributed or clustered filesystems or databases) may also be collectively considered as a single non- transitory computer-readable medium.
[0105] The computer-readable medium can include any one of many physical media such as magnetic, optical, or semiconductor media. More specific examples of a suitable computer-readable medium would include, but are not limited to, magnetic tapes, magnetic floppy diskettes, magnetic hard drives, memory cards, solid-state drives, USB flash drives, or optical discs. Also, the computer-readable medium can be a random access memory (RAM) including static random access memory (SRAM) and dynamic random access memory (DRAM), or magnetic random access memory (MRAM). In addition, the computer-readable medium can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or other type of memory device.
[0106] Further, any logic or application described herein can be implemented and structured in a variety of ways. For example, one or more applications described can beimplemented as modules or components of a single application. Further, one or more applications described herein can be executed in shared or separate computing devices or a combination thereof. For example, a plurality of the applications described herein can execute in the same computing device, or in multiple computing devices in the same network environment 100.
[0107] Disjunctive language such as the phrase “at least one of X, Y, or Z,” unless specifically stated otherwise, is otherwise understood with the context as used in general to present that an item, term, etc., can be either X, Y, or Z, or any combination thereof (e.g., X; Y; Z; X or Y; X or Z; Y or Z; X, Y, or Z; etc.). Thus, such disjunctive language is not generally intended to, and should not, imply that certain embodiments require at least one of X, at least one of Y, or at least one of Z to each be present.
[0108] It should be emphasized that the above-described embodiments of the present disclosure are merely possible examples of implementations set forth for a clear understanding of the principles of the disclosure. Many variations and modifications can be made to the above-described embodiments without departing substantially from the spirit and principles of the disclosure. All such modifications and variations are intended to be included herein within the scope of this disclosure and protected by the following claims.
[0109] In addition to the foregoing, the various embodiments of the present disclosure include, but are not limited to, the embodiments set forth in the following clauses.
[0110] Clause 1 - A system, comprising at least one computing device comprising a processor and a memory; and machine-readable instructions stored in the memory that,when executed by the processor, cause the computing device to at least generate a model based at least in part on a plurality of calibration spectra; apply the model to at least one test spectrum, the test spectrum corresponding to a test sample; and determine component concentrations of the test sample based at least in part on the application of the model.
[0111] Clause 2 - The system of clause 1 , wherein an individual calibration spectrum of the plurality of calibration spectra corresponds to a respective individual calibration sample having known component concentrations.
[0112] Clause 3 - The system of clause 1 or 2, wherein the test sample comprises a mixture having at least one unknown component concentration.
[0113] Clause 4 - The system any of clauses 1 -3, wherein the machine-readable instructions, when executed by the processor, further causes the computing device to at least display a user interface comprising an upload-spectra component configured to, upon selection, receive the plurality of calibration spectra.
[0114] Clause 5 - The system of clause 4, wherein the machine-readable instructions, when executed by the processor, further causes the computing device to at least generate a results report based at least in part on the determination of the component concentrations of the test sample; and modify the user interface to display the results report.
[0115] Clause 6 - The system of clause 0, wherein the machine-readable instructions, when executed by the processor, further causes the computing device to at least generate a results report based at least in part on the determination of thecomponent concentrations of the test sample; and cause the results report to be displayed on a user interface.
[0116] Clause 7 - The system of any of clauses 1-6, wherein the model is a linear regression model.
[0117] Clause 8 - The system of any of clauses 1 -7, wherein the machine-readable instructions that cause the computing device to generate the model further cause the computing device to perform iterative wavelength selection on the plurality of calibration spectra to determine a model of best fit.
[0118] Clause 9 - The system of clause 8, wherein the machine-readable instructions that cause the computing device to perform iterative wavelength selection on the plurality of calibration spectra further cause the computing device to perform linear baseline correction on the plurality of calibration spectra.
[0119] Clause 10 - The system of clause 8, wherein the machine-readable instructions that cause the computing device to perform iterative wavelength selection on the plurality of calibration spectra further cause the computing device to use machine learning to determine the model of best fit.
[0120] Clause 11 - A method, comprising generating a model based at least in part on a plurality of calibration spectra; applying the model to at least one test spectrum, the test spectrum corresponding to a test sample; and determining component concentrations of the test sample based at least in part on the application of the model.
[0121] Clause 12 - The method of clause 11 , further comprising generating the plurality of calibration spectra from a plurality of calibration samples having knowncomponent concentrations; and generating the at least one test spectrum from the test sample having unknown component concentrations.
[0122] Clause 13 - The method of clause 12, wherein generating the plurality of calibration spectra and generating the at least one test spectrum is accomplished by infrared spectroscopy.
[0123] Clause 14 - The method of clause 12, wherein generating the plurality of calibration spectra and generating the at least one test spectrum is accomplished by Raman spectroscopy.
[0124] Clause 15 - The method of any of clauses 11-14, wherein generating the model further comprises adjusting a plurality of baseline correction parameters; generating a regression model based at least in part on the adjusted baseline correction parameters and the calibration spectra; fitting the regression model to known component concentrations of a plurality of calibration samples based at least in part on a plurality of fitting parameters; and returning a plurality of optimal parameters for the model.
[0125] Clause 16 - The method of clause 15, wherein fitting the regression model further comprises performing iterative baseline correction on the regression model; and applying a machine learning model to results of the iterative baseline correction to generate a model of best fit.
[0126] Clause 17 - The method of clause 16, wherein the plurality of baseline correction parameters includes a lower limit and a range.
[0127] Clause 18 - The method of clause 16, wherein the plurality of fitting parameters comprises at least one of a correlation coefficient, a root mean squared error, a limit of quantification, a limit of detection, or a weighted combination.
[0128] Clause 19 - A system, comprising at least one computing device comprising a processor and a memory; and machine-readable instructions stored in the memory that, when executed by the processor, cause the computing device to at least receive a plurality of calibration spectra corresponding to known component concentrations; set a plurality of baseline correction parameters; generate a regression model based at least in part on the baseline correction parameters and the calibration spectra; fit the regression model to the known component concentrations; and determine a best-fit regression model.
[0129] Clause 20 - The system of clause 19, wherein the machine-readable instructions, when executed by the processor, further causes the computing device to at least receive a plurality of test spectra corresponding to a plurality of test component concentrations; apply the best-fit regression model to the test spectra; and determine test component concentrations based at least in part on the application of the best-fit regression model.
[0130] Clause 21 - The system of clause 19, wherein the machine-readable instructions which cause the computing device to generate a regression model based at least in part on the baseline correction parameters and the calibration spectra, further cause the computing device to at least perform iterative baseline correction on the regression model; and apply a machine learning model to results of the iterative baseline correction to generate a model of best fit.
[0131] Clause 22 - The system of clause 19, wherein the machine-readable instructions, when executed by the processor, further causes the computing device to atleast generate a results report comprising the determined test component concentrations; and send the results report to a user interface.
[0132] Clause 23 - The system of clause 22, wherein the user interface is generated on a display.
[0133] Clause 24 - The system of any of clauses 19-23, wherein the plurality of baseline correction parameters includes a lower limit and a range.
[0134] Clause 25 - The system of any of clauses 19-24, wherein the plurality of calibration spectra is received from a spectrometer.
[0135] Clause 26 - The system of any of clauses 19-25, wherein the plurality of test spectra is received from a spectrometer.
[0136] Clause 27 - The system of any of clauses 19-26, wherein fit of the regression model is determined through one or more fitting parameters, the fitting parameters comprising at least one of a correlation coefficient, a root mean squared error, a limit of quantification, a limit of detection, or a weighted combination.
[0137] Clause 28 - A non-transitory, computer-readable medium, comprising machine-readable instructions that, when executed by a processor, cause a computing device to perform the method of any of clauses 11-18.
[0138] Clause 29 - A system, comprising a spectrometer; at least one computing device comprising a processor and a memory; and machine-readable instructions stored in the memory that, when executed by the processor, cause the computing device to perform the method of any of clauses 11 -18.
Claims
CLAIMSTherefore, the following is claimed:
1. A system, comprising: at least one computing device comprising a processor and a memory; and machine-readable instructions stored in the memory that, when executed by the processor, cause the computing device to at least: generate a model based at least in part on a plurality of calibration spectra; apply the model to at least one test spectrum, the test spectrum corresponding to a test sample; and determine component concentrations of the test sample based at least in part on the application of the model.
2. The system of claim 1 , wherein an individual calibration spectrum of the plurality of calibration spectra corresponds to a respective individual calibration sample having known component concentrations.
3. The system of claim 1 , wherein the test sample comprises a mixture having at least one unknown component concentration.
4. The system of claim 1 , wherein the machine-readable instructions, when executed by the processor, further causes the computing device to at least: generate a results report based at least in part on the determination of the component concentrations of the test sample; and cause the results report to be displayed on a user interface.
5. The system of claim 1 , wherein the model is a linear regression model.
6. The system of claim 1 , wherein the machine-readable instructions that cause the computing device to generate the model further cause the computing device to perform iterative wavelength selection on the plurality of calibration spectra to determine a model of best fit.
7. The system of claim 6, wherein the machine-readable instructions that cause the computing device to perform iterative wavelength selection on the plurality of calibration spectra further cause the computing device to perform linear baseline correction on the plurality of calibration spectra.
8. The system of claim 6, wherein the machine-readable instructions that cause the computing device to perform iterative wavelength selection on the plurality of calibration spectra further cause the computing device to use machine learning to determine the model of best fit.
9. A method, comprising: generating a model based at least in part on a plurality of calibration spectra; applying the model to at least one test spectrum, the test spectrum corresponding to a test sample; and determining component concentrations of the test sample based at least in part on the application of the model.
10. The method of claim 9, further comprising: generating the plurality of calibration spectra from a plurality of calibration samples having known component concentrations; and generating the at least one test spectrum from the test sample having unknown component concentrations.11 . The method of claim 10, wherein generating the plurality of calibration spectra and generating the at least one test spectrum is accomplished by infrared spectroscopy or Raman spectroscopy.
12. The method of claim 10, wherein generating the model further comprises: adjusting a plurality of baseline correction parameters; generating a regression model based at least in part on the adjusted baseline correction parameters and the calibration spectra; fitting the regression model to known component concentrations of a plurality of calibration samples based at least in part on a plurality of fitting parameters; and returning a plurality of optimal parameters for the model.
13. The method of claim 12, wherein fitting the regression model further comprises: performing iterative baseline correction on the regression model; and applying a machine learning model to results of the iterative baseline correction to generate a model of best fit.
14. The method of claim 12, wherein the plurality of baseline correction parameters includes a lower limit and a range.
15. The method of claim 12, wherein the plurality of fitting parameters comprises at least one of a correlation coefficient, a root mean squared error, a limit of quantification, a limit of detection, or a weighted combination.
16. A system, comprising: at least one computing device comprising a processor and a memory; and machine-readable instructions stored in the memory that, when executed by the processor, cause the computing device to at least: receive a plurality of calibration spectra corresponding to known component concentrations; set a plurality of baseline correction parameters; generate a regression model based at least in part on the baseline correction parameters and the calibration spectra; fit the regression model to the known component concentrations; and determine a best-fit regression model.
17. The system of claim 16, wherein the machine-readable instructions, when executed by the processor, further causes the computing device to at least: receive a plurality of test spectra corresponding to a plurality of test component concentrations; apply the best-fit regression model to the test spectra; and determine test component concentrations based at least in part on the application of the best-fit regression model.
18. The system of claim 16, wherein the machine-readable instructions which cause the computing device to generate a regression model based at least in part on the baseline correction parameters and the calibration spectra, further cause the computing device to at least: perform iterative baseline correction on the regression model; and apply a machine learning model to results of the iterative baseline correction to generate a model of best fit.
19. The system of claim 16, wherein the plurality of baseline correction parameters includes a lower limit and a range.
20. The system of claim 16, wherein fit of the regression model is determined through one or more fitting parameters, the fitting parameters comprising at least one of a correlation coefficient, a root mean squared error, a limit of quantification, a limit of detection, or a weighted combination.
Citation Information
Patent Citations
Analysing spectral data for the selection of a calibration model
US20110071807A1
Using machine learning and / or neural networks to validate stem cells and their derivatives (2-d cells and 3-d tissues) for use in cell therapy and tissue engineered products
US20210117729A1
Cited By
Online calibration method and device for end point detection system
CN120497180A
Chemometric models for spectroscopic devices
WO2026175787A1
