RESUMEN
Quadrupole mass spectrometers (QMS) are widely used for clinical diagnosis and chemical analysis. To obtain the best experimental results, mass spectrometers must be calibrated to an ideal setting before use. However, tuning the current QMS is challenging. Traditional tuning techniques possess low automation levels and rely primarily on skilled engineers. Therefore, in this study, we propose an innovative auto-tuning algorithm for QMS based on the improved particle swarm optimization (PSO) algorithm to automatically find the optimal solution of QMS parameters and make the QMS reach the optimal state. The improved PSO algorithm is combined with simulated annealing, multiple inertia weights, dynamic boundaries, and other methods to prevent the traditional PSO algorithm from the issue of a local optimal solution and premature convergence. According to the characteristics of the mass spectrum peaks, a termination function is proposed to simplify the termination conditions of the PSO algorithm and further improve the automation level of the mass spectrometer. The results of auto-calibration testing of resolution and mass axis show that both resolution and mass axis calibration could effectively meet the requirements of mass spectrometry experiments. By the experiment of auto-optimization testing of lens and ion source parameters, these parameters were all in the vicinity of the optimal solution, which achieved the expected performance. Through numerous experiments, the reproducibility of the algorithm was established as meeting the auto-tuning function of the QMS. The proposed method can automatically tune the mass spectrometer from its non-optimal condition to the optimal one, which can effectively reduce the tuning difficulty of QMS.