A method, device and equipment for chromatographic signal peak offset alignment
By detecting and aligning chromatographic signal peak offsets through a deep convolutional neural network model, it solves the problems of versatility and noise sensitivity in the existing technology and achieves efficient signal peak alignment in different scenarios.
Patent Information
- Application Number
- CN202410750033.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-12
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2044-06-12
AI Technical Summary
Existing chromatographic signal peak alignment methods have limitations in versatility and noise sensitivity, resulting in poor stability in different application scenarios and difficulty in effectively handling peak shifts.
Using a deep convolutional neural network model, by obtaining the standard spectrum signal and the maximum allowable offset of the signal peak, a model is constructed whose input is the spectrum signal and the output is the normalized predicted value of each peak offset of the spectrum signal. Carry out training and testing to achieve peak offset detection and alignment of the spectrum signal to be measured.
It achieves improved versatility and stability in different application scenarios, can effectively resist noise interference, and improves the accuracy and stability of signal peak alignment.
Smart Images

Figure CN118330118B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of signal processing, and in particular to a chromatographic signal peak offset alignment method, device and equipment. Background Art
[0002] Chromatography is a commonly used analytical technique for separating and determining compounds in a mixture. It is widely used in many fields such as chemistry, biology, environment, and food because it can provide valuable information in separation, qualitative, quantitative, and structural identification, and can meet the needs of compound analysis in different fields.
[0003] Chromatographic technology is mainly based on the interaction between samples and chromatographic columns to achieve the separation of mixture compounds, and to characterize different compounds based on the difference in retention time (RT) in the chromatographic signal. However, due to factors such as environmental conditions, gas flow rate, and column aging, the retention time of the same compound may change in multiple samplings, resulting in peak shift problems. Peak shift will lead to incorrect characterization of the substance and ultimately affect the analysis results of the spectrum. Therefore, aligning the chromatographic peaks of the same compound in multiple samples is a key step in chromatographic signal analysis.
[0004] Existing peak alignment methods are based on traditional semiotics, that is, peak alignment is achieved based on a set of formalized mathematical rules. These methods are designed for specific types of data or problems to solve problems with clear rules. They have universality problems and noise sensitivity problems. The universality problem limits the application scenarios of the methods, and the noise sensitivity problem affects the stability of the methods. Therefore, solving the universality problem and noise sensitivity problem of the chromatographic signal peak offset alignment method is a technical problem that technicians in this field need to solve urgently. Summary of the invention
[0005] The present invention provides a chromatographic signal peak offset alignment method, device and equipment, which are used to solve the technical problems that the existing chromatographic signal peak offset alignment method is limited in universality and easily affected in stability due to noise sensitivity.
[0006] In view of this, the first aspect of the present invention provides a chromatographic signal peak offset alignment method, comprising:
[0007] Obtain standard spectrum signal and configure the maximum allowable offset of signal peak;
[0008] Based on the standard spectrogram signal and the maximum allowable offset of the signal peak, a deep convolutional neural network model is constructed, whose input is the spectrogram signal and whose output is the normalized predicted value of each peak offset of the spectrogram signal. The deep convolutional neural network model includes a convolutional layer, a pooling layer and a fully connected layer, and the activation function of the fully connected layer is a bitangent function.
[0009] The deep convolutional neural network model is trained and tested to obtain a chromatographic signal peak offset detection model;
[0010] Inputting the spectrum signal to be measured into the chromatographic signal peak shift detection model to obtain a normalized predicted value of each peak shift of the spectrum signal to be measured;
[0011] Each peak of the spectrum signal to be measured is aligned according to the normalized predicted value of the offset of each peak of the spectrum signal to be measured and the maximum allowable offset of the signal peak.
[0012] Optionally, aligning each peak of the spectrum signal to be measured according to the normalized predicted value of the offset of each peak of the spectrum signal to be measured and the maximum allowable offset of the signal peak includes:
[0013] Determine the offset direction of each peak of the spectrum signal to be measured according to the normalized predicted value of the offset of each peak of the spectrum signal to be measured;
[0014] According to the offset direction of each peak of the spectrum signal to be measured, each peak of the spectrum signal to be measured is moved in the opposite direction of the offset direction. , so that each peak of the spectrum signal to be measured is aligned one by one, where, is the normalized predicted value of the peak offset, and T is the maximum allowable offset of the signal peak.
[0015] Optionally, the loss function used for deep convolutional neural network model training is:
[0016]
[0017] in, is the loss function, k is the number of peaks of the spectrum signal, is the actual offset of the ith peak, is the predicted offset of the ith peak.
[0018] Optionally, during deep convolutional neural network model training, a batch normalization layer is added after the convolutional layer or the fully connected layer.
[0019] Optionally, during the training process of the deep convolutional neural network model, a dropout layer is added between layers of the deep convolutional neural network model.
[0020] Optionally, the model parameters of the deep convolutional neural network model are trained using gradient descent.
[0021] Optionally, an adaptive moment estimation optimization algorithm is used to adjust the learning rate of the training deep convolutional neural network model and update model parameters.
[0022] A second aspect of the present invention provides a chromatographic signal peak offset alignment device, comprising:
[0023] An acquisition module, used to acquire a standard spectrum signal and configure a maximum allowable offset of a signal peak;
[0024] A model building module is used to build a deep convolutional neural network model whose input is a spectrogram signal and whose output is a normalized predicted value of each peak offset of the spectrogram signal based on a standard spectrogram signal and a maximum allowable offset of a signal peak. The deep convolutional neural network model includes a convolutional layer, a pooling layer, and a fully connected layer, and the activation function of the fully connected layer is a bitangent function.
[0025] A training module is used to train and test the deep convolutional neural network model to obtain a chromatographic signal peak offset detection model;
[0026] The offset prediction module is used to input the spectrum signal to be tested into the chromatographic signal peak offset detection model to obtain the normalized predicted value of each peak offset of the spectrum signal to be tested;
[0027] The peak alignment module is used to align each peak of the spectrum signal to be measured according to the normalized predicted value of the offset of each peak of the spectrum signal to be measured and the maximum allowable offset of the signal peak.
[0028] Optionally, the peak alignment module is specifically used for:
[0029] Determine the offset direction of each peak of the spectrum signal to be measured according to the normalized predicted value of the offset of each peak of the spectrum signal to be measured;
[0030] According to the offset direction of each peak of the spectrum signal to be measured, each peak of the spectrum signal to be measured is moved in the opposite direction of the offset direction. , so that each peak of the spectrum signal to be measured is aligned one by one, where, is the normalized predicted value of the peak offset, and T is the maximum allowable offset of the signal peak.
[0031] A third aspect of the present invention provides a chromatographic signal peak offset alignment device, the device comprising a processor and a memory:
[0032] The memory is used to store program code and transmit the program code to the processor;
[0033] The processor is used to execute the chromatographic signal peak offset alignment method described in any one of the first aspects according to the instructions in the program code.
[0034] It can be seen from the above technical solutions that the chromatographic signal peak offset alignment method provided by the present invention has the following advantages:
[0035] The chromatographic signal peak offset alignment method provided by the present invention directly realizes the automatic prediction from the spectrum signal to the peak offset by using a deep convolutional neural network, which effectively makes up for the defects of manually extracting the spectrum features, is suitable for different application scenarios, and is not limited by universality. At the same time, the deep convolutional neural network model is based on a large amount of data training, has a stronger resistance to random interference factors such as noise, and has stronger stability. The normalized prediction value of the peak offset output by the deep convolutional neural network model is combined with the maximum allowable offset of the signal peak to align each peak of the spectrum signal to be tested, thereby improving the signal peak alignment effect, and solving the technical problems that the existing chromatographic signal peak offset alignment method is limited in universality and easily affected by noise sensitivity and stability. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0037] Figure 1 A schematic flow chart of a chromatographic signal peak offset alignment method provided in an embodiment of the present invention;
[0038] Figure 2 A schematic diagram of the structure of a deep convolutional neural network model provided in an embodiment of the present invention;
[0039] Figure 3 A schematic diagram of the fully connected layer structure of the deep convolutional neural network model provided in an embodiment of the present invention;
[0040] Figure 4 A schematic diagram of correcting RT according to a peak offset estimation value provided in an embodiment of the present invention;
[0041] Figure 5 A schematic diagram of the alignment effect of the chromatographic signal peak offset alignment method provided in an embodiment of the present invention;
[0042] Figure 6 A schematic diagram of the structure of a chromatographic signal peak offset alignment device provided in an embodiment of the present invention;
[0043] Figure 7 A schematic diagram of the structure of a chromatographic signal peak offset alignment device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0044] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0045] For easier understanding, see Figure 1 The present invention provides an embodiment of a chromatographic signal peak offset alignment method, comprising:
[0046] Step 101: Obtain a standard spectrum signal and configure the maximum allowable offset of the signal peak.
[0047] It should be noted that the standard spectrum signal is determined first. There are k spectrum peak signals in the standard spectrum signal that need to be paid attention to, and the retention times are RT = [ rt 1 , rt 2 ,..., rt k ] Assuming that the maximum allowable offset of the signal peak is T, setting the model parameter T means that the peak model will not be corrected for the peak whose absolute value of the offset exceeds T.
[0048] Step 102: Based on the standard spectrogram signal and the maximum allowable offset of the signal peak, a deep convolutional neural network model is constructed, whose input is the spectrogram signal and whose output is the normalized predicted value of each peak offset of the spectrogram signal. The deep convolutional neural network model includes a convolutional layer, a pooling layer and a fully connected layer, and the activation function of the fully connected layer is a bitangent function.
[0049] It should be noted that the structure of the deep convolutional neural network model is as follows Figure 2 As shown in the figure, it mainly consists of two parts: the spectrogram signal encoder and the fully connected layer. The spectrogram signal encoder realizes the extraction of peak information from the original spectrogram signal, and the fully connected layer realizes the mapping from peak information to peak offset. The spectrogram signal encoder includes convolutional layers and pooling layers.
[0050] Convolution layer: contains multiple convolution kernels, and the input is the original chromatographic signal. It processes the one-dimensional sequence data through convolution calculation, separates and extracts the peak curves at different positions in the spectrum. As the number of layers increases, the size of the convolution kernel decreases, and the number of convolution kernels increases.
[0051] Pooling layer: For each peak signal segment extracted by the convolution kernel, the peak vertex position is obtained through the maximum pooling operation. It should be noted that if the original pooling layer is used here, the returned result is actually the peak height information. Here, an index pooling layer is customized, and the returned result is the position corresponding to the maximum value.
[0052] Fully connected layer: Similar to the traditional convolutional network, after the peak information in the spectrum is extracted through the convolution layer and the pooling layer, the connection from the peak position information to the peak offset is realized through the fully connected layer. The structure of the fully connected layer is as follows Figure 3 As shown, note that the number of neurons in the output layer of the fully connected layer is k, corresponding to the number of peaks in the spectrogram, and the activation value of each neuron represents the offset of the corresponding peak. Use the bitangent function As the activation function of the output layer, the peak shift is between -1 and 1:
[0053]
[0054] Each peak offset output by the deep convolutional neural network model is normalized, where a peak offset of 0 indicates perfect alignment, -1 indicates left offset, and 1 indicates right offset.
[0055] Step 103: train and test the deep convolutional neural network model to obtain a chromatographic signal peak offset detection model.
[0056] It should be noted that the deep convolutional neural network model is trained and tested using massive spectrogram signal sample data. For a spectrogram signal sample containing k peaks, the actual offset of each peak is recorded as y = [ y 1 , y 2 ,..., y k ] , the estimated offset is recorded as y * = [ y 1 * , y 2 * ,..., y k * ] , the mean squared error (MSE) is used to measure the loss function of a single sample. In the training process of the deep convolutional neural network model, the loss function constructed is:
[0057]
[0058] in, is the loss function, k is the number of peaks of the spectrum signal, is the actual offset of the ith peak, is the predicted offset of the ith peak.
[0059] For any parameters in the training process, the parameters can be trained by gradient descent method to find the parameter convergence value that makes the loss function reach the minimum. The main steps include:
[0060] ① Set initial values for the parameters: weight w and bias b;
[0061] ②Forward propagation, calculating the model prediction value , and calculate the loss function in combination with the true value y;
[0062] ③ Back propagation, calculate the gradient of the loss function with respect to the parameters , , where L is the loss function Loss();
[0063] ④ Update the parameters according to the gradient, assuming that the learning rate is , after each forward and backward propagation, the parameters are updated once:
[0064]
[0065]
[0066] All parameters in the network layer can be trained using the above method to find the parameters that make the predicted value of the peak offset closest to the true value.
[0067] To avoid the problem of slow convergence caused by a large number of parameters, the parameter training process uses the adaptive moment estimation optimization algorithm Adam (Adaptive Moment Estimation). Adam's hyperparameters include the learning rate , the exponential decay rate of the first-order moment estimate , the exponential decay rate of the second-order moment estimate , and an error term The specific process of Adam is as follows:
[0068] ① During the gradient descent process, record the first-order exponential weighted average of the derivative dw of the weight w , and the second-order exponentially weighted average :
[0069]
[0070]
[0071] ②At the beginning of training, initialize , , and based on the calculation results of step ①, update the first-order exponential weighted average and the second-order exponential weighted average according to the following correction formula:
[0072]
[0073]
[0074] in, is the modified first-order exponential weighted average, It is the updated second-order exponential weighted average.
[0075] ③Finally, in the process of updating the weights, the updated values of the parameters are corrected by introducing the exponentially weighted average estimates of the first-order and second-order moments:
[0076]
[0077] The hyperparameter values are as follows: learning rate =0.001, first-order exponential moving weighted decay parameter =0.90, second-order exponential moving weighted decay parameter =0.999, error term The value of is set to 0.0000001.
[0078] Add a batch normalization layer after the convolutional layer or the fully connected layer to stabilize the training process and accelerate convergence, and reduce the gradient vanishing or gradient exploding problem. The process of batch normalization is as follows:
[0079] ① Normalization: For each feature, batch normalization calculates its mean and variance in the current batch;
[0080] ② Scaling and offset: Use these means and variances to normalize the features so that they have zero mean and unit variance. In addition, batch normalization introduces two learnable parameters for scaling and offsetting the normalized data so that the network can restore the original distribution features that are useful for the learning task;
[0081] ③Updates during training: During training, batch normalization updates the estimates of the mean and variance based on each batch of data.
[0082] To prevent the neural network from overfitting, a random dropout regularization method is used to reduce excessive reliance on the training set. The main principle is to randomly remove a portion of neurons and their connections in the network during the training process, thereby reducing the network's reliance on specific training samples and encouraging the network to learn more stable features. In the deep convolutional neural network model of the present invention, a dropout layer is added between layers to improve the performance of the model in the test set.
[0083] After completing the training of the deep convolutional neural network model, the deep convolutional neural network model was tested using the test set. To evaluate the model performance, 80% of the samples in the 10,000 simulated samples were divided into training sets and 20% of the samples were used as test sets. Since the model is used to predict the peak offset, the root mean square error (RMSE) is used as the evaluation indicator to measure the difference between the predicted offset and the actual offset. It is known that the actual offset of each peak is Δ RT = [ Δ rt 1 , Δ rt 2 ,..., Δ rt k ] , according to the network's offset prediction value is Δ RT * = [ Δ rt 1 * , Δ rt 2 * ,..., Δ rt k * ] , the error RMSE of the offset prediction result is:
[0084]
[0085] Step 104: input the spectrum signal to be measured into the chromatographic signal peak shift detection model to obtain a normalized predicted value of each peak shift of the spectrum signal to be measured.
[0086] It should be noted that after the chromatographic signal peak shift detection model is obtained, the spectrum signal to be measured is input into the chromatographic signal peak shift detection model to obtain the normalized predicted value of each peak shift of the spectrum signal to be measured.
[0087] Step 105 , aligning each peak of the spectrum signal to be measured according to the normalized predicted value of the offset of each peak of the spectrum signal to be measured and the maximum allowable offset of the signal peak.
[0088] It should be noted that the offset direction of each peak of the spectrum signal to be tested is determined according to the normalized predicted value of the offset of each peak of the spectrum signal to be tested. For example, the peak offset of 0 indicates complete alignment, -1 indicates left offset, and 1 indicates right offset. According to the offset direction of each peak of the spectrum signal to be tested, each peak of the spectrum signal to be tested is moved in the opposite direction of the offset direction. , so that each peak of the spectrum signal to be measured is aligned one by one, where, is the normalized predicted value of the peak offset, and T is the maximum allowable offset of the signal peak.
[0089] The chromatographic signal peak offset alignment method provided by the present invention directly realizes the automatic prediction from the spectrum signal to the peak offset by using a deep convolutional neural network, which effectively makes up for the defects of manually extracting the spectrum features, is suitable for different application scenarios, and is not limited by universality. At the same time, the deep convolutional neural network model is based on a large amount of data training, has a stronger resistance to random interference factors such as noise, and has stronger stability. The normalized prediction value of the peak offset output by the deep convolutional neural network model is combined with the maximum allowable offset of the signal peak to align each peak of the spectrum signal to be tested, thereby improving the signal peak alignment effect, and solving the technical problems that the existing chromatographic signal peak offset alignment method is limited in universality and easily affected by noise sensitivity and stability.
[0090] In order to demonstrate the effect of the chromatographic signal peak offset alignment method provided by the present invention, a specific application example is provided in the present invention:
[0091] Data preparation:
[0092] The alignment effect of the above model is verified using simulated spectrum signals, and the peak signal is generated using a Gaussian curve model. The Gaussian model can be expressed as follows:
[0093]
[0094] Where h is the signal height, is the vertex position, t is the time variable, is the standard deviation of the normal distribution curve, Affects the width of the peak curve.
[0095] A spectrum containing 7 Gaussian peaks is used as the standard spectrum, and the parameter h is modified by a randomly generated value. To simulate the random changes of peak height and peak width in the spectrum signal, The change within a certain range simulates the random shift of each peak. Set the maximum allowable shift of each peak to T = 50s. Assume that the peak apex position of a peak in the standard spectrum is , then the corresponding peaks in other spectra are [ rt − T , rt + T ] Randomly offset within the range. In this way, 10,000 simulated data are generated.
[0096] Model building and training:
[0097] 8000 spectra were randomly selected as the training set, and the remaining 2000 spectra were used as the test set. Figure 2 The structure constructs a deep convolutional network model, takes the original spectrum as input, and sets the target output of the model as the normalized offset of each peak. .
[0098] When a peak is T to the left compared to the standard spectrum, the relative shift is -1;
[0099] When RT is completely consistent with the standard spectrum, the relative offset is 0;
[0100] When a peak is offset to the right by T compared to the standard spectrum, the relative shift is 1.
[0101] The mean square error is used as the loss function Loss to measure the error between the estimated peak offset and the actual peak offset. The training cycle epoch is set to 200, and the loss function basically reaches convergence after 150 training times.
[0102] Peak alignment effect test:
[0103] Through the above model, we can obtain the estimated value of the peak offset relative to the standard spectrum from the original spectrum. Combined with the known RT information of each peak in the standard spectrum, we can correct the peak RT of each spectrum to eliminate the RT offset between different spectra. Figure 4 As shown, each scattered point in the figure represents the peak RT in the spectrum. Assuming that the vertical axis is the standard spectrum, the coordinate value of the scattered point on the vertical axis represents the RT time of the peak in the standard spectrum.
[0104] When the model estimates the peak shift When it is a negative number, it means that the peak is biased to the left relative to the standard spectrum, and the RT of the peak needs to be shifted to the right ;
[0105] When the model estimates the peak shift When it is a positive number, it means that the peak is right-biased relative to the standard spectrum, and the RT of the peak needs to be shifted left. .
[0106] Figure 5 The alignment effect of one of the spectra is shown. The broad peak signal is the standard spectrum, and the narrow peak signal is the spectrum to be corrected with peak shift. Figure 5 The figure above is a comparison of unaligned spectra. It can be seen that the spectrum to be corrected has a significant offset compared to the standard spectrum. Figure 5 The figure below shows the effect after peak offset correction. It can be found that although there are differences in peak height, peak width and standard spectrum, the 7 peaks have been aligned with the standard spectrum.
[0107] The above model was used to estimate the peak offset of each spectrum on 2000 test spectra, and the error was compared with the actual peak offset value. According to the average value of the offset of each spectrum in the spectrum (the absolute value of the offset is taken for left or right offset), the offset degree of the spectrum is divided into: ①0-25s; ②25-35s; ③35-50s, and the root mean square error RMSE is used to evaluate the performance of the regression model under different degrees of peak offset spectra. Table 1 shows the evaluation results of the peak offset effect.
[0108] Table 1
[0109]
[0110] It is not difficult to see from Table 1:
[0111] ① For spectra with small peak shifts within 0-25s, the model can accurately estimate the peak shift, and the RMSE between the predicted value and the true value of the shift is stable at around 1.11;
[0112] ② For spectra with absolute offsets in the range of 25s-35s, the model can also give accurate predictions, and the RMSE between the predicted offset value and the true value is stable at around 1.33;
[0113] ③ Compared with the first two groups, the RMSE of the model's predicted offset values for spectra with offsets between 35s and 50s is significantly larger than the true value. The main reason is that in the randomly generated data, the number of samples with offsets in the range of 35-50s is very small, accounting for less than 1% in both the training set and the prediction set. The model usually tends to give conservative predictions for a small number of samples, which leads to poor prediction results for extreme samples. In actual use, it is necessary to consider enhancing the data, increasing the proportion of extreme samples in the training set, and enhancing the generalization ability of the model.
[0114] In summary, the chromatographic signal peak offset alignment method implemented by the present invention can effectively predict the peak offset in the spectrum to achieve peak alignment, without the need for manual extraction of spectrum features, and is not affected by random factors such as peak height and peak width, and has strong robustness.
[0115] For easier understanding, see Figure 6 The present invention also provides an embodiment of a chromatographic signal peak offset alignment device, comprising:
[0116] An acquisition module, used to acquire a standard spectrum signal and configure a maximum allowable offset of a signal peak;
[0117] A model building module is used to build a deep convolutional neural network model whose input is a spectrogram signal and whose output is a normalized predicted value of each peak offset of the spectrogram signal based on a standard spectrogram signal and a maximum allowable offset of a signal peak. The deep convolutional neural network model includes a convolutional layer, a pooling layer, and a fully connected layer, and the activation function of the fully connected layer is a bitangent function.
[0118] A training module is used to train and test the deep convolutional neural network model to obtain a chromatographic signal peak offset detection model;
[0119] The offset prediction module is used to input the spectrum signal to be tested into the chromatographic signal peak offset detection model to obtain the normalized predicted value of each peak offset of the spectrum signal to be tested;
[0120] The peak alignment module is used to align each peak of the spectrum signal to be measured according to the normalized predicted value of the offset of each peak of the spectrum signal to be measured and the maximum allowable offset of the signal peak.
[0121] Furthermore, the peak alignment module is specifically used for:
[0122] Determine the offset direction of each peak of the spectrum signal to be measured according to the normalized predicted value of the offset of each peak of the spectrum signal to be measured;
[0123] According to the offset direction of each peak of the spectrum signal to be measured, each peak of the spectrum signal to be measured is moved in the opposite direction of the offset direction. , so that each peak of the spectrum signal to be measured is aligned one by one, where, is the normalized predicted value of the peak offset, and T is the maximum allowable offset of the signal peak.
[0124] Furthermore, the loss function used for deep convolutional neural network model training is:
[0125]
[0126] in, is the loss function, k is the number of peaks of the spectrum signal, is the actual offset of the ith peak, is the predicted offset of the ith peak.
[0127] Furthermore, during the training of the deep convolutional neural network model, a batch normalization layer is added after the convolutional layer or the fully connected layer.
[0128] Furthermore, during the training process of the deep convolutional neural network model, a dropout layer is added between the layers of the deep convolutional neural network model.
[0129] Furthermore, the model parameters of the deep convolutional neural network model are trained using the gradient descent method.
[0130] Furthermore, an adaptive moment estimation optimization algorithm is used to adjust the learning rate of the training deep convolutional neural network model and update the model parameters.
[0131] For easier understanding, see Figure 7 The present invention provides an embodiment of a chromatographic signal peak offset alignment device, the device comprising a processor and a memory:
[0132] The memory is used to store program code and transmit the program code to the processor;
[0133] The processor is used to execute the chromatographic signal peak offset alignment method provided in the present invention according to the instructions in the program code.
[0134] The chromatographic signal peak offset alignment device and equipment provided in the present invention are used to execute the chromatographic signal peak offset alignment method provided in the present invention. Its principle and technical effects are the same as those of the chromatographic signal peak offset alignment method provided in the present invention, and will not be repeated here.
[0135] As described above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A chromatographic signal peak offset alignment method, characterized in that: include: Obtain standard spectrum signal and configure the maximum allowable offset of signal peak; Based on the standard spectrogram signal and the maximum allowable offset of the signal peak, a deep convolutional neural network model is constructed, whose input is the spectrogram signal and whose output is the normalized predicted value of each peak offset of the spectrogram signal. The deep convolutional neural network model includes a convolutional layer, a pooling layer and a fully connected layer, and the activation function of the fully connected layer is a bitangent function. The deep convolutional neural network model is trained and tested to obtain a chromatographic signal peak offset detection model; Inputting the spectrum signal to be measured into the chromatographic signal peak shift detection model to obtain a normalized predicted value of each peak shift of the spectrum signal to be measured; Aligning each peak of the spectrum signal to be measured according to the normalized predicted value of each peak offset of the spectrum signal to be measured and the maximum allowable offset of the signal peak; According to the normalized predicted value of each peak offset of the spectrum signal to be measured and the maximum allowable offset of the signal peak, each peak of the spectrum signal to be measured is aligned, including: Determine the offset direction of each peak of the spectrum signal to be measured according to the normalized predicted value of the offset of each peak of the spectrum signal to be measured; According to the offset direction of each peak of the spectrum signal to be measured, each peak of the spectrum signal to be measured is moved in the opposite direction of the offset direction. , so that each peak of the spectrum signal to be measured is aligned one by one, where, is the normalized predicted value of the peak offset, and T is the maximum allowable offset of the signal peak.
2. The chromatographic signal peak offset alignment method according to claim 1, characterized in that: The loss function used for deep convolutional neural network model training is: ; in, is the loss function, k is the number of peaks of the spectrum signal, is the actual offset of the ith peak, is the predicted offset of the ith peak.
3. The chromatographic signal peak offset alignment method according to claim 1, characterized in that: During deep convolutional neural network model training, a batch normalization layer is added after the convolutional layer or the fully connected layer.
4. The chromatographic signal peak offset alignment method according to claim 1, characterized in that: During the training process of the deep convolutional neural network model, a dropout layer is added between the layers of the deep convolutional neural network model.
5. The chromatographic signal peak offset alignment method according to any one of claims 1 to 4, characterized in that: Use gradient descent to train the model parameters of a deep convolutional neural network model.
6. The chromatographic signal peak offset alignment method according to claim 5, characterized in that: An adaptive moment estimation optimization algorithm is used to adjust the learning rate of the deep convolutional neural network model and update the model parameters.
7. A chromatographic signal peak offset alignment device, characterized in that: include: An acquisition module, used to acquire a standard spectrum signal and configure a maximum allowable offset of a signal peak; A model building module is used to build a deep convolutional neural network model whose input is a spectrogram signal and whose output is a normalized predicted value of each peak offset of the spectrogram signal based on a standard spectrogram signal and a maximum allowable offset of a signal peak. The deep convolutional neural network model includes a convolutional layer, a pooling layer, and a fully connected layer, and the activation function of the fully connected layer is a bitangent function. A training module is used to train and test the deep convolutional neural network model to obtain a chromatographic signal peak offset detection model; The offset prediction module is used to input the spectrum signal to be tested into the chromatographic signal peak offset detection model to obtain the normalized predicted value of each peak offset of the spectrum signal to be tested; A peak alignment module, used for aligning each peak of the spectrum signal to be measured according to the normalized predicted value of the offset of each peak of the spectrum signal to be measured and the maximum allowable offset of the signal peak; The peak alignment module is specifically used for: Determine the offset direction of each peak of the spectrum signal to be measured according to the normalized predicted value of the offset of each peak of the spectrum signal to be measured; According to the offset direction of each peak of the spectrum signal to be measured, each peak of the spectrum signal to be measured is moved in the opposite direction of the offset direction. , so that each peak of the spectrum signal to be measured is aligned one by one, where, is the normalized predicted value of the peak offset, and T is the maximum allowable offset of the signal peak.
8. A chromatographic signal peak offset alignment device, characterized in that: The device comprises a processor and a memory: The memory is used to store program code and transmit the program code to the processor; The processor is used to execute the chromatographic signal peak offset alignment method according to any one of claims 1 to 6 according to the instructions in the program code.
