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

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

Info

Publication number
CN115879382A
CN115879382A CN202310193970.7A CN202310193970A CN115879382A CN 115879382 A CN115879382 A CN 115879382A CN 202310193970 A CN202310193970 A CN 202310193970A CN 115879382 A CN115879382 A CN 115879382A
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.)
Granted
Application number
CN202310193970.7A
Other languages
Chinese (zh)
Other versions
CN115879382B (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 a medium based on improved PSO, wherein the method comprises the following steps: initializing tuning parameters and model parameters; obtaining the spectrum peak intensity, half peak width and mass number deviation corresponding to the tuning parameters; judging whether the resolution parameter and the mass axis parameter meet a termination condition, if not, 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, the half peak width and the mass number deviation; if so, 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 the parameters; otherwise, updating lens parameters, ion source parameters and resolution parameters through an improved PSO algorithm model, and jumping to the step of obtaining spectral peak intensity, half-peak width and mass number deviation; the invention introduces a simulated annealing algorithm, and automatically tunes the triple quadrupole mass spectrometer by improving the selection of multiple inertia weights, thereby realizing the optimization of the spectrogram quality.

Description

Triple quadrupole mass spectrometry 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 has received more and more attention in scientific research and industrial production. The triple quadrupole mass spectrometry (QqQ-MS) instrument is an efficient mass spectrometry instrument, has 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 the mass spectrometer parameters to achieve optimal experimental results before sample analysis. Triple quadrupole mass spectrometers require numerous parameters to be tuned including lens parameters, ion source parameters, resolution, mass axis, etc. The 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, and the three parts are not in sequence but are performed alternately. Therefore, the qqqq-MS apparatus needs to be tuned efficiently in practical applications to ensure the accuracy and reliability of the analysis results.
Traditional mass spectrometry tuning methods often rely on manual intervention, are time consuming and prone to error. To overcome these problems, auto-tuning techniques have been developed. However, in some mass spectrometers, most of the methods used for auto-tuning are single variable tuning methods, and although the speed is high, there is a problem that the found solution is far from the optimal solution. Therefore, how to solve the problem of optimal solution in auto-tuning becomes 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) algorithm and the like.
The PSO algorithm is a heuristic optimization algorithm based on group intelligence, and has the advantages of simplicity, easiness in implementation, quickness in convergence, easiness in parallel calculation and the like. However, the conventional PSO algorithm has certain limitations in solving the optimization problem of the multi-peak function, such as poor convergence of the population of particles, poor global search capability of the algorithm, and the like.
Disclosure of Invention
To achieve the above objects and other advantages in accordance with the present invention, a first object of the present invention is to provide a triple quadrupole mass spectrometry auto-tuning method based on improved PSO, comprising the steps of:
initializing tuning parameters and model parameters; wherein the tuning parameters comprise 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;
obtaining 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;
if yes, outputting the resolution parameter, the mass axis parameter, the lens parameter and the ion source parameter;
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 obtaining the spectral peak intensity, half-peak width and mass number deviation corresponding to the tuning parameters;
and 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 skipping to the step of obtaining the spectrum peak intensity, the half peak width and the mass number deviation corresponding to the tuning parameter.
Further, the resolution parameter and the quality axis parameter are terminated by
Figure SMS_1
Wherein FW is the current MASS spectrum peak half-peak width, TFW is the target half-peak width of the MASS spectrum peak, MASS is the MASS number of the detected current MASS spectrum peak, and TMASS is the target MASS number of the MASS spectrum peak;
Figure SMS_2
and />
Figure SMS_3
Is non-negative constant, is combined with a signal>
Figure SMS_4
Is the set target value.
Further, the resolution parameter and the termination condition of the spectrum peak intensity are
Figure SMS_5
Wherein I is the intensity of mass spectrum peak,
Figure SMS_6
is non-negative constant, is combined with a signal>
Figure SMS_7
Is a set target value.
Further, the formula for updating the mass axis parameter is
Figure SMS_8
wherein ,
Figure SMS_9
the DAC value resulting for the nth iteration->
Figure SMS_10
Is the last DAC value, <' > is asserted>
Figure SMS_11
Is slope->
Figure SMS_12
Is a target quality number,>
Figure SMS_13
the mass number corresponding to the spectral peak detected at the nth time.
Further, the model parameters also include a location boundary;
updating parameters through the improved PSO algorithm model comprises the following steps:
s1, randomly generating positions of all particles
Figure SMS_14
Obtaining a global optimum position->
Figure SMS_15
;
S2, for each particle
Figure SMS_16
Speed under various inertial weights>
Figure SMS_17
Respectively calculate according to the formula->
Figure SMS_18
wherein ,
Figure SMS_19
represents various inertial weights>
Figure SMS_20
and />
Figure SMS_21
Is a random number, is based on>
Figure SMS_22
For a 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
Is the minimum in the velocity boundary;
if it is
Figure SMS_26
Then->
Figure SMS_27
Is the maximum value in the velocity boundary;
s3, obtaining the velocities under various inertia weights
Figure SMS_28
Update each particle->
Figure SMS_29
Obtaining a plurality of new positions, the position updating formula is
Figure SMS_30
,/>
wherein ,
Figure SMS_31
represents the position coordinate at time n +1, and>
Figure SMS_32
represents the velocity vector at time n + 1;
calculating an optimal solution for the plurality of new positions, as
Figure SMS_33
If it is
Figure SMS_34
Then->
Figure SMS_35
Is the minimum value in the position boundary;
if it is
Figure SMS_36
Then->
Figure SMS_37
Is the maximum value in the position boundary;
s4, calculating the global optimal position according to the formula
Figure SMS_38
Then observing whether an iteration stop condition is reached, if so, ending, otherwise, returning to the step S2; wherein the iteration stop condition is
Figure SMS_39
wherein ,
Figure SMS_40
respectively a resolution parameter vector, a lens and ion source parameter vector and a mass axis parameter vector; i is MASS spectrum peak intensity, FW and TFW are the current MASS spectrum peak half-peak width and the target half-peak width of the MASS spectrum peak respectively, and MASS and TMASS are the MASS number of the detected current MASS spectrum peak and the target MASS number of the MASS spectrum peak respectively;
Figure SMS_41
is a non-negative constant.
Further, the plurality of inertial weights include linear weights, exponential weights, power weights, random weights; wherein,
the linear weight is formulated as
Figure SMS_42
The formula of the exponential weight is
Figure SMS_43
The power weight is formulated as
Figure SMS_44
The formula of the random weight is
Figure SMS_45
wherein ,
Figure SMS_46
for maxima in the weight bound>
Figure SMS_47
Is the minimum value in the weight boundary, N is the maximum iteration number, and N is the algorithm iteration number.
Further, the model parameters further include a location boundary update parameter
Figure SMS_48
;/>
The method also comprises the following steps between the step S2 and the step S3:
dynamically updating location boundaries
Figure SMS_49
The formula of calculation is
Figure SMS_50
Further, the model parameters further comprise simulated annealing parameters
Figure SMS_51
The step S4 also comprises the step of updating the global optimal position and the particle historical optimal position by utilizing a simulated annealing algorithm, wherein the formula is
Figure SMS_52
wherein ,
Figure SMS_53
is [0,1 ]]Random numbers generated in a uniform distribution.
A second object of the present invention is to provide an electronic apparatus, comprising: a memory having program code stored thereon; a processor coupled with the memory and when the program code is executed by the processor, implementing a triple quadrupole mass spectrometry auto-tuning method based on improved PSO.
It is a third object of the present invention to provide a computer readable storage medium having stored thereon program instructions that, when executed, implement an improved PSO-based triple quadrupole mass spectrometry auto-tuning method.
Compared with the prior art, the invention has the beneficial effects that:
the traditional optimization method generally adopts a mode of fixing other parameters of single-parameter scanning and rotating scanning parameters for optimization, and the optimization mode can cause the instrument to fall into a local optimal solution and is difficult to enable the instrument to work in a better state. Aiming at the defect that the optimization process is trapped in a local optimal solution and cannot jump out due to the single parameter optimization iterative algorithm, the particle swarm algorithm is used, and the concepts of simulated annealing algorithm and inertia weight are added to the particle swarm algorithm aiming at the actual situation in use, so that the method is more suitable for the automatic tuning of triple quadrupole mass spectrometry.
The invention provides a triple quadrupole mass spectrometry automatic tuning method based on improved PSO, which is characterized in that the parameter optimization of a triple quadrupole mass spectrometer is carried out by applying the idea of particle swarm, in the process of tuning the triple quadrupole mass spectrometer, more parameters need to be optimized, the possible combinations can reach as many as ten million, and if each parameter is optimized, the triple quadrupole mass spectrometer will fall into unacceptable waiting. By applying the improved particle swarm algorithm, the method can reach the vicinity of the global optimal combination in a short time, approach or even reach the global optimal solution, namely, a relatively optimal solution (parameter combination) can be found in a short time, so that the triple quadrupole mass spectrometer can work in a better state, and a satisfactory experimental result can be obtained.
The foregoing description is only an overview of the technical solutions of the present invention, and in order to make the technical solutions of the present invention more clearly understood and to make the technical solutions of the present invention practical in accordance with the contents of the specification, the following detailed description is given of preferred embodiments of the present invention with reference to the accompanying drawings. The detailed description of the present invention is 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 embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a flow chart of the improved PSO-based triple quadrupole mass spectrometry auto-tuning method of example 1;
FIG. 2 is an overall flow chart of the triple quadrupole mass spectrometry auto-tuning of example 1;
FIG. 3 is a graph showing the experimental results of the resolution auto-adjustment of example 1;
FIG. 4 is a graph of the results of the low, medium and high mass number resolution adjustment experiment of example 1;
FIG. 5 is a schematic diagram of the half-peak width in the mass axis calibration test of example 1;
FIG. 6 is a schematic diagram showing mass axis shift in the mass axis calibration test of example 1;
FIG. 7 is a schematic diagram of the mass number of the tuning feature peak in the mass axis calibration test of example 1;
FIG. 8 is a graph showing peak intensities in the optimization of lens parameters of example 1;
FIG. 9 is a schematic diagram of peak intensity in the optimization of ion source parameters in example 1;
FIG. 10 is a graph showing the results of the lens parameter optimization test in Q3POS mode in example 1;
FIG. 11 is a schematic view of an electronic apparatus according to embodiment 2;
FIG. 12 is a schematic view of a storage medium of embodiment 3.
Detailed Description
The present invention is further described with reference to the accompanying drawings and the detailed description, and it should be noted that, in the case of no conflict, any combination between the embodiments or technical features described below may form a new embodiment.
Example 1
The triple quadrupole mass spectrometer has 8 commonly used lens parameters, 6 ion source parameters, 8 parameter pairs for resolution calibration, 8 parameter pairs for mass axis calibration, and about 30 tuning parameters. Manual tuning can waste significant labor and time costs and can be somewhat demanding on the experiential experience of the experimenter. 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; the tuning parameters comprise 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;
obtaining the spectral peak intensity, half peak width and mass number deviation corresponding to the tuning parameters;
according to the characteristics of mass spectrum peaks, an evaluation function in the algorithm is set as
Figure SMS_54
(1)
wherein ,
Figure SMS_55
respectively a resolution parameter vector, a lens and ion source parameter vector and a mass axis parameter vector; i is MASS spectrum peak intensity, FW and TFW are the current MASS spectrum peak half-peak width and the target half-peak width of the MASS spectrum peak respectively, and MASS and TMASS are the MASS number of the detected current MASS spectrum peak and the target MASS number of the MASS spectrum peak respectively;
Figure SMS_56
is a non-negative constant.
For a triple quadrupole mass spectrometer, a 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 quality axis calibration comprises Q1POS mode quality axis calibration, Q3POS mode quality axis calibration, Q1NEG mode quality axis calibration and Q3NEG mode quality 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, in the execution order: and the mass axis calibration and the resolution calibration are alternately carried out, the optimization process of the parameters of the lens and the ion source is carried out after the adjustment of the mass axis and the resolution is finished, and the optimization of the parameters of the lens and the ion source and the adjustment of the resolution are alternately carried out 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 resolution parameter and the quality axis parameter have termination conditions of
Figure SMS_57
Wherein FW is the current MASS spectrum peak half-peak width, TFW is the target half-peak width of the MASS spectrum peak, MASS is the MASS number of the detected current MASS spectrum peak, and TMASS is the target MASS number of the MASS spectrum peak;
Figure SMS_58
and />
Figure SMS_59
Is not a negative constant, is->
Figure SMS_60
Is the set target value.
The resolution parameter and the spectrum peak intensity are terminated by
Figure SMS_61
Wherein I is the intensity of mass spectrum peak,
Figure SMS_62
is not a negative constant, is->
Figure SMS_63
Is the set target value.
If so, outputting a resolution parameter, a mass axis parameter, a lens parameter and an ion source parameter, which 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 obtaining the spectral peak intensity, the half-peak width and the mass number deviation corresponding to the tuning parameters;
and 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 the improved PSO algorithm model, and skipping to the step of obtaining the spectral peak intensity, the half-peak width and the mass number deviation corresponding to the tuning parameter.
For the MASS axis, the MASS axis control parameter (i.e., DAC value) and the MASS number (i.e., MASS) exhibit a linear relationship (R > 0.99) assuming the form:
Figure SMS_64
(2),
wherein MASS is MASS number, DACs is DAC value corresponding to MASS,
Figure SMS_65
is slope->
Figure SMS_66
For the intercept, the intercept should ideally be zero. The correction formula for the mass axis is as follows:
Figure SMS_67
(3),
wherein ,
Figure SMS_68
the DAC value resulting for the nth iteration->
Figure SMS_69
For the last DAC value,/>>
Figure SMS_70
Is the slope in equation (2),. Sup.>
Figure SMS_71
Is a target mass number, namely the mass number corresponding to a tuned liquid spectrum peak,
Figure SMS_72
the mass number corresponding to the spectral peak detected at the nth time. When/is>
Figure SMS_73
And when 0.05 or the iteration times reach a set value, stopping the iteration.
The improved PSO algorithm model is improved on the standard PSO algorithm. The standard PSO algorithm has the advantages of easiness in implementation, concise parameters, low calculation complexity, high convergence rate 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, the particles sense the historical optimal positions of the particles and the global optimal positions of the groups in the motion process to correct the moving speed, including the direction and the size, and the optimal solution is gradually approached based on the method.
The equation for the particle j to correct the moving speed is shown in equation (4),
Figure SMS_74
wherein w is an inertial weight and w is a constant;
Figure SMS_75
and />
Figure SMS_76
Is a random number, is combined with>
Figure SMS_77
For a historically optimal position of particle j>
Figure SMS_78
Is the global optimal position of all particles.
Equation (5) is the update process of the particle j position.
Figure SMS_79
(5),
wherein ,
Figure SMS_80
and />
Figure SMS_81
Respectively representing the position coordinates and velocity vector at time n + 1.
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 optimal solution cannot be found. When the inertial weight is large, the particle swarm algorithm is more like a global search method, and it always searches for a new region. Of course, the particle swarm optimization algorithm requires more iterations to achieve the global optimum, and the global optimum solution is more likely not to be found. When the inertial weight is moderate, the particle swarm optimization algorithm has a larger chance of finding a global optimal solution, but the iteration number is more than that of the first case. Aiming at the problems, the invention provides a multi-inertia weight selection method on the basis of a random inertia weight method, namely, a plurality of inertia weights are provided, a plurality of speeds are updated in each calculation iteration to obtain a plurality of new positions, and then the comparison is carried out to obtain the optimal position. The mathematical form of the inertial weights is shown in table 1.
TABLE 1 mathematical form of inertial weighting
Figure SMS_82
In conjunction with the analysis, the model parameters further include a location boundary. The initializing step further comprises initializing location boundaries.
Updating parameters through the improved PSO algorithm model comprises the following steps:
s1, randomly generating positions of all particles
Figure SMS_83
To obtain the global optimal position at the current moment
Figure SMS_84
;
S2For each particle
Figure SMS_85
Is greater than or equal to>
Figure SMS_86
Calculation is carried out as shown in formula (4). But with a plurality of weights for each particle>
Figure SMS_87
Speed under various inertial weights>
Figure SMS_88
Respectively calculate according to the formula->
Figure SMS_89
With reference to table 1, the plurality of inertial weights in this embodiment include a linear weight L, an exponential weight E, a power weight P, and a random weight R; wherein,
the linear weight is formulated as
Figure SMS_90
The formula of the exponential weight is
Figure SMS_91
The formula of the power weight is
Figure SMS_92
The random weight is expressed by
Figure SMS_93
wherein ,
Figure SMS_94
for maxima in the weight bound>
Figure SMS_95
Is the minimum value in the weight boundary, N is the maximum iteration number, and N is the algorithm iteration number.
Figure SMS_96
Respectively represent corresponding four inertia weight forms in the table 1, and for convenience of expression, the calculated four speeds are respectively recorded as +>
Figure SMS_97
。/>
Figure SMS_98
and />
Figure SMS_99
Is a random number, is based on>
Figure SMS_100
For a historically optimal position of particle j>
Figure SMS_101
Global optimal positions for all particles;
if it is
Figure SMS_102
Then->
Figure SMS_103
Is the minimum in the velocity boundary;
if it is
Figure SMS_104
Then->
Figure SMS_105
Is the maximum value in the velocity boundary;
s3, updating each particle
Figure SMS_106
The position of (3) is shown in the formula (5). Based on the resulting four inertial weights speed->
Figure SMS_107
Updating the position of each particle to obtain four new positions, which are respectively recorded as
Figure SMS_108
The location update formula is
Figure SMS_109
,/>
wherein ,
Figure SMS_110
represents the position coordinate at time n +1, and->
Figure SMS_111
Represents the velocity vector at time n + 1;
the optimal solution of the four new positions is calculated by the formula
Figure SMS_112
(6)
If it is
Figure SMS_113
Then->
Figure SMS_114
Is the minimum value in the position boundary;
if it is
Figure SMS_115
Then>
Figure SMS_116
Is the maximum value in the position boundary;
s4, calculating the global optimal position by the formula
Figure SMS_117
(7),
Then observing whether an iteration stop condition is reached, if so, ending, otherwise, returning to the step S2; wherein the iteration stop condition is
Figure SMS_118
(8) Wherein->
Figure SMS_119
Figure SMS_120
In the application process, the standard PSO algorithm is easy to fall into local optimum, and researches show that the PSO algorithm is easy to enter a stagnation state in the later evolution stage. Aiming at the problem, a boundary dynamic correction method is added in a standard PSO algorithm, namely a position boundary is changed along with the increase of iteration times. In conjunction with the analysis, the model parameters further include a location boundary update parameter
Figure SMS_121
(ii) a Also included in the initialization step is the initialization of a position boundary update parameter->
Figure SMS_122
The method also comprises the following steps between the step S2 and the step S3:
dynamically updating location boundaries
Figure SMS_123
The formula of calculation is
Figure SMS_124
(9)
Figure SMS_125
(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 crystal cooling, if the solid is not in the lowest energy state, the solid is heated and cooled again, and as the temperature slowly decreases, atoms in the solid are arranged according to a certain shape to form a high-density low-energy regular crystal, which corresponds to the globally optimal solution in the algorithm. The simulated annealing algorithm is added on the basis of the two improvements, so that the searching capability of the algorithm is favorably improved, and the probability that the particles jump out of the local optimal solution is increased.In combination with the analysis, the model parameters further include simulated annealing parameters
Figure SMS_126
(ii) a The initialization step also comprises the initialization of simulated annealing parameters
Figure SMS_127
S4, updating the global optimal position and the historical optimal position of the particles by using a simulated annealing algorithm according to the formula
Figure SMS_128
(11)
Figure SMS_129
(12)
wherein ,
Figure SMS_130
is [0,1 ]]Random numbers generated in a uniform distribution.
The triple quadrupole mass spectrometry automatic tuning method based on the improved PSO is tested and experimented. First, a resolution auto-tuning experiment was performed, and in this example, a sample was selected as PPG, and a representative one of the spectral peaks (theoretical mass number of 906.67) was selected, for which the desired half-peak width (resolution) was 0.7Da. To this end, the present embodiment selects the optimal result in each iteration as the result in that iteration, rather than selecting the historical optimal result for the particle.
The experiment was performed on the peak (906.67) under the same parameters, repeated three times, with an initial peak half-width around 1.3Da, and terminated at iteration 4, with a half-width within the target range. The results of the experiment are shown in FIG. 3.
Next, this embodiment tests the resolution adjustment situation of low, medium, and high mass numbers, and selects 3 mass numbers: 59.05, 906.67 and 2010.5, representing the cases of low and medium high quality sections, respectively, the experimental results are shown in fig. 4. The algorithm terminates at iterations 4 and 5.
After the resolution automatic adjustment function is tested, a test of mass axis calibration is added, and a spectral peak 906.67 which is representative of the PPG is still selected, wherein the resolution adjustment and the mass axis calibration are performed alternately, and finally, the resolution adjustment and the mass axis calibration output an optimal value at the same time, namely, the output corresponding to the node S2 in the graph, and the test results are shown in fig. 5, fig. 6 and fig. 7. From the test results, it can be seen that the algorithm is terminated after 7 iterations, the initial half-peak width is 1.52Da, the mass number is shifted by 3.6Da, the half-peak width converges to 0.68Da after auto-tuning, and the mass number is shifted by-0.1 Da.
Optimization of lens parameters and ion source parameters is added on the basis of the previous experiment, and since the lens parameters, the ion source parameters and the mass axis calibration are weakly correlated with each other, the final result is not influenced by separate tests. In the Q1POS mode, after the adjustment of the mass axis and the resolution is completed, the parameters of the lens and the ion source are optimized, the parameters of the lens to be optimized are DP and EP, the parameters of the ion source to be optimized are CUR, GS1 and GS2, and the experimental results are shown in fig. 8 and 9.
For better testing of algorithm performance, lens parameter optimization in Q3POS mode was tested and the test results are shown in fig. 10.
The invention provides a triple quadrupole mass spectrometry automatic tuning method based on improved PSO, which introduces a simulated annealing algorithm, and automatically tunes a QqQ-MS instrument by improving multi-inertia weight selection, thereby realizing the optimization of spectrogram quality. The comparison experiment results prove that the method has superiority in the aspects of improving the spectrogram quality and the automation level.
Example 2
An electronic device 200, as shown in FIG. 11, includes but is not limited to: a memory 201 having program code stored thereon; a processor 202 coupled with the memory and when the program code is executed by the processor, implementing an improved PSO based triple quadrupole mass spectrometry auto-tuning method. For the detailed description of the method, reference may be made to the corresponding description in the above method embodiments, which is not repeated herein.
Example 3
A computer readable storage medium, as shown in fig. 12, having stored thereon program instructions that, when executed, implement an improved PSO-based triple quadrupole mass spectrometry auto-tuning method. For the detailed description of the method, reference may be made to the corresponding description in the above method embodiments, which is not repeated herein.
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 phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of additional identical elements in the process, method, article, or apparatus comprising the element.
All the embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from other embodiments.
The above description is intended only as an example, and not as an attempt to limit the application of the teaching to one or more embodiments. Various modifications and alterations to one or more embodiments described herein will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of one or more embodiments of the present specification should be included in the scope of claims of one or more embodiments of the present specification.

Claims (10)

1. The improved PSO-based triple quadrupole mass spectrometry automatic tuning method is characterized by comprising the following steps of:
initializing tuning parameters and model parameters; wherein the tuning parameters comprise 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;
obtaining 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;
if yes, outputting the resolution parameter, the mass axis parameter, the lens parameter and the ion source parameter;
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 obtaining the spectral peak intensity, half-peak width and mass number deviation corresponding to the tuning parameters;
and 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 skipping to the step of obtaining the spectral peak intensity, the half-peak width and the mass number deviation corresponding to the tuning parameter.
2. The improved PSO based triple quadrupole mass spectrometry auto-tuning method of claim 1, wherein: the resolution parameter and the quality axis parameter are terminated by
Figure QLYQS_1
Wherein FW is the current MASS spectrum peak half-peak width, TFW is the target half-peak width of the MASS spectrum peak, MASS is the MASS number of the detected current MASS spectrum peak, and TMASS is the target MASS number of the MASS spectrum peak;
Figure QLYQS_2
and />
Figure QLYQS_3
Is non-negative constant, is combined with a signal>
Figure QLYQS_4
Is the set target value.
3. As in claimThe improved PSO-based triple quadrupole mass spectrometry auto-tuning method of claim 2, characterized in that: the resolution parameter and the spectral peak intensity are terminated by
Figure QLYQS_5
Wherein I is the intensity of mass spectrum peak,
Figure QLYQS_6
is not a negative constant, is->
Figure QLYQS_7
Is the set target value.
4. The improved PSO based triple quadrupole mass spectrometry auto-tuning method of claim 1, wherein: the formula for updating the mass axis parameters is
Figure QLYQS_8
wherein ,
Figure QLYQS_9
the DAC value resulting for the nth iteration->
Figure QLYQS_10
Is the last DAC value, <' > is asserted>
Figure QLYQS_11
Is slope and is based on>
Figure QLYQS_12
Is a target quality number,>
Figure QLYQS_13
the mass number corresponding to the spectral peak detected at the nth time.
5. The improved PSO-based triple quadrupole mass spectrometry auto-tuning method of claim 1, wherein: the model parameters further include a location boundary;
updating parameters through the improved PSO algorithm model comprises the following steps:
s1, randomly generating positions of all particles
Figure QLYQS_14
To obtain the global optimal position at the current moment
Figure QLYQS_15
;/>
S2, for each particle
Figure QLYQS_16
Speed under various inertial weights>
Figure QLYQS_17
Are calculated respectively, and the formula is->
Figure QLYQS_18
wherein ,
Figure QLYQS_19
w represents various inertial weights>
Figure QLYQS_20
and />
Figure QLYQS_21
Is a random number, is based on>
Figure QLYQS_22
For a historically optimal position of particle j->
Figure QLYQS_23
Global optimal positions for all particles;
if it is
Figure QLYQS_24
Then->
Figure QLYQS_25
Is the minimum in the velocity boundary;
if it is
Figure QLYQS_26
Then->
Figure QLYQS_27
Is the maximum value in the velocity boundary;
s3, obtaining the velocities under various inertia weights
Figure QLYQS_28
Updating each particle>
Figure QLYQS_29
Obtaining a plurality of new positions, the position updating formula is
Figure QLYQS_30
wherein ,
Figure QLYQS_31
represents the position coordinate at time n +1, and>
Figure QLYQS_32
represents the velocity vector at time n + 1;
calculating an optimal solution for the plurality of new positions, as
Figure QLYQS_33
If it is
Figure QLYQS_34
Then->
Figure QLYQS_35
Is the minimum value in the position boundary;
if it is
Figure QLYQS_36
Then->
Figure QLYQS_37
Is the maximum value in the position boundary;
s4, calculating the global optimal position by the formula
Figure QLYQS_38
Then observing whether an iteration stop condition is reached, if so, ending, otherwise, returning to the step S2; wherein the iteration stop condition is
Figure QLYQS_39
wherein ,
Figure QLYQS_40
respectively a resolution parameter vector, a lens and ion source parameter vector and a mass axis parameter vector; i is MASS spectrum peak intensity, FW and TFW are the current MASS spectrum peak half-peak width and the target half-peak width of the MASS spectrum peak respectively, and MASS and TMASS are the MASS number of the detected current MASS spectrum peak and the target MASS number of the MASS spectrum peak respectively; />
Figure QLYQS_41
Is a non-negative constant.
6. The improved PSO based triple quadrupole mass spectrometry auto-tuning method of claim 5, wherein: the plurality of inertial weights comprise linear weights, exponential weights, power weights, and random weights; wherein,
the linear weight is formulated as
Figure QLYQS_42
The formula of the exponential weight is
Figure QLYQS_43
The power weight is formulated as
Figure QLYQS_44
The formula of the random weight is
Figure QLYQS_45
wherein ,
Figure QLYQS_46
is the maximum value in the weight bound->
Figure QLYQS_47
Is the minimum value in the weight boundary, N is the maximum iteration number, and N is the algorithm iteration number.
7. The improved PSO-based triple quadrupole mass spectrometry auto-tuning method of claim 5, wherein: the model parameters further include a location boundary update parameter
Figure QLYQS_48
The following steps are also included between the step S2 and the step S3:
dynamically updating location boundaries
Figure QLYQS_49
The formula of calculation is
Figure QLYQS_50
8. The improved PSO based triple quadrupole mass spectrometry auto-tuning method of claim 5 or claim 7, wherein: the model parameters further include simulated annealing parameters
Figure QLYQS_51
The step S4 also comprises the step of updating the global optimal position and the particle historical optimal position by using a simulated annealing algorithm, wherein the formula is
Figure QLYQS_52
wherein ,
Figure QLYQS_53
is [0,1 ]]Random numbers generated in a uniform distribution.
9. An electronic device, comprising: a memory having program code stored thereon; a processor coupled with the memory and implementing the method of claim 1 when the program code is executed by the processor.
10. A computer-readable storage medium having stored thereon program instructions that, 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 true CN115879382A (en) 2023-03-31
CN115879382B 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)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112947332A (en) * 2021-02-04 2021-06-11 天津国科医工科技发展有限公司 Triple quadrupole mass spectrometer parameter optimization method based on simulated annealing
CN113051771A (en) * 2021-04-09 2021-06-29 中国科学院苏州生物医学工程技术研究所 Particle swarm algorithm-based triple quadrupole mass spectrometer parameter optimization method and system
CN115078519A (en) * 2022-05-06 2022-09-20 天津国科医工科技发展有限公司 Spectral peak identification method, device, medium and product based on iterative algorithm

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112947332A (en) * 2021-02-04 2021-06-11 天津国科医工科技发展有限公司 Triple quadrupole mass spectrometer parameter optimization method based on simulated annealing
CN113051771A (en) * 2021-04-09 2021-06-29 中国科学院苏州生物医学工程技术研究所 Particle swarm algorithm-based triple quadrupole mass spectrometer parameter optimization method and system
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
CN115879382B (en) 2023-05-12

Similar Documents

Publication Publication Date Title
CN109637580B (en) Protein amino acid association matrix prediction method
CN109409496A (en) One kind being based on the improved LDTW sequence similarity amount method of ant group algorithm
Cao et al. An enhanced whale optimization algorithm with improved dynamic opposite learning and adaptive inertia weight strategy
CN113407185B (en) Compiler optimization option recommendation method based on Bayesian optimization
CN111695278B (en) Traffic simulation parameter correction method based on improved synchronous disturbance stochastic approximation algorithm
Zheng et al. A parameterized lower confidence bounding scheme for adaptive metamodel-based design optimization
CN112817312A (en) Path planning method based on double search optimization algorithm
CN116861957A (en) Operator automatic tuning method and related device based on reinforcement learning
CN115879382B (en) Triple quadrupole mass spectrum automatic tuning method, equipment and medium based on improved PSO
Panda et al. Reduction of linear time-invariant systems using Routh-approximation and PSO
CN111832693A (en) Neural network layer operation and model training method, device and equipment
Moosavi et al. Tuning covariance localization using machine learning
CN117741234A (en) Optical fiber current sensor error prediction method based on parameter optimization and ensemble learning
CN112036432A (en) Spectral modeling sample set rapid partitioning method based on tabu optimization
CN111273251A (en) Multi-core DSP-based particle swarm exchange long-time accumulation implementation method
CN116910210A (en) Intelligent question-answering model training method and device based on document and application of intelligent question-answering model training method and device
Price et al. Improving auto-tuning convergence times with dynamically generated predictive performance models
Ganguli et al. A new hybrid algorithm for identification in the unified delta framework
WO2021004355A1 (en) Decoy library construction method and apparatus, target-decoy library construction method and apparatus, and metabolome fdr identification method and apparatus
CN115391172A (en) Input structure inference method and device based on particle swarm optimization algorithm
CN111767518B (en) AWCC parameter value determining method, device, equipment and computer storage medium
CN114117876A (en) Feature selection method based on improved Harris eagle algorithm
Aliniya et al. Dynamic constrained multi-objective optimization based on adaptive combinatorial response mechanism
US20040034477A1 (en) Methods for modeling chromatographic variables
CN111369074A (en) Corn yield prediction method based on artificial bee colony optimized BP neural network

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