CN115879382B - Triple quadrupole mass spectrum automatic tuning method, equipment and medium based on improved PSO - Google Patents

Triple quadrupole mass spectrum automatic tuning method, equipment and medium based on improved PSO Download PDF

Info

Publication number
CN115879382B
CN115879382B CN202310193970.7A CN202310193970A CN115879382B CN 115879382 B CN115879382 B CN 115879382B CN 202310193970 A CN202310193970 A CN 202310193970A CN 115879382 B CN115879382 B CN 115879382B
Authority
CN
China
Prior art keywords
parameters
mass
parameter
resolution
updating
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202310193970.7A
Other languages
Chinese (zh)
Other versions
CN115879382A (en
Inventor
贾明正
李亮
王晶
凌星
程文播
张远清
李小强
郭宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Institute of Biomedical Engineering and Technology of CAS
Original Assignee
Suzhou Institute of Biomedical Engineering and Technology of CAS
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Institute of Biomedical Engineering and Technology of CAS filed Critical Suzhou Institute of Biomedical Engineering and Technology of CAS
Priority to CN202310193970.7A priority Critical patent/CN115879382B/en
Publication of CN115879382A publication Critical patent/CN115879382A/en
Application granted granted Critical
Publication of CN115879382B publication Critical patent/CN115879382B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Other Investigation Or Analysis Of Materials By Electrical Means (AREA)
  • Electron Tubes For Measurement (AREA)

Abstract

The invention relates to a triple quadrupole mass spectrometry automatic tuning method, equipment and medium based on improved PSO, wherein the method comprises the following steps: initializing tuning parameters and model parameters; acquiring the spectrum peak intensity, half peak width and mass number deviation corresponding to the tuning parameters; judging whether the resolution parameter and the quality axis parameter meet the termination condition, otherwise, updating the quality axis parameter, updating the resolution parameter through an improved PSO algorithm model, and jumping to the step of acquiring the spectrum peak intensity, half-peak width and quality number deviation; if yes, outputting the resolution and the quality axis parameters, and judging whether the resolution parameters and the quality axis parameters meet the termination conditions; if yes, outputting parameters; otherwise, updating lens parameters, ion source parameters and resolution parameters through an improved PSO algorithm model, and jumping to a step of acquiring spectrum peak intensity, half peak width and mass number deviation; according to the invention, a simulated annealing algorithm is introduced, and the triple quadrupole mass spectrometer is automatically tuned by improving multi-inertia weight selection, so that the optimization of spectrogram quality is realized.

Description

Triple quadrupole mass spectrum automatic tuning method, equipment and medium based on improved PSO
Technical Field
The invention relates to the technical field of mass spectrometry, in particular to a triple quadrupole mass spectrometry automatic tuning method, equipment and medium based on improved PSO.
Background
With the continuous development of biological analysis and chemical research, mass spectrometry technology is increasingly gaining attention in scientific research and industrial production. Triple quadrupole mass spectrometry (QqQ-MS) instrument is a high-efficiency mass spectrometry instrument with good sensitivity and selectivity, and can be used for various analysis applications, such as identification and quantification of biomolecules, drug metabolism research and environmental monitoring. Mass spectrometer tuning refers to the process of optimizing mass spectrometer parameters to achieve optimal experimental results prior to sample analysis. Triple quadrupole mass spectrometers require a multitude of parameters to tune, including lens parameters, ion source parameters, resolution, mass axis, etc. Triple quadrupole mass spectrometer tuning should be divided into three parts, namely mass axis calibration, resolution calibration and mass spectrum parameter and ion source parameter optimization, which are not sequenced but alternate. Therefore, the QqQ-MS instrument needs to be efficiently tuned in practical application to ensure the accuracy and reliability of analysis results.
Traditional mass spectrometry tuning methods often rely on manual intervention, which is time consuming and error prone. To overcome these problems, automatic tuning techniques have been developed. However, in some mass spectrometers, most of the methods used for automatic tuning are single variable adjustment methods, which, although fast, have the problem of finding solutions far from the optimal solution. Therefore, how to solve the problem of optimal solution in automatic tuning is a focus of attention. The automatic tuning method based on the heuristic optimization algorithm is more suitable for multi-parameter optimization, such as genetic algorithm, particle Swarm Optimization (PSO) and the like.
The PSO algorithm is a heuristic optimization algorithm based on group intelligence, and has the advantages of simplicity, easiness in implementation, fast convergence, easiness in parallel calculation and the like. However, the conventional PSO algorithm has a certain limitation in solving the optimization problem of the multimodal function, such as poor population convergence of particles, poor global searching capability of the algorithm, and the like.
Disclosure of Invention
To achieve the above and other advantages and in accordance with the purpose of the present invention, a first object of the present invention is to provide a triple quadrupole mass spectrometry auto-tuning method based on an improved PSO, comprising the steps of:
initializing tuning parameters and model parameters; wherein the tuning parameters include lens parameters, ion source parameters, resolution parameters, and mass axis parameters; the model parameters comprise a speed boundary, a maximum iteration number, a weight boundary and an initial speed;
acquiring the spectrum peak intensity, half peak width and mass number deviation corresponding to the tuning parameters;
if the resolution parameter and the mass axis parameter meet the termination condition, outputting the resolution parameter and the mass axis parameter, and judging whether the resolution parameter and the spectral peak intensity meet the termination condition or not;
outputting the resolution parameter, the mass axis parameter, the lens parameter and the ion source parameter if yes;
otherwise, updating the lens parameters and the ion source parameters through an improved PSO algorithm model, updating the resolution parameters through the improved PSO algorithm model, and jumping to the step of acquiring the spectrum peak intensity, half-peak width and mass number deviation corresponding to the tuning parameters;
if the resolution parameter and the mass axis parameter do not meet the termination condition, updating the mass axis parameter, updating the resolution parameter through an improved PSO algorithm model, and jumping to the step of acquiring the spectrum peak intensity, half-peak width and mass number deviation corresponding to the tuning parameter.
Further, the termination conditions of the resolution parameter and the mass axis parameter are as follows
Figure SMS_1
FW is the half-peak width of the current MASS spectrum peak, TFW is the target half-peak width of the MASS spectrum peak, MASS is the detected MASS number of the current MASS spectrum peak, and TMASS is the target MASS number of the MASS spectrum peak;
Figure SMS_2
and
Figure SMS_3
Is a non-negative constant, +.>
Figure SMS_4
Is the set target value.
Further, the resolution parameter and the peak intensity are terminated by
Figure SMS_5
Wherein I is the peak intensity of mass spectrum,
Figure SMS_6
is a non-negative constant, +.>
Figure SMS_7
Is the set target value.
Further, the formula for updating the mass axis parameter is as follows
Figure SMS_8
wherein ,
Figure SMS_9
for the DAC value obtained for the nth iteration, < >>
Figure SMS_10
For the last DAC value, +.>
Figure SMS_11
For slope, +>
Figure SMS_12
For the target mass number>
Figure SMS_13
The mass number corresponding to the nth detected spectrum peak.
Further, the model parameters also include a location boundary;
updating parameters through the improved PSO algorithm model comprises the following steps:
s1, randomly generating all particle positions
Figure SMS_14
Obtaining the global optimal position at the current time
Figure SMS_15
;
S2, for each particle
Figure SMS_16
Speed under various inertial weights +.>
Figure SMS_17
Respectively calculating according to the formula of
Figure SMS_18
wherein ,
Figure SMS_19
representing various inertial weights,/->
Figure SMS_20
and
Figure SMS_21
Is a random number +.>
Figure SMS_22
For the historically optimal position of particle j +.>
Figure SMS_23
Global optimal positions for all particles;
if it is
Figure SMS_24
Then->
Figure SMS_25
Figure SMS_26
Is the minimum in the speed boundary;
if it is
Figure SMS_27
Then->
Figure SMS_28
Figure SMS_29
Is the maximum value in the speed boundary;
s3, according to the obtained speeds under various inertia weights
Figure SMS_30
Update every particle->
Figure SMS_31
To obtain a plurality of new positions, and the position updating formula is as follows
Figure SMS_32
wherein ,
Figure SMS_33
representing the position coordinate g at time n+1;
calculating optimal solutions of a plurality of new positions, wherein the formula is
Figure SMS_34
If it is
Figure SMS_35
Then->
Figure SMS_36
Figure SMS_37
Is the minimum value in the position boundary>
If it is
Figure SMS_38
Then->
Figure SMS_39
Figure SMS_40
Is the maximum value in the location boundary;
s4, calculating a global optimal position, wherein the formula is
Figure SMS_41
Then observing whether an iteration stop condition is reached, if yes, ending, otherwise returning to the step S2; wherein the iteration stop condition is that
Figure SMS_42
Figure SMS_43
Figure SMS_44
wherein ,
Figure SMS_45
Figure SMS_46
Figure SMS_47
the resolution parameter vector, the lens and ion source parameter vector and the mass axis parameter vector are respectively; i is the intensity of a MASS spectrum peak, FW and TFW are the half-peak width of the current MASS spectrum peak and the target half-peak width of the MASS spectrum peak respectively, and MASS and TMASS are the detected MASS number of the current MASS spectrum peak and the detected target MASS number of the MASS spectrum peak respectively;
Figure SMS_48
Figure SMS_49
Figure SMS_50
Is a non-negative constant.
Further, the plurality of inertial weights includes linear weights, exponential weights, power weights, random weights; wherein,
the formula of the linear weight is
Figure SMS_51
;
The formula of the index weight is
Figure SMS_52
;
The formula of the power weight is
Figure SMS_53
;
The formula of the random weight is
Figure SMS_54
;
wherein ,
Figure SMS_55
for the maximum value in the weight boundary, +.>
Figure SMS_56
N is the maximum iteration number and N is the algorithm iteration number for the minimum value in the weight boundary.
Further, the model parameters further include a location boundary update parameter
Figure SMS_57
The method further comprises the following steps between the step S2 and the step S3:
dynamically updating location boundaries
Figure SMS_58
The calculated formula is
Figure SMS_59
Figure SMS_60
。/>
Further, the model parameters also comprise simulated annealing parameters
Figure SMS_61
The step S4 also comprises the step of updating the global optimal position and the particle history optimal position by using a simulated annealing algorithm, wherein the formula is
Figure SMS_62
Figure SMS_63
Figure SMS_64
Figure SMS_65
Figure SMS_66
wherein ,
Figure SMS_67
is [0,1]Random numbers generated in the uniform distribution.
A second object of the present invention is to provide an electronic device including: a memory having program code stored thereon; a processor coupled with the memory and which when the program code is executed by the processor implements a triple quadrupole mass spectrometry auto-tuning method based on an improved PSO.
A third object of the present invention is to provide a computer readable storage medium having stored thereon program instructions that when executed implement a triple quadrupole mass spectrometry auto-tuning method based on an improved PSO.
Compared with the prior art, the invention has the beneficial effects that:
the traditional optimization method generally adopts a mode of fixing other parameters by single-parameter scanning and rotating the scanning parameters for optimization, and the optimization mode can lead to sinking into a local optimal solution, so that the instrument is difficult to work in a better state. Aiming at the defect that the optimization process caused by the single parameter optimization iterative algorithm falls into a local optimal solution and cannot jump out, the particle swarm algorithm is used, and the concepts of a simulated annealing algorithm and an inertia weight are added to the particle swarm algorithm according to actual conditions in use, so that the method is more suitable for triple quadrupole mass spectrometry automatic tuning.
The invention provides an automatic tuning method of triple quadrupole mass spectrometry based on improved PSO, which uses the thought of particle swarm to optimize parameters of a triple quadrupole mass spectrometer, and in the tuning process of the triple quadrupole mass spectrometer, more parameters need to be optimized, and the possible combination is as many as tens of millions, if each parameter is optimized, the triple quadrupole mass spectrometer falls into unacceptable waiting. By applying the improved particle swarm optimization, the situation that the global optimal combination is reached in a short time is achieved, the global optimal solution is approximated or even reached, namely, the relatively optimal solution (parameter combination) can be found in a short time, so that the triple quadrupole mass spectrometer works in a good state, and a satisfactory experimental result can be obtained.
The foregoing description is only an overview of the present invention, and is intended to provide a better understanding of the present invention, as it is embodied in the following description, with reference to the preferred embodiments of the present invention and the accompanying drawings. Specific embodiments of the present invention are given in detail by the following examples and the accompanying drawings.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiments of the invention and together with the description serve to explain the invention and do not constitute a limitation on the invention. In the drawings:
FIG. 1 is a flow chart of a triple quadrupole mass spectrometry auto-tuning method based on the improved PSO of example 1;
FIG. 2 is a flowchart of triple quadrupole mass spectrometry auto-tune for example 1;
FIG. 3 is a graph showing the results of the resolution auto-adjustment experiment of example 1;
FIG. 4 is a graph showing the results of the resolution adjustment experiments of the low, medium and high mass numbers of example 1;
FIG. 5 is a schematic diagram of half-width in the mass axis calibration test of example 1;
FIG. 6 is a schematic diagram of the mass axis offset in the mass axis calibration test of example 1;
FIG. 7 is a graph showing the mass numbers of tuning characteristic peaks in the mass axis calibration test of example 1;
FIG. 8 is a graph showing peak intensities in the lens parameter optimization of example 1;
FIG. 9 is a graph showing peak intensities in ion source parameter optimization of example 1;
FIG. 10 is a graph showing the results of the lens parameter optimization test in the Q3POS mode of example 1;
fig. 11 is a schematic view of an electronic device of embodiment 2;
fig. 12 is a schematic diagram of a storage medium of embodiment 3.
Detailed Description
The present invention will be further described with reference to the accompanying drawings and detailed description, wherein it is to be understood that, on the premise of no conflict, the following embodiments or technical features may be arbitrarily combined to form new embodiments.
Example 1
The triple quadrupole mass spectrometer has 8 lens parameters commonly used in the tuning process, 6 ion source parameters, 8 parameter pairs for resolution calibration, 8 parameter pairs for mass axis calibration, and about 30 tuning parameters in total. Manual tuning wastes relatively large labor and time costs and places certain demands on the experimenter's experience. Accordingly, the present invention provides a triple quadrupole mass spectrometry auto-tuning method based on improved PSO, as shown in fig. 1, comprising the steps of:
initializing tuning parameters and model parameters; wherein the tuning parameters include lens parameters, ion source parameters, resolution parameters, and mass axis parameters; the model parameters comprise a speed boundary, a maximum iteration number, a weight boundary and an initial speed;
acquiring the spectrum peak intensity, half peak width and mass number deviation corresponding to the tuning parameters;
according to the characteristics of mass spectrum peaks, setting an evaluation function in an algorithm as
Figure SMS_68
(1),
wherein ,
Figure SMS_69
Figure SMS_70
Figure SMS_71
the resolution parameter vector, the lens and ion source parameter vector and the mass axis parameter vector are respectively; i is the intensity of a MASS spectrum peak, FW and TFW are the half-peak width of the current MASS spectrum peak and the target half-peak width of the MASS spectrum peak respectively, and MASS and TMASS are the detected MASS number of the current MASS spectrum peak and the detected target MASS number of the MASS spectrum peak respectively;
Figure SMS_72
Figure SMS_73
Figure SMS_74
Is a non-negative constant.
For a triple quadrupole mass spectrometer, the tuning process can be divided into three parts, namely mass axis calibration, resolution calibration and parameter optimization, wherein the parameter optimization comprises lens parameter optimization and ion source parameter optimization; the mass axis calibration comprises Q1POS mode mass axis calibration, Q3POS mode mass axis calibration, Q1NEG mode mass axis calibration and Q3NEG mode mass axis calibration, and the resolution calibration comprises Q1POS mode resolution calibration, Q3POS mode resolution calibration, Q1NEG mode resolution calibration and Q3NEG mode resolution calibration. Since there is a weak correlation between the mass axis calibration and the resolution calibration, as shown in fig. 2, the execution sequence is: the mass axis calibration and the resolution calibration are alternately performed, and the lens and ion source parameter optimization process is performed after the mass axis and the resolution are adjusted, and the lens and ion source parameter optimization and the resolution adjustment are alternately performed at the moment.
If the resolution parameter and the mass axis parameter meet the termination condition, outputting the resolution parameter and the mass axis parameter, and judging whether the resolution parameter and the spectrum peak intensity meet the termination condition or not; wherein the termination conditions of the resolution parameter and the mass axis parameter are as follows
Figure SMS_75
FW is the half-peak width of the current MASS spectrum peak, TFW is the target half-peak width of the MASS spectrum peak, MASS is the detected MASS number of the current MASS spectrum peak, and TMASS is the target MASS number of the MASS spectrum peak;
Figure SMS_76
and
Figure SMS_77
Is a non-negative constant, +.>
Figure SMS_78
Is the set target value.
The resolution parameter and the spectral peak intensity are terminated as follows
Figure SMS_79
Wherein I is the peak intensity of mass spectrum,
Figure SMS_80
is a non-negative constant, +.>
Figure SMS_81
To set upA fixed target value.
Outputting a resolution parameter, a mass axis parameter, a lens parameter and an ion source parameter, wherein the resolution parameter, the mass axis parameter, the lens parameter and the ion source parameter are optimal parameters;
otherwise, updating the lens parameters and the ion source parameters through the improved PSO algorithm model, updating the resolution parameters through the improved PSO algorithm model, and jumping to the step of acquiring the spectrum peak intensity, half peak width and mass number deviation corresponding to the tuning parameters;
if the resolution parameter and the mass axis parameter do not meet the termination condition, updating the mass axis parameter, updating the resolution parameter through an improved PSO algorithm model, and jumping to the step of obtaining the spectrum peak intensity, half peak width and mass number deviation corresponding to the tuning parameter.
For the MASS axis, the MASS axis control parameter (i.e., DAC value) exhibits a linear relationship with the MASS number (i.e., MASS) (R > 0.99), assuming the form:
Figure SMS_82
(2)
wherein MASS is the MASS number,
Figure SMS_83
for DAC values corresponding to MASS, +.>
Figure SMS_84
For slope, +>
Figure SMS_85
For the intercept, the intercept should ideally be zero. The correction formula of the mass axis is as follows:
Figure SMS_86
(3)
wherein ,
Figure SMS_87
for the DAC value obtained for the nth iteration, < >>
Figure SMS_88
For last DAC value->
Figure SMS_89
Is the slope in equation (2), +.>
Figure SMS_90
For the target mass number, i.e. the mass number corresponding to the tuned liquid spectrum peak, < >>
Figure SMS_91
The mass number corresponding to the nth detected spectrum peak. When->
Figure SMS_92
Or stopping iteration when the iteration times reach a set value.
The improved PSO algorithm model is improved on the standard PSO algorithm. The standard PSO algorithm has the advantages of easy implementation, concise parameters, low calculation complexity, high convergence speed and the like, and is widely applied to the fields of intelligent calculation, neural networks, dynamic planning and the like.
M particles exist in the standard PSO algorithm, each particle is a potential solution, and the particle senses its own historical optimal position and the global optimal position of the group in the motion process to correct the moving speed, including direction and size, and based on this, the optimal solution is approximated gradually.
The equation for modifying the movement speed of the particles j is shown as (4),
Figure SMS_93
Figure SMS_94
(4)
wherein ,
Figure SMS_95
is inertial weight, ++>
Figure SMS_96
Is a constant;
Figure SMS_97
and
Figure SMS_98
Is a random number +.>
Figure SMS_99
For a historic optimal position of the particle j,
Figure SMS_100
is the globally optimal location for all particles.
Equation (5) is an update process of the particle j position.
Figure SMS_101
(5)
wherein ,
Figure SMS_102
representative time->
Figure SMS_103
Lower position coordinates.
However, the inertia weight in the standard PSO algorithm is constant, when the inertia weight is small, if the optimal solution is in the initial search space, the particle swarm optimization algorithm can easily find the global optimal solution, otherwise, the particle swarm optimization algorithm can not find the optimal solution. When the inertia weight is large, the particle swarm algorithm is more like a global search method, and it always searches for new areas. Of course, the particle swarm optimization algorithm at this time requires more iterations to achieve global optimization, and is more likely to fail to find a globally optimal solution. When the inertia weight is moderate, the particle swarm optimization algorithm will have a greater chance to find the globally optimal solution, but the iteration number will be greater than in the first case. Aiming at the problems, the invention provides a multi-inertia weight selection method on a random inertia weight method, namely, a plurality of inertia weights are provided, a plurality of speeds are updated in each calculation iteration, a plurality of new positions are obtained, and then the optimal positions are compared. The mathematical form of the inertial weights is shown in table 1.
TABLE 1 mathematical form of inertial weights
Figure SMS_104
In connection with the analysis, the model parameters also include location boundaries. The initializing step further includes initializing a position boundary.
Updating parameters through the improved PSO algorithm model comprises the following steps:
s1, randomly generating all particle positions
Figure SMS_105
Obtaining the global optimal position at the current time
Figure SMS_106
;
S2, for each particle
Figure SMS_107
Is->
Figure SMS_108
The velocity is calculated as shown in equation (4). However, the weights are plural, and +.>
Figure SMS_109
Speed under various inertial weights +.>
Figure SMS_110
Respectively calculating according to the formula of
Figure SMS_111
,/>
In combination with table 1, the various inertial weights in this embodiment include linear weight L, exponential weight E, power weight P, random weight R; wherein,
the formula of the linear weight is
Figure SMS_112
The formula of the index weight is
Figure SMS_113
The formula of the power weight is
Figure SMS_114
The formula of the random weight is
Figure SMS_115
wherein ,
Figure SMS_116
for the maximum value in the weight boundary, +.>
Figure SMS_117
N is the maximum iteration number and N is the algorithm iteration number for the minimum value in the weight boundary.
Figure SMS_118
Respectively representing four inertial weight forms corresponding to Table 1, and for convenience of expression, the four calculated speeds are respectively recorded as +.>
Figure SMS_119
Figure SMS_120
and
Figure SMS_121
Is a random number +.>
Figure SMS_122
For the historically optimal position of particle j +.>
Figure SMS_123
Global optimal positions for all particles;
if it is
Figure SMS_124
Then->
Figure SMS_125
Figure SMS_126
Is the minimum in the speed boundary;
if it is
Figure SMS_127
Then->
Figure SMS_128
Figure SMS_129
Is the maximum value in the speed boundary;
s3, updating each particle
Figure SMS_130
The position of (2) is represented by formula (5). According to the obtained speed under four inertial weights +.>
Figure SMS_131
Update every particle->
Figure SMS_132
To obtain four new positions, respectively recorded as
Figure SMS_133
The location update formula is
Figure SMS_134
wherein ,
Figure SMS_135
representative time->
Figure SMS_136
Lower position coordinates;
calculating the optimal solutions of the four new positions, wherein the formula is that
Figure SMS_137
(6)
If it is
Figure SMS_138
Then->
Figure SMS_139
Figure SMS_140
Is the minimum in the location boundary;
if it is
Figure SMS_141
Then->
Figure SMS_142
Figure SMS_143
Is the maximum value in the location boundary;
s4, calculating a global optimal position, wherein the formula is
Figure SMS_144
(7)
Then observing whether an iteration stop condition is reached, if yes, ending, otherwise returning to the step S2; wherein the iteration stop condition is that
Figure SMS_145
(8) Wherein->
Figure SMS_146
Figure SMS_147
In the application process, the standard PSO algorithm is easy to sink into local optimum, and researches show that the PSO algorithm is easy to enter in the later period of evolutionEnter a stalled state. To solve this problem, a boundary dynamic correction method is added to the standard PSO algorithm, namely, the position boundary is changed along with the increase of the iteration times. In combination with the analysis, the model parameters further include location boundary update parameters
Figure SMS_148
The method comprises the steps of carrying out a first treatment on the surface of the The initialization step further comprises initializing a position boundary update parameter +.>
Figure SMS_149
The method further comprises the following steps between the step S2 and the step S3:
dynamically updating location boundaries
Figure SMS_150
The calculated formula is
Figure SMS_151
(9)
Figure SMS_152
(10)。
The simulated annealing algorithm comprises two parts, namely a Metropolis algorithm and an annealing process, and can effectively solve the problem of local optimal solution. The simulated annealing algorithm is derived from the process of cooling the crystal, heating the solid and cooling it again if the solid is not in the lowest energy state, and as the temperature slowly drops, atoms in the solid are arranged in a certain shape to form a high-density, low-energy regular crystal corresponding to the globally optimal solution in the algorithm. The addition of the simulated annealing algorithm based on the two improvements is beneficial to improving the searching capability of the algorithm, because the probability of the particles jumping out of the local optimal solution is increased. In combination with the analysis, the model parameters also include simulated annealing parameters
Figure SMS_153
The method comprises the steps of carrying out a first treatment on the surface of the The initialization step also comprises initializing simulated annealing parameters
Figure SMS_154
S4, updating the global optimal position and the particle historical optimal position by using a simulated annealing algorithm, wherein the formula is
Figure SMS_155
(11)
Figure SMS_156
(12)
Figure SMS_157
Figure SMS_158
Figure SMS_159
,/>
wherein ,
Figure SMS_160
is [0,1]Random numbers generated in the uniform distribution.
The triple quadrupole mass spectrometry automatic tuning method based on the improved PSO provided by the invention is tested and experimented. First, an automatic resolution adjustment experiment was performed, in which a sample was selected as PPG, and a representative one of the peaks (theoretical mass number 906.67) was selected, and for this product, the half-peak width (resolution) was expected to be 0.7Da. For this reason, the present embodiment selects the optimal result in each iteration as the result in that iteration, instead of selecting the historical optimal result for the particle.
The experiment was repeated three times on the spectral peak (906.67) under the same parameters, the initial spectral peak half-width being around 1.3Da, ending at iteration 4, the half-width reaching the target range. The experimental results are shown in FIG. 3.
Next, this embodiment tests the resolution adjustment condition of low, medium and high mass numbers, selecting 3 mass numbers: 59.05, 906.67 and 2010.5 represent the low, medium and high mass segments, respectively, and the experimental results are shown in fig. 4. The algorithm terminates at iterations 4 and 5.
After the automatic resolution adjustment function is tested, a test of mass axis calibration is added, a representative spectrum peak 906.67 of the PPG is still selected, wherein the resolution adjustment and the mass axis calibration are alternately performed, and finally, the two values output an optimal value at the same time, namely, the output of a node S2 in a corresponding graph, and the test results are shown in fig. 5, 6 and 7. From the test results, the algorithm is terminated after 7 iterations, the initial half-peak width is 1.52Da, the mass number is offset by 3.6Da, the half-peak width is converged to 0.68Da after automatic tuning, and the mass number is offset by-0.1 Da.
The addition of optimization of the lens parameters and ion source parameters on the basis of the previous experiment did not affect the final results as the lens parameters, ion source parameters and mass axis calibration were weakly related to each other. In the Q1POS mode, after the mass axis and resolution adjustment is completed, lens parameters and ion source parameters are optimized, lens parameters to be optimized are DP and EP, ion source parameters to be optimized are CUR, GS1 and GS2, and experimental results are shown in fig. 8 and 9.
For better test algorithm performance, the lens parameters in Q3POS mode were optimized and the test results are shown in fig. 10.
The invention provides an improved PSO-based triple quadrupole mass spectrum automatic tuning method, which introduces a simulated annealing algorithm, and automatically tunes a QqQ-MS instrument by improving multi-inertia weight selection so as to optimize the mass of a spectrogram. The superiority of the method in improving the quality of spectrogram and the automation level is proved by comparing experimental results.
Example 2
An electronic device 200, as shown in FIG. 11, includes, but is not limited to: a memory 201 having program codes stored thereon; a processor 202 coupled to the memory and which when the program code is executed by the processor implements a triple quadrupole mass spectrometry auto-tuning method based on the improved PSO. For detailed description of the method, reference may be made to corresponding descriptions in the above method embodiments, and details are not repeated here.
Example 3
A computer readable storage medium having stored thereon program instructions that when executed implement a triple quadrupole mass spectrometry auto-tuning method based on improved PSO as shown in fig. 12. For detailed description of the method, reference may be made to corresponding descriptions in the above method embodiments, and details are not repeated here.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises an element.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments.
The foregoing is illustrative of the embodiments of the present disclosure and is not to be construed as limiting the scope of the one or more embodiments of the present disclosure. Various modifications and alterations to one or more embodiments of this description will be apparent to those skilled in the art. Any modifications, equivalent substitutions, improvements, or the like, which are within the spirit and principles of one or more embodiments of the present disclosure, are intended to be included within the scope of the claims of one or more embodiments of the present disclosure.

Claims (10)

1. The triple quadrupole mass spectrum automatic tuning method based on the improved PSO is characterized by comprising the following steps of:
initializing tuning parameters and model parameters; wherein the tuning parameters include lens parameters, ion source parameters, resolution parameters, and mass axis parameters; the model parameters comprise a speed boundary, a maximum iteration number, a weight boundary and an initial speed;
acquiring the spectrum peak intensity, half peak width and mass number deviation corresponding to the tuning parameters;
if the resolution parameter and the mass axis parameter meet the termination condition, outputting the resolution parameter and the mass axis parameter, and judging whether the resolution parameter and the spectral peak intensity meet the termination condition or not;
outputting the resolution parameter, the mass axis parameter, the lens parameter and the ion source parameter if yes;
otherwise, updating the lens parameters and the ion source parameters through an improved PSO algorithm model, updating the resolution parameters through the improved PSO algorithm model, and jumping to the step of acquiring the spectrum peak intensity, half-peak width and mass number deviation corresponding to the tuning parameters;
if the resolution parameter and the mass axis parameter do not meet the termination condition, updating the mass axis parameter, updating the resolution parameter through an improved PSO algorithm model, and jumping to the step of acquiring the spectrum peak intensity, half-peak width and mass number deviation corresponding to the tuning parameter.
2. The triple quadrupole mass spectrometry auto-tuning method based on improved PSO of claim 1, wherein: the end conditions of the resolution parameter and the quality axis parameter are that
Figure QLYQS_1
FW is the half-peak width of the current MASS spectrum peak, TFW is the target half-peak width of the MASS spectrum peak, MASS is the detected MASS number of the current MASS spectrum peak, and TMASS is the target MASS number of the MASS spectrum peak;
Figure QLYQS_2
and
Figure QLYQS_3
Is a non-negative constant, +.>
Figure QLYQS_4
Is the set target value.
3. The triple quadrupole mass spectrometry auto-tuning method based on improved PSO of claim 2, wherein: the resolution parameter and the peak intensity are terminated by
Figure QLYQS_5
Wherein I is the peak intensity of mass spectrum,
Figure QLYQS_6
is a non-negative constant, +.>
Figure QLYQS_7
Is the set target value.
4. The triple quadrupole mass spectrometry auto-tuning method based on improved PSO of claim 1, wherein: the formula for updating the mass axis parameter is as follows
Figure QLYQS_8
wherein ,
Figure QLYQS_9
for the DAC value obtained for the nth iteration, < >>
Figure QLYQS_10
For the last DAC value, +.>
Figure QLYQS_11
For slope, +>
Figure QLYQS_12
For the target mass number>
Figure QLYQS_13
The mass number corresponding to the nth detected spectrum peak.
5. The triple quadrupole mass spectrometry auto-tuning method based on improved PSO of claim 1, wherein: the model parameters also include a location boundary;
updating parameters through the improved PSO algorithm model comprises the following steps:
s1, randomly generating all particle positions
Figure QLYQS_14
Obtaining the global optimal position +.>
Figure QLYQS_15
;
S2, for each particle
Figure QLYQS_16
Speed under various inertial weights +.>
Figure QLYQS_17
Respectively calculating according to the formula of
Figure QLYQS_18
,/>
wherein ,
Figure QLYQS_19
Figure QLYQS_20
representing various inertial weights, +.>
Figure QLYQS_21
and
Figure QLYQS_22
Is a random number +.>
Figure QLYQS_23
For the historically optimal position of particle j +.>
Figure QLYQS_24
Global optimal positions for all particles;
if it is
Figure QLYQS_25
Then->
Figure QLYQS_26
Figure QLYQS_27
Is the minimum in the speed boundary;
if it is
Figure QLYQS_28
Then->
Figure QLYQS_29
Figure QLYQS_30
Is the maximum value in the speed boundary;
s3, according to the obtained speeds under various inertia weights
Figure QLYQS_31
Update every particle->
Figure QLYQS_32
To obtain a plurality of new positions, and the position updating formula is as follows
Figure QLYQS_33
wherein ,
Figure QLYQS_34
representing the position coordinates at time n+1;
calculating optimal solutions of a plurality of new positions, wherein the formula is
Figure QLYQS_35
If it is
Figure QLYQS_36
Then->
Figure QLYQS_37
Figure QLYQS_38
Is the minimum in the location boundary;
if it is
Figure QLYQS_39
Then->
Figure QLYQS_40
Figure QLYQS_41
Is the maximum value in the location boundary;
s4, calculating a global optimal position, wherein the formula is
Figure QLYQS_42
Then observing whether an iteration stop condition is reached, if yes, ending, otherwise returning to the step S2; wherein the iteration stop condition is that
Figure QLYQS_43
Figure QLYQS_44
Figure QLYQS_45
wherein ,
Figure QLYQS_46
Figure QLYQS_47
Figure QLYQS_48
the resolution parameter vector, the lens and ion source parameter vector and the mass axis parameter vector are respectively; i is the intensity of a MASS spectrum peak, FW and TFW are the half-peak width of the current MASS spectrum peak and the target half-peak width of the MASS spectrum peak respectively, and MASS and TMASS are the detected MASS number of the current MASS spectrum peak and the detected target MASS number of the MASS spectrum peak respectively;
Figure QLYQS_49
Figure QLYQS_50
Figure QLYQS_51
Is a non-negative constant.
6. The triple quadrupole mass spectrometry auto-tuning method based on improved PSO of claim 5, wherein: the plurality of inertial weights include linear weights, exponential weights, power weights, random weights; wherein,
the formula of the linear weight is
Figure QLYQS_52
;
The formula of the index weight is
Figure QLYQS_53
;
The formula of the power weight is
Figure QLYQS_54
;
The formula of the random weight is
Figure QLYQS_55
;
wherein ,
Figure QLYQS_56
for the maximum value in the weight boundary, +.>
Figure QLYQS_57
N is the maximum iteration number and N is the algorithm iteration number for the minimum value in the weight boundary.
7. The triple quadrupole mass spectrometry auto-tuning method based on improved PSO of claim 5, wherein: the model parameters further include a location boundary update parameter
Figure QLYQS_58
The method further comprises the following steps between the step S2 and the step S3:
dynamically updating location boundaries
Figure QLYQS_59
The calculated formula is
Figure QLYQS_60
Figure QLYQS_61
8. The triple quadrupole mass spectrometry auto-tuning method based on improved PSO of claims 5 or 7, characterized by: the model parameters also include simulated annealing parameters
Figure QLYQS_62
The step S4 also comprises the step of updating the global optimal position and the particle history optimal position by using a simulated annealing algorithm, wherein the formula is
Figure QLYQS_63
Figure QLYQS_64
Figure QLYQS_65
Figure QLYQS_66
Figure QLYQS_67
wherein ,
Figure QLYQS_68
is [0,1]Random numbers generated in the uniform distribution.
9. An electronic device, comprising: a memory having program code stored thereon; a processor coupled to the memory and which, when executed by the processor, implements the method of claim 1.
10. A computer readable storage medium, having stored thereon program instructions which, when executed, implement the method of claim 1.
CN202310193970.7A 2023-03-03 2023-03-03 Triple quadrupole mass spectrum automatic tuning method, equipment and medium based on improved PSO Active CN115879382B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310193970.7A CN115879382B (en) 2023-03-03 2023-03-03 Triple quadrupole mass spectrum automatic tuning method, equipment and medium based on improved PSO

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310193970.7A CN115879382B (en) 2023-03-03 2023-03-03 Triple quadrupole mass spectrum automatic tuning method, equipment and medium based on improved PSO

Publications (2)

Publication Number Publication Date
CN115879382A CN115879382A (en) 2023-03-31
CN115879382B true CN115879382B (en) 2023-05-12

Family

ID=85761849

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310193970.7A Active CN115879382B (en) 2023-03-03 2023-03-03 Triple quadrupole mass spectrum automatic tuning method, equipment and medium based on improved PSO

Country Status (1)

Country Link
CN (1) CN115879382B (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112947332B (en) * 2021-02-04 2022-12-16 威高国科质谱医疗科技(天津)有限公司 Triple quadrupole mass spectrometer parameter optimization method based on simulated annealing
CN113051771B (en) * 2021-04-09 2024-03-26 中国科学院苏州生物医学工程技术研究所 Triple quadrupole mass spectrometer parameter optimization method and system based on particle swarm optimization
CN115078519A (en) * 2022-05-06 2022-09-20 天津国科医工科技发展有限公司 Spectral peak identification method, device, medium and product based on iterative algorithm

Also Published As

Publication number Publication date
CN115879382A (en) 2023-03-31

Similar Documents

Publication Publication Date Title
CN109637580B (en) Protein amino acid association matrix prediction method
CA2763991A1 (en) Systems and methods for identifying correlated variables in large amounts of spectrometry data
JP7255597B2 (en) Data analysis method, data analysis device, and learning model creation method for data analysis
CN115879382B (en) Triple quadrupole mass spectrum automatic tuning method, equipment and medium based on improved PSO
CN113407185A (en) Compiler optimization option recommendation method based on Bayesian optimization
US8372288B2 (en) Precision peak matching in liquid chromatography-mass spectroscopy
US8212206B2 (en) Analysis methods, analysis device waveform generation methods, analysis devices, and articles of manufacture
CN111323847B (en) Method and apparatus for determining weight ratios for analog integration algorithms
Moosavi et al. Tuning covariance localization using machine learning
CN109346128B (en) Protein structure prediction method based on residue information dynamic selection strategy
Price et al. Improving auto-tuning convergence times with dynamically generated predictive performance models
Antonelli et al. SUPERSMART: ecology and evolution in the era of big data
Dash et al. A novel strategy for order abatement based on parameter estimation
CN109964300B (en) System and method for real-time isotope identification
CN115391172A (en) Input structure inference method and device based on particle swarm optimization algorithm
CN111369074A (en) Corn yield prediction method based on artificial bee colony optimized BP neural network
CN116438625A (en) Method, medium and system for selecting parameter values when tuning a mass spectrometry device
Bai et al. Submodular generalized matching for peptide identification in tandem mass spectrometry
US20040034477A1 (en) Methods for modeling chromatographic variables
CN110634531B (en) Protein structure prediction method based on double-layer bias search
Frissou et al. A Combined DE Algorithm with SARIMA for Modeling and Predicting the Incidence of Zoonotic Cutaneous Leishmaniasis in Msila Province, Algeria
CN112231915B (en) Physical planning method based on projection ranging
CN109564227A (en) As a result the iterative analysis of interdependent analysis-SWATH data
CN111986735B (en) Calculation method for predicting atomic multipole distance in RNA by ARDGPR model
Lomurno et al. POMONAG: Pareto-Optimal Many-Objective Neural Architecture Generator

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant