Boric acid concentration measurement model migration method based on Raman spectrum
By training the concentration measurement model in the Raman spectrometer instrument and using the spectral intensity of the calibration object to invert the focus position and calculate the correction coefficient, the accuracy problem when the concentration measurement model is migrated between Raman spectrometer instruments is solved and the consistency of the measurement results is improved. performance and accuracy.
Patent Information
- Application Number
- CN202411161939.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-23
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-08-23
AI Technical Summary
Deviations in components and optical structures between existing Raman spectroscopy instruments lead to inaccurate measurement results when the concentration measurement model migrates, making it difficult to meet the requirements for quantitative analysis.
By training the concentration measurement model in the first Raman system, the functional relationship between the Raman characteristic spectrum intensity and the focus position is obtained. Combined with the spectral intensity of the calibration object, the focus position is obtained through inversion, the correction coefficient is calculated, and the concentration measurement model is corrected. Make it transferable between different Raman systems.
It effectively reduces the impact of differences between spectral instruments on concentration measurement results, and improves the measurement accuracy of quantitative Raman spectrum analysis and the universality of the model.
Smart Images

Figure CN118674073A
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of concentration measurement, and in particular to a boric acid concentration measurement model migration method based on Raman spectroscopy. Background Art
[0002] Raman spectroscopy is a non-destructive analytical technique based on the interaction of light and chemical bonds within a material, and can provide detailed information about a sample's chemical structure, phase and morphology, crystallinity, and molecular interactions.
[0003] In the related art, due to the deviations in the components, optical paths and mechanical structures of the various Raman spectrometer system components during the Raman spectrum acquisition process, the intensities of the peaks of the Raman spectra collected by different Raman spectrometers are slightly deviated. Therefore, the concentration measurement model established based on the intensity of the characteristic peaks of the substance to be measured in the Raman spectrum measured by a certain Raman spectrometer has instrument exclusivity, that is, when the concentration measurement model established on this instrument is used on another instrument, it will cause a large error in the measured concentration and it will be difficult to meet the requirements of concentration measurement. Even for Raman spectrometer systems with the same optical path and the same model of components, there are problems such as changes in spectral intensity due to focal plane offset during the adjustment process and inaccurate measurements of the original concentration measurement model on other instruments due to changes in relative intensity.
[0004] Therefore, when the measurement model for solution and gas concentration detection based on Raman spectroscopy is migrated from one instrument to another, due to the deviations in components and optical structures between the instruments, the characteristic peak intensities of the substances to be measured in the measured Raman spectra are slightly different. This change affects the accuracy of the concentration measurement model established based on the peak intensity in the Raman spectrum, which is a problem that needs to be solved urgently. Summary of the invention
[0005] The purpose of this application is to provide a technical solution so that a concentration measurement model established based on a certain spectrometer can be migrated and used between different spectrometers.
[0006] Based on the above objectives, the present application provides a boric acid concentration measurement model migration method based on Raman spectroscopy, the method comprising the following steps: Step S11, training a first concentration measurement model under standard conditions in a first Raman system; Step S12, training a first model and a second model in the first Raman system, wherein the first model is a functional relationship between the intensity of the Raman characteristic spectrum of the target substance at a preset concentration under standard conditions and the focal position of the first Raman system, and the second model is a functional relationship between the intensity of the Raman characteristic spectrum of the calibration object under standard conditions and the focal position of the first Raman system; Step S13, under standard conditions, collecting the Raman characteristic spectrum intensity of the calibration object in the second Raman system; Step S14, inverting to obtain the focal position of the second Raman system based on the Raman characteristic spectrum intensity of the calibration object in the second Raman system and the second model; Step S15, obtaining a Raman characteristic spectrum intensity correction coefficient according to the focus position of the second Raman system in combination with the first model; Step S16: Combining the Raman characteristic spectrum intensity correction coefficient with the first concentration measurement model to obtain a second concentration measurement model, and the second Raman system calculates the concentration of the target substance based on the second concentration measurement model.
[0007] Furthermore, step S12 includes: Step S121, under standard conditions, when the focus of the first Raman system is located at the first focus position, obtaining the Raman characteristic spectrum intensity of the target substance of preset concentration detected by the first Raman system as the standard target substance Raman characteristic spectrum intensity; Step S122, under standard conditions, adjusting the focus position in the first Raman system to obtain the Raman characteristic spectrum intensity detected by the first Raman system for the target substance of preset concentration under different focus positions; Step S123, using a regression algorithm to perform machine training, obtain a first functional relationship between the ratio of the Raman characteristic spectrum intensity of the target substance of preset concentration detected by the first Raman system under different focal positions and the Raman characteristic spectrum intensity of the standard target substance and the focal position, and use the first functional relationship as the first model.
[0008] Furthermore, the first model is expressed by the following formula:
[0009] In the formula, I A0 represents the intensity of the Raman characteristic spectrum detected by the first Raman system for the target substance of preset concentration under standard conditions and when the focus of the first Raman system is located at the first focus position, I An Indicates that under standard conditions, the focus of the first Raman system is at the n In the case of a position, the intensity of the Raman characteristic spectrum detected by the first Raman system for the target substance with a preset concentration is, f n Indicates that the focus in the first Raman system is n At each location, F 1 (*) indicates the first functional relationship.
[0010] Furthermore, the Raman characteristic spectrum intensity correction coefficient is expressed by the following formula:
[0011] In the formula, F 1 (*) indicates the first functional relationship, f’ represents the focus position of the second Raman system.
[0012] Furthermore, the first concentration measurement model is expressed by the following formula:
[0013] In the formula, Q A represents the regression model under standard conditions in the first Raman system, I A represents the intensity of the Raman characteristic spectrum detected by the first Raman system on the target substance under standard conditions and when the focus of the first Raman system is located at the first focus position; The second concentration measurement model is expressed by the following formula:
[0014] In the formula, Q A represents the regression model under standard conditions in the first Raman system, M represents the correction coefficient of the Raman characteristic spectrum intensity, I’ A It represents the intensity of the Raman characteristic spectrum detected by the second Raman system on the target substance under standard conditions.
[0015] Furthermore, step S12 further includes: Step S124, under the standard condition, when the focus of the first Raman system is located at the first focus position, obtaining the Raman characteristic spectrum intensity detected by the first Raman system on the calibration object as the Raman characteristic spectrum intensity of the standard calibration object; Step S125, under the standard condition, adjusting the focus position in the first Raman system to obtain the Raman characteristic spectrum intensity detected by the first Raman system on the calibration object under different focus positions; Step S126, using a regression algorithm to perform machine training, obtain a second functional relationship between the ratio of the Raman characteristic spectrum intensity detected by the first Raman system on the calibration object and the Raman characteristic spectrum intensity of the standard calibration object under different focal positions and the focal position, and use the second functional relationship as the second model.
[0016] Furthermore, the second model is expressed by the following formula:
[0017] In the formula, I B0It represents the intensity of the Raman characteristic spectrum detected by the first Raman system on the calibration object under the standard condition and with the focus of the first Raman system located at the first focus position. I Bn Indicates that under standard conditions, the focus of the first Raman system is at the n In the case of the first Raman system detecting the Raman characteristic spectrum intensity of the calibration object at the position, f n Indicates that the focus in the first Raman system is n At each location, F 2 (*) indicates the second functional relationship.
[0018] Further, any one of the following regression algorithms is used for machine training to obtain the first model and the second model: Multiple linear regression, polynomial regression, Lasso regression, ridge regression, elastic net regression, Bayesian ridge regression, Huber regression.
[0019] Furthermore, the method further comprises: The calibration object is placed in the optical path of the Raman system, and the calibration object is not in the solution to be tested; As the focal position of the Raman system changes, the distance between the focus of the Raman system and the liquid surface of the solution to be measured changes, and the distance between the focus of the Raman system and the calibration object changes.
[0020] Furthermore, the method further comprises: Select the original device in the Raman system that can excite Raman light as a calibration object; Alternatively, a device capable of stimulating Raman light is inserted between the Raman system and the solution to be tested, and the device is used as a calibration object.
[0021] The Raman spectroscopy-based boric acid concentration measurement model migration method of the present application enables the concentration measurement model established based on a certain spectral instrument to be migrated and used between different spectral instruments, effectively reducing the impact of differences between spectral instruments on concentration measurement results and improving the measurement accuracy of Raman spectroscopy in quantitative analysis. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 A flow chart of a boric acid concentration measurement model migration method based on Raman spectroscopy provided in an embodiment of the present application; Figure 2 A schematic diagram of a Raman system provided in an embodiment of the present application monitoring an optical structure to obtain a Raman spectrum; Figure 3 A schematic diagram of the migration of the concentration measurement model provided in an embodiment of the present application; Figure 4A flowchart for obtaining a first model provided in an embodiment of the present application; Figure 5 A schematic diagram of training a first model in a first Raman system provided in an embodiment of the present application; Figure 6 A flowchart for obtaining a second model provided in an embodiment of the present application; Figure 7 A schematic diagram of training a second model in a first Raman system provided in an embodiment of the present application. DETAILED DESCRIPTION
[0023] The present application will be described in detail below in conjunction with the specific implementation modes shown in the accompanying drawings, but these implementation modes do not limit the present application. Structural, methodological, or functional changes made by ordinary technicians in the field based on these implementation modes are included in the protection scope of the present application.
[0024] like Figure 1 As shown, an embodiment of the present application provides a boric acid concentration measurement model migration method based on Raman spectroscopy (hereinafter referred to as the concentration measurement model migration method), and the concentration measurement model migration method includes the following steps: Step S11, training a first concentration measurement model under standard conditions in a first Raman system; Step S12, training a first model and a second model in the first Raman system, wherein the first model is a functional relationship between the intensity of the Raman characteristic spectrum of the target substance at a preset concentration under standard conditions and the focal position of the first Raman system, and the second model is a functional relationship between the intensity of the Raman characteristic spectrum of the calibration object under standard conditions and the focal position of the first Raman system; Step S13, under standard conditions, collecting the Raman characteristic spectrum intensity of the target substance at a preset concentration and the Raman characteristic spectrum intensity of the calibration object in the second Raman system; Step S14, inverting to obtain the focal position of the second Raman system based on the Raman characteristic spectrum intensity of the calibration object in the second Raman system and the second model; Step S15, obtaining a Raman characteristic spectrum intensity correction coefficient according to the focus position of the second Raman system in combination with the first model; Step S16: Combining the Raman characteristic spectrum intensity correction coefficient with the first concentration measurement model to obtain a second concentration measurement model, and the second Raman system calculates the concentration of the target substance based on the second concentration measurement model.
[0025] According to the above description, the concentration measurement model migration method provided in the embodiment of the present application improves the accuracy and universality of the concentration measurement model trained in the first Raman system by selecting a calibration object associated with a target substance of a preset concentration for calibration under standard conditions. Then, the first concentration measurement model, the first model, and the second model obtained by training in the first Raman system are migrated and applied to the second Raman system to obtain the second concentration measurement model, thereby calculating the concentration of the target substance, so that the concentration measurement model established based on the first Raman system can be migrated and used between different Raman systems, thereby improving the effectiveness and consistency of the concentration measurement model applied on different Raman systems. The concentration measurement model migration method of the embodiment of the present application enables the concentration measurement model established in a certain Raman system to be migrated and used between different Raman systems, effectively reducing the impact of differences between Raman systems on concentration measurement results, and improving the measurement accuracy of Raman spectroscopy in quantitative analysis.
[0026] It should be noted that the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features.
[0027] It is easy to understand that the first Raman system and the second Raman system in the embodiment of the present application refer to two Raman spectrometer systems. The embodiment of the present application is explained by taking the migration of the model obtained by training in the first Raman system to the second Raman system as an example.
[0028] It should be noted that the standard conditions in the embodiments of the present application mean that the quantitative detection of Raman spectroscopy needs to be carried out under pre-set standard conditions, such as pre-setting the temperature to T degrees Celsius, the pipeline pressure to G kilopascals, the flow rate to F, etc. as standard conditions for quantitative detection of Raman spectroscopy. In actual applications, the standard conditions can be set according to specific needs.
[0029] In order to more clearly illustrate the application of the concentration measurement model migration method of the embodiment of the present application, Figure 2 As shown, it is a schematic diagram of a Raman system monitoring optical structure to obtain Raman spectrum in an application scenario of the present application example, and the Raman system here can be a first Raman system or a second Raman system. Specifically, under standard conditions, when the Raman system is used to monitor the solution to be tested in the sample pipeline to obtain the Raman spectrum, a flange window is opened on the sample pipeline, and the solution to be tested is located in the sample pipeline. The light source emits a light beam, and the light beam is focused on the solution to be tested through a focusing lens after passing through several optical devices, and Raman scattered light is excited at the solution to be tested. The Raman scattered light is finally received by the Raman probe in the Raman system, thereby obtaining the Raman spectrum.
[0030] As an optional implementation method, the embodiment of the present application sets the calibration object in the optical path of the Raman system, and the calibration object is not in the solution to be tested; as the focal position of the Raman system changes, the distance between the focus of the Raman system and the liquid surface of the solution to be tested changes, and the distance between the focus of the Raman system and the calibration object changes.
[0031] Specifically, the solution to be tested includes the target substance, and the calibration object is placed at an appropriate position in the light path. For example, the calibration object may include a substance with a stable Raman characteristic peak, such as diamond, silicon wafer, quinine sulfate, etc. In actual application, the calibration object can be selected according to specific needs.
[0032] It is easy to understand that the obtained Raman spectrum includes the Raman characteristic spectrum intensity of the target substance and the Raman characteristic spectrum intensity of the calibration object. The first Raman system obtains a first Raman spectrum, and the first Raman spectrum includes the Raman characteristic spectrum intensity of the target substance at a preset concentration detected by the first Raman system under standard conditions and the Raman characteristic spectrum intensity of the calibration object. The second Raman system obtains a second Raman spectrum, and the second Raman spectrum includes the Raman characteristic spectrum intensity of the target substance to be tested and the Raman characteristic spectrum intensity of the calibration object detected by the second Raman system under standard conditions.
[0033] By selecting an object other than the solution to be tested as a calibration object, the influence of the introduction of the calibration object on the solution to be tested is avoided, and the calibration object is not affected by factors such as the concentration and flow rate of the solution to be tested. Therefore, the Raman characteristic spectrum intensity of the calibration object can be avoided from being affected by environmental factors, laser power changes, system errors and other factors. The calibration object can be used to calibrate the consistency and accuracy of the Raman spectra obtained at different focal positions, thereby making the quantitative concentration detection of the solution to be tested using the Raman system more accurate and reliable.
[0034] Moreover, when the focal position of the Raman system changes, the distance between the focus of the Raman system and the liquid surface of the solution to be tested and the distance between the focus of the Raman system and the calibration object change. This change in distance will affect the intensity of the Raman characteristic spectrum. In this way, the Raman characteristic spectrum intensities of the solution to be tested and the calibration object at a series of different focal positions can be obtained. These data facilitate machine learning training to obtain the first model and the second model.
[0035] As an optional implementation method, the concentration measurement model migration method of the embodiment of the present application also includes: selecting a device that can excite Raman light in the Raman system as a calibration object; or, inserting a device that can excite Raman light between the Raman system and the solution to be tested, and using the device as a calibration object.
[0036] Specifically, in the process of the light source passing through the optical path to the solution to be tested, there may be some devices that can also excite Raman light. In the relevant technology, the Raman light excited by these devices is generally regarded as stray light, and will not be considered for application during the test process. Even in the design and construction of the Raman system, optical devices with Raman activity will be avoided as much as possible to avoid interference with the Raman signal of the substance to be tested. Therefore, in this embodiment, the original optical device with Raman activity in the system when the Raman spectrum of the solution is excited is specially selected as a calibration object. The spectral signal of the calibration object is usually regarded as a stray light signal, but it will not be affected by factors such as solution concentration and flow rate, so that the spectrum calibration can be more accurate.
[0037] In addition, the original optical device in the Raman system is used as a calibration object. The structural parameters and optical parameters of the calibration object are fixed, which is more convenient for calibrating the Raman spectrum. In addition, this method does not require the introduction of additional optical devices, so there is no need to consider the installation of the device when introducing additional calibration objects. This solution is low in cost and easy to operate.
[0038] It is easy to understand that in addition to using the original optical devices in the Raman system as calibration objects, a substance with Raman activity can be inserted between the Raman system and the solution to be tested as a calibration object. In this way, the accurate calibration of the Raman spectrum can also be achieved.
[0039] More specifically, Figure 3 As shown, it is a schematic diagram of the application of the first Raman system provided in the embodiment of the present application to migrate the concentration measurement model to the second Raman system. In the first Raman system, the Raman spectrum acquired by the first Raman system includes the Raman characteristic spectrum intensity of the target substance with a preset concentration and the Raman characteristic spectrum intensity of the calibration object. The functional relationship between the Raman characteristic spectrum intensity of the target substance with a preset concentration and the focal position of the first Raman system under the standard condition is used as the first model, and the functional relationship between the Raman characteristic spectrum intensity of the calibration object and the focal position of the first Raman system under the standard condition is used as the second model.
[0040] As an optional implementation, Figure 4 As shown, step S12 of the concentration measurement model migration method in the embodiment of the present application includes: Step S121, under standard conditions, when the focus of the first Raman system is located at the first focus position, obtaining the Raman characteristic spectrum intensity of the target substance of preset concentration detected by the first Raman system as the standard target substance Raman characteristic spectrum intensity; Step S122, under standard conditions, adjusting the focus position in the first Raman system to obtain the Raman characteristic spectrum intensity detected by the first Raman system for the target substance of preset concentration under different focus positions; Step S123, using a regression algorithm to perform machine training, obtain a first functional relationship between the ratio of the Raman characteristic spectrum intensity of the target substance of preset concentration detected by the first Raman system under different focal positions and the Raman characteristic spectrum intensity of the standard target substance and the focal position, and use the first functional relationship as the first model.
[0041] To explain the process of obtaining the first model in more detail, Figure 5 As shown, a schematic diagram of training a first model in a first Raman system provided by an embodiment of the present application. Under standard conditions, the focus of the first Raman system is placed at a first focal position, the Raman characteristic spectrum intensity of a target substance of a preset concentration is detected and recorded, and the Raman characteristic spectrum intensity of the target substance of the preset concentration of the first Raman system is marked as the standard target substance Raman characteristic spectrum intensity, which is the benchmark for subsequent acquisition of the first model. Under the same standard conditions, the focal position of the first Raman system is adjusted so that the focus is at different positions. At each focal position, the Raman characteristic spectrum intensity of the target substance of the preset concentration is detected and recorded.
[0042] Then, the collected data is machine trained using a regression algorithm to obtain a first functional relationship, which can describe the relationship between the ratio between the Raman characteristic spectrum intensity of the target substance of the preset concentration and the Raman characteristic spectrum intensity of the standard target substance by the first Raman system at different focal positions and the focal position. The first functional relationship, i.e., the first model, can be used to preset or correct the Raman characteristic spectrum intensity at different focal positions, and to infer the Raman characteristic spectrum intensity correction coefficient.
[0043] As an optional implementation, the first model is expressed by the following formula: Formula (1); In the formula, I A0 represents the intensity of the Raman characteristic spectrum detected by the first Raman system for the target substance of preset concentration under standard conditions and when the focus of the first Raman system is located at the first focus position, I An Indicates that under standard conditions, the focus of the first Raman system is at the n In the case of a position, the intensity of the Raman characteristic spectrum detected by the first Raman system for the target substance with a preset concentration is, f n Indicates that the focus in the first Raman system is n At each location, F 1 (*) indicates the first functional relationship.
[0044] As an optional implementation, Figure 6As shown, step S12 of the concentration measurement model migration method in the embodiment of the present application also includes: Step S124, under the standard condition, when the focus of the first Raman system is located at the first focus position, obtaining the Raman characteristic spectrum intensity detected by the first Raman system on the calibration object as the Raman characteristic spectrum intensity of the standard calibration object; Step S125, under the standard condition, adjusting the focus position in the first Raman system to obtain the Raman characteristic spectrum intensity detected by the first Raman system on the calibration object under different focus positions; Step S126, using a regression algorithm to perform machine training, obtain a second functional relationship between the ratio of the Raman characteristic spectrum intensity detected by the first Raman system on the calibration object and the Raman characteristic spectrum intensity of the standard calibration object under different focal positions and the focal position, and use the second functional relationship as the second model.
[0045] To explain the process of obtaining the second model in more detail, Figure 7 As shown, a schematic diagram of training a second model in a first Raman system provided by an embodiment of the present application. Under standard conditions, the focus of the first Raman system is placed at a first focal position, the Raman characteristic spectrum intensity of the calibration object is detected and recorded, and the Raman characteristic spectrum intensity of the calibration object of the first Raman system is marked as the Raman characteristic spectrum intensity of the standard calibration object, which is the basis for subsequent acquisition of the second model. Under the same standard conditions, the focus position of the first Raman system is adjusted so that the focus is at different positions. At each focal position, the Raman characteristic spectrum intensity of the calibration object is detected and recorded.
[0046] Then, the collected data is machine trained using a regression algorithm to obtain a second functional relationship, which can describe the relationship between the ratio between the Raman characteristic spectrum intensity of the calibration object and the Raman characteristic spectrum intensity of the standard calibration object of the first Raman system and the focal position at different focal positions. The second functional relationship is the second model, which can be used to combine the Raman characteristic spectrum intensity of the calibration object of the second Raman system to be migrated and applied to invert and obtain the focal position of the second Raman system.
[0047] As an optional implementation, the second model is expressed by the following formula: Formula (2); In the formula, I B0 It represents the intensity of the Raman characteristic spectrum detected by the first Raman system on the calibration object under the standard condition and with the focus of the first Raman system located at the first focus position. I Bn Indicates that under standard conditions, the focus of the first Raman system is at the n In the case of the first Raman system detecting the Raman characteristic spectrum intensity of the calibration object at the position,f n Indicates that the focus in the first Raman system is n At each location, F 2 (*) indicates the second functional relationship.
[0048] As an optional implementation method, any one of the following regression algorithms is used for machine training to obtain the first model and the second model: multivariate linear regression, polynomial regression, Lasso regression, ridge regression, elastic network regression, Bayesian ridge regression, Huber regression.
[0049] The regression algorithm is a supervised learning algorithm. The regression algorithm describes the relationship between the input features and the target variable by establishing a model. This relationship can be represented by a function that maps the input features to the target variable. For example, in the first model, the input features can be the Raman characteristic spectrum intensity and focal position of the target substance, and the target variable can be the concentration of the target substance. In the second model, the input features can be the Raman characteristic spectrum intensity and focal position of the calibration object, and the target variable can be the concentration of the target substance.
[0050] Specifically, multivariate linear regression can predict the linear relationship between input features and target variables; polynomial regression is an extension of multivariate linear regression, and polynomial regression can be used to capture more complex relationships in Raman spectroscopy, such as obtaining nonlinear relationships by introducing high-order terms of input features; Lasso regression and ridge regression are variants of linear regression, and Lasso regression can help identify the most important Raman spectral features for concentration prediction, and ridge regression can improve the stability of the trained model when there is a strong correlation between input features; elastic network regression is a hybrid of Lasso regression and ridge regression, and elastic network regression is very useful when the number of input features is greater than the number of samples or there are multiple collinearities between input features; Bayesian ridge regression can provide a prior distribution of regression coefficients and perform parameter estimation by maximizing the marginal log-likelihood; Huber regression is a regression algorithm that is resistant to outliers, which modifies the loss function so that square loss is used when the prediction error is small, and linear loss is used when the prediction error is large.
[0051] In practical applications, multiple regression algorithms can be tested multiple times, and the performance of the obtained models can be evaluated through methods such as cross-validation. Finally, one or two or more regression algorithms with the best effect can be selected for machine training to obtain the first model and the second model.
[0052] As an optional implementation, according to the obtained focal position of the second Raman system, combined with the first model, the obtained Raman characteristic spectrum intensity correction coefficient is expressed by the following formula: Formula (3); In the formula, F 1 (*) indicates the first functional relationship, f’ represents the focus position of the second Raman system.
[0053] After the focus position of the second Raman system is obtained, the first model can be used to estimate the change in Raman characteristic spectrum intensity caused by the different focus positions. The first model is established during the training process, and it associates the relationship between the Raman characteristic spectrum intensity of the target substance of a preset concentration and the focus position.
[0054] By inputting the focal position of the second Raman system into the first model, the first model will output a correction coefficient, namely the Raman characteristic spectrum intensity correction coefficient, which is used to adjust the Raman characteristic spectrum intensity measured by the second Raman system to compensate for the influence of the change in the focal position. The Raman characteristic spectrum intensity correction coefficient reflects the proportional relationship between the Raman characteristic spectrum intensity measured by the second Raman system and the Raman characteristic spectrum intensity at the focal position.
[0055] As an optional implementation, the first concentration measurement model is expressed by the following formula: Formula (4); In the formula, Q A represents the regression model under standard conditions in the first Raman system, I A It represents the intensity of the Raman characteristic spectrum detected by the first Raman system on the target substance under standard conditions and when the focus of the first Raman system is located at the first focus position.
[0056] The Raman characteristic spectrum intensity correction coefficient is combined with the first concentration measurement model to obtain the second concentration measurement model represented by the following formula: Formula (5); In the formula, Q A represents the regression model under standard conditions in the first Raman system, M represents the correction coefficient of the Raman characteristic spectrum intensity, I’ A It represents the intensity of the Raman characteristic spectrum detected by the second Raman system for the target substance under standard conditions.
[0057] The second concentration measurement model can calculate the concentration of the target substance based on the corrected Raman characteristic spectrum intensity measured by the second Raman system. The first concentration measurement model is trained under standard conditions and associates the relationship between the Raman characteristic spectrum intensity and the target substance concentration. By combining the Raman characteristic spectrum intensity correction coefficient with the first concentration measurement model, it can be ensured that the concentration of the target substance can be accurately measured even on different Raman systems.
[0058] In summary, the concentration measurement model migration method for quantitative detection based on Raman spectroscopy provided in the embodiment of the present application selects a device other than the solution to be tested as a calibrant for calibration, and sets the calibrant in the optical path of the Raman system. Under standard conditions, a first concentration measurement model, a first model, and a second model are obtained by machine training in a first Raman system, and these models are migrated and applied to a second Raman system to obtain a second concentration measurement model, thereby calculating the concentration of the target substance, so that the concentration measurement model established based on the first Raman system can be migrated and used between different Raman systems, thereby improving the accuracy and universality of the concentration measurement model trained in the Raman system, improving the effectiveness and consistency of the concentration measurement model applied to different Raman systems, effectively reducing the impact of differences between Raman systems on concentration measurement results, and improving the measurement accuracy of Raman spectroscopy in quantitative analysis.
[0059] The above disclosure is only the preferred embodiment of the present application, but it is not intended to limit the scope of rights of the present application. A person of ordinary skill in the art can understand that without departing from the spirit and scope of the present application and the appended claims, changes, modifications, substitutions, combinations, and simplifications should all be equivalent replacement methods and still fall within the scope of the invention.
Claims
1. A boric acid concentration measurement model migration method based on Raman spectroscopy, characterized in that: The method comprises the following steps: Step S11, training a first concentration measurement model under standard conditions in a first Raman system; Step S12, training a first model and a second model in the first Raman system, wherein the first model is a functional relationship between the intensity of the Raman characteristic spectrum of the target substance at a preset concentration under standard conditions and the focal position of the first Raman system, and the second model is a functional relationship between the intensity of the Raman characteristic spectrum of the calibration object under standard conditions and the focal position of the first Raman system; Step S13, collecting the Raman characteristic spectrum intensity of the calibration object in the second Raman system under the standard condition; Step S14, inverting and obtaining the focal position of the second Raman system based on the Raman characteristic spectrum intensity of the calibration object in the second Raman system and the second model; Step S15, obtaining a Raman characteristic spectrum intensity correction coefficient according to the focus position of the second Raman system in combination with the first model; Step S16: Combining the Raman characteristic spectrum intensity correction coefficient with the first concentration measurement model to obtain a second concentration measurement model, and the second Raman system calculates the concentration of the target substance based on the second concentration measurement model.
2. The boric acid concentration measurement model migration method based on Raman spectroscopy according to claim 1, characterized in that: The step S12 includes: Step S121, under the standard condition, when the focus of the first Raman system is located at the first focus position, obtaining the Raman characteristic spectrum intensity detected by the first Raman system for the target substance of the preset concentration as the standard target substance Raman characteristic spectrum intensity; Step S122, under the standard condition, adjusting the focus position in the first Raman system to obtain the Raman characteristic spectrum intensity detected by the first Raman system for the target substance of the preset concentration under different focus positions; Step S123, using a regression algorithm to perform machine training, to obtain a first functional relationship between the ratio of the Raman characteristic spectrum intensity detected by the first Raman system for the target substance of the preset concentration and the Raman characteristic spectrum intensity of the standard target substance under different focal positions and the focal position, and to use the first functional relationship as the first model.
3. The method according to claim 2, characterized in that The first model is expressed by the following formula: ; In the formula, I A0 represents the intensity of the Raman characteristic spectrum detected by the first Raman system for the target substance of the preset concentration under the standard condition and when the focus of the first Raman system is located at the first focus position, I An In the standard condition, the focus of the first Raman system is at the n In the case of a position, the intensity of the Raman characteristic spectrum detected by the first Raman system for the target substance of the preset concentration, f n Indicates that the focus in the first Raman system is n At each location, F 1(*) represents the first functional relationship.
4. The method according to claim 3, characterized in that The Raman characteristic spectrum intensity correction coefficient is expressed by the following formula: ; In the formula, F 1(*) represents the first functional relationship, f’ represents the focus position of the second Raman system.
5. The method according to claim 4, characterized in that The first concentration measurement model is expressed by the following formula: ; In the formula, Q A represents the regression model under standard conditions in the first Raman system, I A represents the intensity of the Raman characteristic spectrum detected by the first Raman system on the target substance under the standard condition and when the focus of the first Raman system is located at the first focus position; The second concentration measurement model is expressed by the following formula: ; In the formula, Q A represents the regression model under standard conditions in the first Raman system, M represents the Raman characteristic spectrum intensity correction coefficient, I’ A It represents the intensity of the Raman characteristic spectrum detected by the second Raman system on the target substance under the standard condition.
6. The method according to claim 2, characterized in that The step S12 further includes: Step S124, under the standard condition, when the focus of the first Raman system is located at the first focal position, obtaining the Raman characteristic spectrum intensity detected by the first Raman system on the calibration object as the Raman characteristic spectrum intensity of the standard calibration object; Step S125, under the standard condition, adjusting the focus position in the first Raman system to obtain the Raman characteristic spectrum intensity detected by the first Raman system on the calibration object under different focus positions; Step S126, using a regression algorithm to perform machine training to obtain a second functional relationship between the ratio of the Raman characteristic spectrum intensity detected by the first Raman system on the calibration object and the Raman characteristic spectrum intensity of the standard calibration object under different focal positions and the focal position, and use the second functional relationship as the second model.
7. The method according to claim 6, characterized in that The second model is expressed by the following formula: ; In the formula, I B0 represents the intensity of the Raman characteristic spectrum detected by the first Raman system on the calibration object under the standard condition and with the focus of the first Raman system located at the first focal position, I Bn In the standard condition, the focus of the first Raman system is at the n In the case of a position, the intensity of the Raman characteristic spectrum detected by the first Raman system on the calibration object, f n Indicates that the focus in the first Raman system is n At each location, F 2(*) represents the second functional relationship.
8. The method according to claim 6, characterized in that Any one of the following regression algorithms is used for machine training to obtain the first model and the second model: Multiple linear regression, polynomial regression, Lasso regression, ridge regression, elastic net regression, Bayesian ridge regression, Huber regression.
9. The method for boric acid concentration measurement model migration based on Raman spectroscopy according to claim 1, characterized in that: The method further comprises: The calibration object is arranged in the optical path of the Raman system, and the calibration object is not in the solution to be tested; As the focal position of the Raman system changes, the distance between the focus of the Raman system and the liquid surface of the solution to be tested changes, and the distance between the focus of the Raman system and the calibration object changes.
10. The method for boric acid concentration measurement model migration based on Raman spectroscopy according to claim 9, characterized in that: The method further comprises: Selecting a device that is already in the Raman system and is capable of stimulating Raman light as the calibration object; Alternatively, a device capable of stimulating Raman light is inserted between the Raman system and the solution to be tested, and the device is used as the calibration object.
Citation Information
Patent Citations
System and method for improving calibration transfer between multiple raman analyzer installations
CN113945553A
Raman spectrum method for rapidly detecting substances in packaging container
CN113970539A
Quantitative method for solute in water based on Raman spectrum background deduction
CN114184600A
Assessing blood brain barrier dynamics or identifying or measuring selected substances or toxins in a subject by analyzing raman spectrum signals of selected regions in the eye
US20010034478A1
Target Analyte Detection and Quantification in Sample Gases With Complex Background Compositions
US20160132617A1
