Bacterial strain drug sensitivity typing identification method and system based on time-of-flight mass spectrometry imaging and machine learning technology

By combining time-of-flight mass spectrometry imaging and machine learning techniques, and integrating mass spectrometry imaging data and morphological data, a multi-dimensional bacterial species antimicrobial susceptibility typing model is constructed. This solves the accuracy and efficiency problems of bacterial species antimicrobial susceptibility typing in existing technologies, and achieves efficient identification of bacterial subtypes and improved stability in antimicrobial resistance prediction.

CN123182775APending Publication Date: 2026-11-27SHANGHAI YUDA INDUSTRIAL CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202611110078.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-24
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing methods for identifying bacterial strains by drug susceptibility testing have shortcomings in terms of accuracy, efficiency, and information completeness. They are difficult to effectively distinguish between strains with high similarity in protein fingerprint patterns but differences in spatial distribution. Furthermore, traditional mass spectrometry techniques cannot fully reflect the dynamic response characteristics of bacterial strains to drugs, thus limiting the accuracy of drug susceptibility testing.

Method used

By combining time-of-flight mass spectrometry imaging and machine learning technology, multidimensional data analysis of mass spectrometry imaging data, morphological data and traditional mass spectrometry data is used to extract features related to drug susceptibility typing, construct a machine learning model for bacterial species drug susceptibility typing identification, and integrate spatial location information and morphological features to improve identification accuracy.

Benefits of technology

It significantly improves the accuracy of bacterial subtype identification, reduces the probability of confusion in drug resistance prediction, enhances the model's ability to adapt to spectral similarity typing, covers more clinically difficult-to-distinguish bacterial species, and provides more comprehensive support for drug susceptibility typing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123182775A_ABST
    Figure CN123182775A_ABST
Patent Text Reader

Abstract

The application provides a bacteria drug sensitivity typing recognition method and system based on time-of-flight mass spectrometry imaging and machine learning technology, and belongs to the technical field of clinical microorganism detection. The recognition method comprises the steps of data acquisition, data preprocessing, feature extraction, machine model construction, experimental analysis and result output, and the system comprises a data acquisition module, a preprocessing module, a feature extraction module, a model construction module and a result output module. By integrating matrix assisted laser desorption ionization time-of-flight mass spectrometry (MALDI-TOF MS) imaging data, traditional mass spectrometry detection data and morphological data, through multi-step preprocessing and multi-algorithm feature screening, a multi-task machine learning model is constructed, rapid and accurate drug sensitivity typing is realized, and technical support is provided for clinical targeted drug use and infection control.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of interdisciplinary technology of microbial detection, mass spectrometry detection and artificial intelligence prediction, and specifically to a method and system for identifying bacterial strains based on time-of-flight mass spectrometry imaging and machine learning technology. Background Technology

[0002] In clinical medicine, the diagnosis and precise medication of microbial infectious diseases are crucial for ensuring patient treatment outcomes and controlling the spread of infection. Traditional methods for identifying microorganisms mainly rely on culture and biochemical identification, requiring steps such as strain isolation and culture, and biochemical reaction detection. This entire process can take several days, making it difficult to meet the needs of emergency patients for rapid diagnosis and timely medication. Furthermore, traditional methods have low sensitivity, limited ability to distinguish between different subtypes of the same species, and cannot accurately match the drug resistance characteristics corresponding to subtypes. With the rapid development of modern medical technology, mass spectrometry imaging and traditional species-based supermap-based microbial identification techniques have become important tools for microbial identification and drug susceptibility typing. Mass spectrometry imaging technology, through high-resolution ion detection and spatial distribution analysis, can provide molecular composition information of microbial samples, thus demonstrating unique advantages in pathogen identification. For example, in the diagnosis of fungal infections, matrix-assisted laser desorption / ionization time-of-flight mass spectrometry (MALDI-TOF MS) combined with mass spectrometry imaging technology has been used for the rapid identification of pathogenic fungi such as Candida and Cryptococcus, with detection speed and accuracy superior to traditional morphological methods. Meanwhile, traditional microbial identification techniques based on species supermaps, which rely on the acquisition and comparison of mass spectrometry data, have been widely used in clinical microbiology laboratories, particularly excelling in the rapid identification of bacteria and fungi. This technology offers significant advantages in microbial identification, such as ease of operation, rapid detection, and low cost, making it an important tool in clinical microbiology laboratories. However, its limitations cannot be ignored. First, traditional methods have limited ability to distinguish closely related microbial species, such as Listeria and Bacillus cereus, whose genetic characteristics and biochemical features are highly similar, making direct identification through existing databases difficult. Second, the accuracy and reliability of mass spectrometry data are significantly affected by sample quality and experimental procedures, potentially leading to misjudgments or false negatives. Therefore, traditional MALDI-TOF MS technology is mainly used for species-level identification and struggles to achieve precise differentiation of specific subtypes, serotypes, or drug-resistant types.

[0003] In the medical field, the efficiency of bacterial strain susceptibility typing directly impacts diagnostic and treatment decisions for infectious diseases. Rapid and accurate susceptibility typing not only helps optimize antibiotic use strategies but also effectively reduces the risk of drug resistance arising from empirical medication. Existing resistance testing methods, such as disk diffusion and broth dilution methods, require additional testing after strain identification, taking 48-72 hours from sample collection to obtaining a resistance profile report. This further prolongs the testing cycle, and the test results cannot be directly linked to strain typing data, resulting in a significant lag in clinical medication guidance.

[0004] However, the aforementioned pure mass spectrometry data analysis techniques have significant limitations in antimicrobial susceptibility typing. Traditional mass spectrometry techniques mainly rely on the comparison of bacterial protein superspectral maps, which is insufficient to comprehensively reflect the dynamic response characteristics of bacterial species to drugs, thus limiting the accuracy of antimicrobial susceptibility typing. Furthermore, methods relying solely on mass spectrometry data neglect the importance of microbial morphological characteristics, which may provide crucial supplementary information in antimicrobial susceptibility typing. With the development of big data and artificial intelligence technologies, machine learning (ML) is increasingly widely used in the field of microbial identification, particularly demonstrating great potential in data mining and model building. The combination of machine learning and traditional mass spectrometry techniques also brings new development opportunities for microbial identification. For example, the study published by Dai et al. in Microorganisms (2026, 14:177) proposed the ReShuffle-MS region-guided data augmentation framework, which specifically addresses the model overfitting and performance issues caused by small sample size, high-dimensional noise in spectra, and weak resistance signals when MALDI-TOF mass spectrometry is combined with AI to predict bacterial drug resistance. Its application in the prediction of levofloxacin resistance in Escherichia coli fully demonstrates the effectiveness and generalization of this technology.

[0005] Currently, matrix-assisted laser desorption / ionization time-of-flight mass spectrometry (MALDI-TOF MS) combined with machine learning technology has become an important tool in addressing the public health crisis of antibiotic resistance, and it is most widely used in detecting the resistance of common clinical pathogens such as Staphylococcus aureus, Klebsiella pneumoniae, and Escherichia coli. However, this method still has limitations. When different drug-resistant bacterial species exhibit highly similar protein fingerprints due to close phylogenetic relationships, its distinguishing ability is significantly limited. For example, in their article "Interpretable machine learning of clinical MALDI-TOF spectra discriminates carbapenem-resistant Klebsiella pneumoniae while revealing phylogenetic heterogeneity that limits model generalizability," Cai et al. proposed using MALDI-TOF MS combined with machine learning to conduct rapid detection and typing of penicillin-resistant Klebsiella pneumoniae (CRKP). This method achieved perfect differentiation between KPC (carbapenemase) and non-KPC types carrying the resistance gene (AUC=1.00). However, for CRKP and CSKP (carbapenem-sensitive Klebsiella pneumoniae) types carrying the NDM (New Delhi metallo-β-lactamase) resistance gene, the method is difficult to effectively distinguish them due to their close phylogenetic relationship and minimal differences in protein fingerprint mass spectra.

[0006] Therefore, existing methods for identifying bacterial strains by drug susceptibility testing are lacking in accuracy, efficiency, and information completeness, and there is an urgent need for a new comprehensive identification technology to make up for these deficiencies.

[0007] Patent application CN120673157A discloses a high-precision identification method for drug susceptibility test strips in culture media based on a hybrid model, comprising the following steps: S1 Image acquisition and preprocessing: Standardizing the acquired culture media images, including noise removal, illumination correction, and contrast enhancement. S2 Semantic segmentation model processing: Using a deep learning network architecture to perform pixel-level classification on the preprocessed image, accurately locating the position and boundaries of all drug susceptibility test strips in the culture media, and generating a segmentation mask. S3 Classification model processing: Extracting the test strip regions based on the results of step S2, and using a CNN classification model to identify the drug code and concentration on each test strip. S4 Hybrid model fusion: Intelligently fusing the data from steps S2 and S3, and outputting the final drug susceptibility test strip identification result through confidence weighting and result verification. However, this patent cannot completely solve the existing technical problems, nor can it meet the needs of this invention. Summary of the Invention

[0008] To address the shortcomings of existing technologies, the purpose of this invention is to provide a method and system for identifying bacterial strains based on time-of-flight mass spectrometry imaging and machine learning technologies.

[0009] The bacterial strain antimicrobial susceptibility typing and identification method based on time-of-flight mass spectrometry imaging and machine learning technology provided by the present invention includes the following steps: Step S1: Data acquisition, including mass spectrometry imaging data acquisition, morphological data acquisition, and conventional mass spectrometry data detection acquisition; the mass spectrometry imaging data is mass spectrometry data with spatial location information, including spatial coordinates, mass-to-charge ratio sequence, and ion intensity values ​​corresponding to each coordinate and mass-to-charge ratio; the morphological data includes quantitative parameters of colony area, perimeter, and roundness coefficient; the conventional mass spectrometry detection data includes time-of-flight mass spectra and super-spectral data generated by comparison with a database; Step S2: Data preprocessing, including mass spectrometry imaging data preprocessing, morphological data preprocessing, and mass spectrometry detection data preprocessing; the mass spectrometry imaging data preprocessing includes background signal fluctuation elimination, signal-to-noise ratio enhancement, data normalization, and spatial geometric correction; the morphological data preprocessing includes morphological feature parameter standardization transformation and missing data imputation; the mass spectrometry detection data preprocessing includes raw spectrum filtering and smoothing, feature peak identification and screening, and extraction of drug sensitivity typing-related feature peaks; Step S3: Feature extraction, including mass spectrometry imaging feature extraction, morphological feature extraction, and mass spectrometry detection feature extraction; the mass spectrometry imaging feature extraction includes spatial distribution features, regional signal difference features, and spatial-mass spectrometry fusion features related to drug susceptibility typing; the morphological feature extraction includes drug susceptibility-related morphological identification features based on standardized parameters and morphological parameter combination features; the mass spectrometry detection feature extraction includes protein fingerprint spectrum difference peaks of strains with different drug susceptibility types, core protein spectrum features related to drug susceptibility phenotypes, and drug susceptibility-specific features screened from super spectra; Step S4: Machine learning model construction, including model selection, model training, and model validation; the model selection uses machine learning algorithms suitable for handling high-dimensional and nonlinear relationships to construct a classification model; the model training divides the preprocessed feature data into training and validation sets according to a preset ratio, iteratively optimizes the key parameters of the model, and obtains a convergent and stable classification model; the model validation evaluates the classification performance of the trained model and introduces an external independent clinical dataset for cross-scenario validation. Step S5: Experimental analysis and result output, including clinical sample testing, multi-dimensional result analysis, and validation conclusion output; the clinical sample testing involves inputting the extracted feature data into the validated model to automatically complete bacterial strain typing and drug susceptibility type prediction; the multi-dimensional result analysis combines the clinical drug susceptibility test gold standard and gene detection results for cross-validation; the validation conclusion output summarizes the experimental data, clarifies the model's core performance indicators, advantageous application scenarios, and applicable boundaries.

[0010] Preferably, in step S1, the detection molecular weight range of the mass spectrometry imaging data is 0.3kDa~60kDa, and the maximum permissible error of the mass-to-charge ratio of the time-of-flight mass spectrum is ≤500ppm.

[0011] Preferably, in step S2, the spatial geometric correction of the mass spectrometry imaging data preprocessing is used to eliminate the spatial coordinate offset of different samples, and the morphological data preprocessing uses Z-score normalization for parameter transformation; in step S3, the spatial-mass spectrometry fusion feature is the mapping relationship feature between spatial coordinates and the corresponding mass-to-charge ratio ion intensity, and the morphological parameter combination feature includes the colony area-roundness coefficient joint discrimination index and the matching degree feature between perimeter and signal enrichment region.

[0012] Preferably, in step S4, the machine learning algorithm is selected from one or more of support vector machines, random forests, or artificial neural networks.

[0013] Preferably, in step S4, the iterative optimization of the model training parameters adopts grid search, random search, or Bayesian optimization; the key parameters of the model include the number of decision trees, maximum depth, and minimum number of sample splits in the random forest, the kernel function type and penalty coefficient of the support vector machine, and the number of hidden layer nodes and learning rate of the artificial neural network.

[0014] Preferably, in step S4, the model validation employs confusion matrix analysis, cross-validation, or receiver operating characteristic (ROC) curve analysis, and the evaluation metrics include accuracy, precision, recall, F1 score, and AUROC value.

[0015] The bacterial strain antimicrobial susceptibility typing and identification system based on time-of-flight mass spectrometry imaging and machine learning technology provided by the present invention is used to implement the bacterial strain antimicrobial susceptibility typing and identification method based on time-of-flight mass spectrometry imaging and machine learning technology, including: Matrix-assisted laser desorption / ionization time-of-flight mass spectrometer is used to acquire mass spectrometry imaging data and conventional mass spectrometry detection data; Microscopic observation equipment, including optical microscopes, scanning electron microscopes and transmission electron microscopes, is used to observe colony morphology characteristics and high-resolution bacterial images; The computing module is used to perform data preprocessing, feature extraction, and training and inference operations for machine learning models; The storage module, connected to the computing module, is used to store the original experimental data, preprocessed data, extracted feature sets, and trained model parameters. The data interface module is used to receive multi-source experimental data and output analysis and identification results, while also being responsible for control flow output.

[0016] Preferably, the parameters of the matrix-assisted laser desorption / ionization time-of-flight mass spectrometer are configured as follows: accelerating voltage 10kV~20kV, flight tube length 0.8m~1.2m, laser frequency 500Hz~100Hz, mass-to-charge ratio coefficient of variation ≤0.02%, relative deviation of mass stability ≤±300ppm / 8h, and mass resolution better than unit mass resolution; the objective lens of the optical microscope has a magnification of 4×~100×, is equipped with bright-field, phase-contrast, and fluorescence imaging functions, and the digital camera resolution is not less than 5 megapixels; the scanning electron microscope... The micromirror has an accelerating voltage of 1kV~30kV and a resolution better than 5nm; the transmission electron microscope has an accelerating voltage of 60kV~200kV and a resolution better than 0.2nm; the computing module is equipped with a multi-core central processing unit and parallel computing units, with a memory capacity of no less than 16GB and a floating-point operation capability of no less than 1TFLOPS; the storage module adopts a combination architecture of non-volatile memory and high-speed cache, with a storage capacity of no less than 1TB and a data read / write speed of no less than 500MB / s; the data interface module supports Gigabit Ethernet, USB 3.0 and above standards or PCIe interface, and has multi-channel synchronous data reception and protocol parsing functions.

[0017] Preferably, the time-of-flight mass spectrometer is a reflectance-type ion mass analyzer, and its characteristic mass resolution is selected by setting the number of reflections or the duration of the reflection state, with a lower limit of mass resolution ≥600 and an upper limit of ≥100000.

[0018] Preferably, the matrix-assisted laser desorption / ionization time-of-flight mass spectrometer is equipped with a mobility spectrum storage and analysis device before the ions are analyzed by mass spectrometry. The device can select and store antibiotic-binding protein segments with ion mobility covering 24kDa~70kDa, and release them sequentially according to the mobility equilibrium field strength, thereby realizing the effective identification of low-abundance specific drug-resistant mutation expression and sequence rearrangement mutation drug resistance.

[0019] Compared with the prior art, the present invention has the following beneficial effects: (1) The present invention integrates the location distribution and spatial characteristics of mass spectrometry imaging data and morphological data with protein fingerprint data detected by mass spectrometry, which can effectively distinguish bacterial subtypes with high similarity of protein fingerprints but different spatial distributions, avoid misclassification caused by overlapping single spectral features, and greatly improve the accuracy of bacterial subtype identification. (2) The spatial dimension information provided by the mass spectrometry imaging of the present invention complements the biological feature data detected by mass spectrometry, enabling the machine learning model to capture more comprehensive species differentiation features. In particular, for drug-resistant and sensitive species with close phylogenetic relationships and small spectral differences, it can significantly reduce the confusion probability of drug resistance prediction and improve the stability and reliability of prediction results. (3) This invention enhances the adaptability of machine learning models to complex scenarios of “similar spectra but different subtypes” by rapidly fusing multi-dimensional information-rich mass spectrometry data. It can cover more clinically difficult-to-distinguish bacterial species, expand the scope of clinical application of the technology, and provide more comprehensive support for precision medicine. In addition, in optimized instrument systems with higher resolution such as multiple reflectance mass analyzers or even tandem migration spectra, the above method can further extend and utilize the precise molecular weight and molecular cross-sectional properties of important low-abundance mutant proteins in drug sensitivity metabolic sequences to provide a more accurate identification network, thereby improving the accuracy of interpretation of different types of drug-resistant bacteria, reducing bacterial culture time, and improving the timeliness of medical diagnostic reports. Attached Figure Description

[0020] Other features, objects, and advantages of the present invention will become more apparent from the following detailed description of non-limiting embodiments with reference to the accompanying drawings: Figure 1 This is a schematic diagram of the bacterial strain antimicrobial susceptibility typing and identification method based on time-of-flight mass spectrometry imaging and machine learning proposed in this invention; Figure 2 The flowchart of the bacterial strain antimicrobial susceptibility typing identification method based on time-of-flight mass spectrometry imaging and machine learning technology proposed in this invention is shown below; Figure 3 This invention presents an architecture diagram of a bacterial strain antimicrobial susceptibility typing and identification system based on time-of-flight mass spectrometry imaging and machine learning technology; Figure 4 High-resolution mass spectra of characteristic peaks of carbapenem antibiotics and PBP proteins under different mass spectrometry resolutions; Figure 5a and Figure 5b The migration spectrum of proteins extracted from wild-type Acinetobacter baumannii and a drug-resistant mutant strain. Detailed Implementation

[0021] The present invention will now be described in detail with reference to specific embodiments. These embodiments will help those skilled in the art to further understand the present invention, but do not limit the invention in any way. It should be noted that those skilled in the art can make several changes and improvements without departing from the concept of the present invention. These all fall within the protection scope of the present invention.

[0022] This invention proposes a method and system for bacterial strain antimicrobial susceptibility typing based on time-of-flight mass spectrometry imaging and machine learning technology, aiming to overcome the limitations of existing technologies and promote the development of this field. Through comprehensive analysis of multi-dimensional data such as mass spectrometry imaging data, morphological data, and mass spectrometry detection data, and by utilizing machine learning methods to extract mass spectrometry features, drug metabolism fingerprint features, and bacterial protein change features related to antimicrobial susceptibility typing, a bacterial strain antimicrobial susceptibility typing identification model is constructed through big data model establishment and training, ultimately achieving efficient identification of bacterial strain antimicrobial susceptibility types, such as... Figure 1 As shown.

[0023] To achieve the above objectives, this invention proposes a method for bacterial strain antimicrobial susceptibility typing based on time-of-flight mass spectrometry imaging and machine learning technology. The specific process is as follows: Figure 2 As shown, the method includes the following steps: Step S1: Data acquisition, including mass spectrometry imaging data acquisition, morphological data acquisition, and traditional mass spectrometry data detection acquisition; The mass spectrometry imaging data is mainly mass spectrometry data with spatial location information, including spatial coordinates (x, y), mass-to-charge ratio (m / z) sequence, and ion intensity values ​​corresponding to each coordinate and m / z. The morphological data includes quantitative parameters such as colony area, perimeter, and roundness coefficient, to achieve a standardized description of morphological characteristics; The traditional mass spectrometry detection data mainly consists of time-of-flight mass spectra, which are then compared with a database to generate super-spectral data.

[0024] Step S2: Data preprocessing, including mass spectrometry imaging data preprocessing, morphological data preprocessing, and mass spectrometry detection data preprocessing.

[0025] The mass spectrometry imaging data preprocessing includes background signal fluctuation elimination, signal-to-noise ratio enhancement, data normalization, and spatial geometric correction. The morphological data preprocessing includes operations such as morphological feature parameter standardization transformation and missing data imputation; The mass spectrometry detection data preprocessing includes operations such as raw spectrum filtering and smoothing, characteristic peak identification and screening, and extraction of characteristic peaks related to drug sensitivity typing; Step S3: Feature extraction, including mass spectrometry imaging feature extraction, morphological feature extraction, and mass spectrometry detection feature extraction.

[0026] The mass spectrometry imaging feature extraction includes spatial distribution features related to drug sensitivity typing, regional signal difference features, and spatial-mass spectrometry fusion features.

[0027] The morphological feature extraction includes drug sensitivity-related morphological identification features based on standardized parameters, as well as morphological parameter combination features.

[0028] The mass spectrometry data feature extraction includes protein fingerprint spectrum difference peaks of strains with different drug susceptibility types, core protein spectrum features related to drug susceptibility phenotypes, and drug susceptibility specific features screened from super spectra.

[0029] Step S4: Machine model construction, including model selection, model training and model validation.

[0030] The model selection, considering the high-dimensional, nonlinear data system comprised of mass spectrometry imaging, morphological quantification, and mass spectrometry detection of protein features in this invention, employs machine learning algorithms suitable for handling high-dimensional and nonlinear relationships to construct a classification model. The algorithm may include Support Vector Machine (SVM), Random Forest, or Artificial Neural Network (ANN), among others.

[0031] As a preferred embodiment, this invention employs an artificial neural network (ANN) to construct a classification model for bacterial strain typing, and specifically designs it in conjunction with the characteristics of high-resolution mass spectrometry data. The specific construction process is as follows: (1) Feature dimensionality compression and sparse selection. The 600-800 core features extracted in step S3 constitute a high-dimensional input vector. d is the feature dimension, 600≤d≤800. This is the d-th core feature in the high-dimensional input vector X. Since high-resolution mass spectrometry can capture a large amount of protein fingerprint details, but these features contain redundancy and noise, this invention employs sparse principal component analysis (SPCA) to perform dimensionality reduction and sparse selection of high-dimensional mass spectrometry features. The corresponding optimization objective function is:

[0032] Where W is the projection matrix; It is the Frobenius norm, used to quantify the error between the original feature data and the reconstructed feature data, ensuring the effectiveness of feature reconstruction; It is the L1 norm, used to impose sparsity constraints on the projected weight matrix, thereby achieving sparse selection of feature weights. This is the ridge regression regularization coefficient, used to constrain the overall magnitude of the matrix weights and prevent overfitting during model training; The sparsity penalty coefficient is the larger the value, the sparser the effective feature loads corresponding to each principal component, which can accurately screen core features and suppress invalid interference features.

[0033] Preferably, the optimal method can be determined through 10-fold cross-validation. and The optimal parameter combination for identifying drug resistance features in mass spectrometry is determined, and the original high-dimensional mass spectrometry features are compressed into low-dimensional sparse principal component features. The feature mapping relationship is Z=XW, where Z is the low-dimensional sparse principal component feature vector obtained after dimensionality reduction by sparse principal component analysis (SPCA).

[0034] (2) Network Architecture Design. The classification network of this invention adopts a decreasing fully connected architecture from wide to narrow, consisting of an input layer, four hidden layers, and a single output layer. The input layer receives the low-dimensional feature vector Z after SPCA dimensionality reduction. The first hidden layer has 256 neurons, uses the ReLU activation function, and is connected to a batch normalization layer and a dropout layer with a dropout rate of 0.4. The second hidden layer has 128 neurons, uses the ReLU activation function, and is equipped with a batch normalization layer and a dropout layer with a dropout rate of 0.4. The third hidden layer has 64 neurons, uses the ReLU activation function, and is equipped with a batch normalization layer and a dropout layer with a dropout rate of 0.3. The fourth hidden layer has 32 neurons, uses the ReLU activation function, and is equipped with a batch normalization layer and a dropout layer with a dropout rate of 0.2. The output layer has a single neuron, uses the Sigmoid activation function, and outputs a probability value in the range (0,1) to represent the classification probability of the sample to be tested. The ReLU activation function is defined as f(x) = max(0,x), where x is the input of each hidden layer neuron. It offers advantages such as high computational efficiency and mitigating gradient vanishing in deep networks. The batch normalization formula for each hidden layer is as follows:

[0035] In the formula, and Let be the mean and variance of the mini-batch samples, respectively, and ε be a small constant to prevent division by zero. z represents the original input features received by the current hidden layer. It is a standardized output after batch normalization.

[0036] Batch normalization stabilizes the distribution of input data across layers, accelerating model convergence and providing regularization. Dropout layers randomly disable some neurons during training with a set probability, reducing the network's dependence on individual neurons and improving the robustness of feature representation. This invention employs a progressively decreasing Dropout rate, retaining more feature information in shallower layers and strengthening regularization constraints in deeper layers, making it suitable for applications with limited sample sizes. The computational formulas for each fully connected layer are as follows:

[0037] In the formula, , and These are the output features, weight matrix, and bias vector of the l-th layer, respectively. The network input is the output feature of the previous layer. satisfy: , The ReLU activation function is used. Output layer prediction probability. The calculation formula is:

[0038] in, The Sigmoid activation function is expressed as follows: ; This is the output feature vector of the fourth hidden layer (i.e., the last hidden layer); This is the weight matrix of the output layer (since the output layer has only one neuron, it is actually a weight vector), used to map the output of the fourth hidden layer to the output space; This is the bias term for the output layer. The output layer uses budgeted probabilities to determine drug sensitivity typing.

[0039] (3) Regularization and anti-overfitting strategies. Considering the limited sample size and class imbalance of some drug-resistant bacterial species, this invention introduces an L2 weight decay regularization mechanism to add a penalty term to the loss function. ,set up This effectively constrains the magnitude of network weight parameters, avoiding overfitting caused by parameter redundancy. Simultaneously, the batch-normalized moving mean and moving variance statistics accumulated during training are reused in the model inference phase, ensuring stable and reliable prediction results after model deployment. Through the synergistic effect of multiple regularization strategies, this invention can significantly improve the generalization ability and robustness of classification models in scenarios with limited clinical samples and class imbalance.

[0040] The model training process involves first dividing the preprocessed mass spectrometry imaging feature data, morphological feature data, and mass spectrometry detection feature data into training and validation sets according to a preset ratio to ensure data distribution consistency. Then, the key model parameters are iteratively optimized through multiple rounds of training to improve the model's fitting ability, ultimately obtaining a convergent and stable classification model. The model training algorithm can be a grid search method, a random search method, or a Bayesian optimization method, etc.; the key model parameters include the number of decision trees, maximum depth, and minimum number of sample splits in a random forest; the kernel function type and penalty coefficient in a support vector machine; and the number of hidden layer nodes and learning rate in an artificial neural network.

[0041] As a preferred option, when using the above-mentioned artificial neural network classification model, the specific process of model training is as follows: (1) Dataset partitioning and mass spectrometry data augmentation. The samples after feature extraction in step S3 are hierarchically divided into training, validation, and test sets in a 7:2:1 ratio, with a fixed random seed (random_state=0) to ensure experimental reproducibility. Addressing the shortcomings of limited training samples and class imbalance in mass spectrometry, this invention, based on the physical characteristics of MALDI-TOF MS, designs a dedicated data augmentation strategy that applies only to the training set, avoiding the introduction of invalid noise. Specifically, it includes three augmentation methods: Strategy 1 involves multiplicative perturbation of mass spectrometry peak intensities, applying a uniformly distributed random scaling factor to the entire sample feature vector with a probability of 0.4. The transformation formula is as follows: ,in, It is the enhanced feature vector, scaling factor A uniform random function distribution (Uniform (0.92, 1.08)) was adopted. This method simulates the natural fluctuations in signal intensity caused by laser energy fluctuations and differences in sample crystallization, and conforms to the physical characteristic that there is a normal deviation of 10% to 20% in peak intensity when detecting the same strain by mass spectrometry.

[0042] Strategy 2 involves feature peak position jittering: adjusting the position of adjacent feature pairs with a probability of 0.3. Perform weighted interpolation shift, the transformation formula is as follows: ,in, It is the original i-th feature value. It is the enhanced i-th eigenvalue. The offset weight θ adopts a uniform random function distribution ~Uniform(-0.1,0.1) to simulate the small drift of the protein peak caused by the sub-ppm mass-to-charge ratio calibration deviation of the high-resolution mass spectrometer.

[0043] Strategy 3 involves baseline drift simulation: Second-order polynomial low-frequency background noise is superimposed on the eigenvector with a probability of 0.3, and the background function is... ,in, , , The coefficients of the polynomial are the normalized characteristic indices. The coefficients satisfy: , , ,in The distribution is random and normal, corresponding to low-frequency background interference caused by uneven matrix crystallization and detector baseline fluctuations.

[0044] By employing the aforementioned physically reliable enhancement strategies, the sample size of the original training set can be expanded to 3 to 5 times. Compared with conventional Gaussian noise enhancement, this approach can effectively alleviate overfitting of small samples while ensuring that the enhanced samples conform to the mass spectrometry detection rules, thereby improving the robustness of the model's feature learning.

[0045] (2) Focus Loss Function Design. This invention uses the focus loss function as the model training loss function, as shown in the formula: ,in, For the focal loss value, For the model's predicted probability of the true class of a sample, drug-resistant samples satisfy... (Positive class, drug-resistant type) (Negative class, sensitive type), where, This indicates the probability that the model predicts the sample to be drug-resistant; focusing parameters. The value is 2.0, which is used to adjust the difference in weights between easy and difficult samples; To achieve adaptive class balancing weights, the calculation method is based on the number of samples in the training set. ,in For the number of sensitive samples, This represents the number of drug-resistant bacterial strains.

[0046] The standard binary cross-entropy loss formula is: ,in, is the standard cross-entropy loss value; y is the true class label of the sample, 0 for sensitive and 1 for resistant. Compared to the standard cross-entropy loss, the focus loss uses a modulation factor. Suppressing the loss contribution of easily classified samples with high confidence: When the sample classification confidence is high, When the value approaches 1, the modulation factor approaches 0, and the contribution of this sample to the total loss is significantly weakened; for difficult-to-distinguish samples with ambiguous boundaries, The lower numerical value allows the loss weights to be retained, enabling the model training to focus on the subtle differences in characteristics between drug-resistant and sensitive strains, thus improving the accuracy of difficult sample identification.

[0047] (3) Optimizer and learning rate scheduling. This invention uses the AdamW optimizer and sets the initial learning rate to be... Weight decay coefficient for First-order momentum decay rate The value is 0.9, representing the second-order momentum decay rate. The value is 0.999. The parameter iteration update formula is as follows:

[0048] In the formula, The gradient for the current iteration. , denoted as the first and second order momentum accumulations, respectively; t is the number of iterations; and θ is the network's learnable parameters. It represents the first-order momentum (gradient shift mean) accumulated in the (t-1)th iteration step (the previous iteration); It represents the second momentum (the moving average of the squared gradient) accumulated at the (t-1)th iteration step (the previous iteration). Represents the first-order momentum at step t. The first-order momentum correction value after bias correction is used to offset the statistical bias caused by the initial momentum value of 0 in the early stage of iteration. Represents the second momentum at step t. The second-order momentum correction value after deviation correction is used to eliminate the influence of deviation in the early stage of iteration; , This represents the exponent term, which is the power of the iteration step number t, used to correct for the offset. This represents the new network parameters obtained after the current iteration update is completed in step t. This represents the network learnable parameters after the (t-1)th step update; This represents the second-order momentum correction value after bias correction, used for AdamW optimizer parameter update calculations to eliminate the second-order momentum statistical offset error in the early stage of iteration.

[0049] The model learning rate employs a cosine annealing scheduling strategy with warm restart, and the scheduling formula is as follows: ,in, The learning rate at the current iteration step t, and the upper limit of the learning rate. Lower limit T is the total number of steps in the current iteration cycle, and t is the number of iteration steps within the cycle. The value is pi. After each cycle, the learning rate is reset to its maximum value, and the cycle length doubles successively, for 20, 40, and 80 cycles. This strategy achieves rapid convergence in the early stages and fine-tuning in the later stages, while also escaping local optima through a warm restart mechanism, making it suitable for non-convex optimization scenarios in bacterial classification.

[0050] (4) Training Strategy and Hyperparameter Optimization. This invention employs mini-batch gradient descent training with a batch size of 32 and a maximum training epoch of 200. An early stopping mechanism is configured, terminating training and saving the optimal model weights when the validation set loss remains unoptimized for 15 consecutive epochs. This invention uses a Bayesian optimization algorithm to optimize key hyperparameters, covering core parameters such as SPCA dimensionality reduction, the number of neurons in the hidden layer, learning rate, Dropout rate, and focus loss parameters. This method relies on a Gaussian process surrogate model and an expected improvement acquisition function, constructing a probabilistic relationship between parameters and model performance based on historical training information. It can quickly lock the optimal hyperparameter combination within a few iterations, significantly improving optimization efficiency and adapting to model optimization needs under limited computing resources.

[0051] The model validation process involves evaluating the classification performance of the trained model. The model validation algorithm can be confusion matrix analysis, cross-validation, or receiver operating characteristic (ROCCurve) analysis, among others. Furthermore, external independent clinical datasets are introduced for cross-scenario validation to comprehensively assess the model's generalization ability and robustness, ensuring stable performance across different detection scenarios.

[0052] As a preferred option, when using the above-mentioned artificial neural network classification model, the specific process of model validation is as follows: (1) Hierarchical K-fold cross-validation. This invention employs a 10-fold hierarchical cross-validation strategy to evaluate the generalization performance of the model. All samples are randomly divided into 10 subsets. Nine subsets are selected for model training each time, and the remaining subset is used for testing. This process is repeated for 10 rounds of independent trials. Stratified sampling ensures that the ratio of drug-resistant to non-drug-resistant samples within each subset is consistent with the overall population, maintaining a sample ratio of approximately 4:1. The mean and standard deviation of the 10 rounds of test results are used as the final performance indicators of the model, eliminating random errors caused by the partitioning of a single dataset. Considering the limited number of bacterial samples, 10-fold cross-validation, compared to 5-fold cross-validation, allows for more granular performance evaluation and effectively improves the statistical reliability of the model evaluation results.

[0053] (2) Multi-dimensional evaluation index system. This invention is based on a classification confusion matrix and covers true positives. True negative False positives False negative Based on the four types of sample classification results, a multi-dimensional quantitative evaluation system for classification effectiveness was constructed, including accuracy, precision, recall, F1 score, AUC value, and Cohen's Kappa coefficient. The calculation formulas and technical significance of each indicator are as follows: Accuracy: , used to characterize the overall classification accuracy of the model; Accuracy: It is used to characterize the proportion of truly drug-resistant samples among those judged as drug-resistant by the model, reflecting the credibility of the drug resistance judgment results; Recall rate (sensitivity): This is used to characterize the correct detection rate of real drug-resistant samples. Considering clinical safety requirements, this invention prioritizes ensuring a model recall rate ≥0.95 to eliminate the risk of treatment failure caused by missed detection of drug-resistant bacteria. F1 score: , which is the harmonic mean of precision and recall, and can comprehensively evaluate the overall classification performance of the model in class imbalance scenarios; AUC value: based on false positive rate / ( + (x) represents the horizontal axis and the true positive rate. / ( + Plot the ROC curve with π on the vertical axis, and the area under the curve is the AUC value. This metric is not limited by a fixed classification threshold and can objectively characterize the model's global sample discrimination and ranking ability. The closer the AUC value is to 1, the better the classification performance. Cohen's Kappa coefficient: ,in To observe consistency rate, it is equivalent to accuracy rate. This is the random expected consistency rate calculated based on the marginal probability of the categories. This coefficient can eliminate the interference of sample category distribution bias and random judgment, accurately quantifying the consistency between the model prediction results and the clinical gold standard. A value greater than 0.8 indicates excellent model consistency.

[0054] (3) External Independent Validation. This invention selects clinical isolates from different hospitals and at different testing periods to construct an external independent validation set of no less than 50 strains. The preprocessing, feature extraction, and dimensionality reduction processes are identical to those used in model training. These are then input into the trained model to complete prediction tests. Through external cross-scenario sample validation, the generalization ability of the model under different testing equipment, operating conditions, and regional samples is comprehensively evaluated. Simultaneously, the DeLong test is used to analyze the difference in AUC results between the training set and the external validation set. When the test result p>0.05, the model is deemed to have no significant overfitting and possess good clinical applicability.

[0055] (4) Model Calibration Evaluation. This invention uses reliability curves and Expected Calibration Error (ECE) to quantify and evaluate the calibration accuracy of the model's predicted probabilities, measuring the degree of matching between the model's output predicted drug resistance probabilities and the actual drug resistance ratios in the samples. Simultaneously, to eliminate model prediction bias and address the issues of overconfidence or insufficient confidence in the predicted probabilities, this invention introduces a temperature scaling algorithm to perform post-calibration correction on the model's output probabilities. Temperature scaling only fine-tunes the parameters in the model's output layer, without changing the network training weights. The specific calibration formula is as follows:

[0056] In the formula, Resistance probability value after temperature scaling calibration For learnable temperature scaling parameters, This is the Sigmoid activation function. This invention searches for the optimal temperature parameters on the validation set using a grid search. When optimized When the value is greater than 1, the predicted probability is softened to converge towards 0.5, thus suppressing the model's overconfidence. When the value is less than 1, the predicted probability is sharpened to enhance the model's confidence level. After calibration, the model's output probability can accurately match the actual drug resistance risk of clinical strains. It can not only output binary classification results of drug resistance / susceptibility, but also provide high-precision drug resistance probability values, providing a reliable quantitative basis for clinical personalized precision medicine and risk grading assessment.

[0057] Step S5: Experimental analysis and results output, including clinical sample testing, multi-dimensional results analysis, and verification conclusion output.

[0058] The clinical sample test involves selecting samples from different sources and completing the acquisition and preprocessing of mass spectrometry imaging data, morphological data, and mass spectrometry detection data according to steps S1 to S2. The feature data extracted in step S3 is then input into a trained, optimized, and validated model, which automatically performs bacterial typing and drug sensitivity type prediction, and outputs preliminary detection results.

[0059] The multi-dimensional results analysis, combined with the gold standard method of clinical drug susceptibility testing and gene detection results, cross-validated the model output results: compared the consistency between the bacterial species type and drug susceptibility type predicted by the model and the gold standard results, and statistically analyzed the differences in prediction accuracy of different subtype strains and strains with different drug resistance mechanisms.

[0060] The validation results are output, summarizing experimental analysis data, clarifying the model's core performance indicators in clinical sample testing, and summarizing the model's advantageous application scenarios and applicable boundaries. Simultaneously, typical case analysis reports are output, providing experimental basis for subsequent clinical application and further model optimization.

[0061] like Figure 3 The present invention also provides a bacterial strain antimicrobial susceptibility typing and identification system based on time-of-flight mass spectrometry imaging and machine learning technology, for implementing the aforementioned identification method. The system includes: (1) Matrix-assisted laser desorption / ionization time-of-flight mass spectrometer (MALDI-TOF MS) is used to acquire mass spectrometry imaging data and conventional mass spectrometry detection data; (2) Optical microscope, scanning electron microscope or transmission electron microscope, used to observe colony morphology characteristics and high-resolution bacterial images; (3) Computation module, used to perform data preprocessing, feature extraction and training and inference operations of machine learning models; (4) Storage module, connected to the computing unit, used to store the original experimental data, preprocessed data, extracted feature sets and trained model parameters; (5) Data interface module, used to receive multi-source experimental data from the data acquisition module and output the analysis and identification results. At the same time, it is responsible for control flow output.

[0062] Preferably, the parameters of the matrix-assisted laser desorption / ionization time-of-flight mass spectrometer include: accelerating voltage of 10kV~20kV, flight tube length of 0.8m~1.2m, molecular weight detection range of 0.3kDa~60kDa, laser frequency of 50Hz~100Hz, maximum permissible error of mass-to-charge ratio ≤500ppm, mass-to-charge ratio coefficient of variation ≤0.02%, relative deviation of mass stability ≤±300ppm / 8h, and mass resolution better than unit mass resolution.

[0063] Preferably, the optical microscope has the following parameters: an objective lens with a magnification of 4×~100×, equipped with bright field, phase contrast and fluorescence imaging functions, and a digital camera with a resolution of not less than 5 million pixels; a scanning electron microscope with an accelerating voltage of 1kV~30kV and a resolution better than 5nm; and a transmission electron microscope with an accelerating voltage of 60kV~200kV and a resolution better than 0.2nm. Preferably, the computer module is configured to be equipped with a multi-core central processing unit and a parallel computing unit, with a memory capacity of not less than 16GB and a floating-point operation capability of not less than 1 TFLOPS; Preferably, the storage module is configured to use a combination architecture of non-volatile memory and cache, with a storage capacity of not less than 1TB and a data read / write speed of not less than 500MB / s; Preferably, the data interface module is configured to support Gigabit Ethernet, USB 3.0 and above standards or PCIe interface, and has multi-channel synchronous data reception and protocol parsing functions.

[0064] Preferably, the mass analyzer of the time-of-flight mass spectrometer is a reflectance ion mass analyzer, whose characteristic mass resolution can be selected by setting the number of reflections or the duration of the reflection state, and its lower limit of mass resolution is ≥600 and the upper limit is ≥100000.

[0065] Preferably, the mass spectrometer is equipped with a mobility spectrum storage and analysis device before the ions are analyzed by mass spectrometry. The device can select and store antibiotic-binding protein segments with ion mobility covering at least 24kDa to 70kDa, and release them sequentially according to the mobility equilibrium field strength, thereby realizing the effective identification of low-abundance specific drug-resistant mutation expression and sequence rearrangement mutation drug resistance.

[0066] Example 1: This embodiment of the invention focuses on carbapenem-resistant Acinetobacter baumannii (CRAB), a common multidrug-resistant Gram-negative bacillus in hospital infections, particularly resistant to key antibacterial drugs such as carbapenems. This often leads to bloodstream infections and ventilator-associated pneumonia in critically ill patients, making treatment difficult and resulting in high mortality rates. The key difference lies in distinguishing between metallo-β-lactamase-type carbapenem-resistant Acinetobacter baumannii (NDM-CRAB) and carbapenem-sensitive Acinetobacter baumannii (CSAB), as their protein fingerprint profiles show only slight differences, making accurate typing difficult with existing technologies. This is the core technical challenge and main innovation of this patent. The work carried out in this embodiment is as follows: 1) Strains: A total of 300 clinical isolates were collected, including 240 NDM-CRAB type isolates (all of which were verified by PCR to have drug resistance genes) and 60 CSAB type isolates (which were confirmed to be sensitive to imipenem and meropenem by microbroth dilution method); in addition, standard strains ATCC 19606 (CSAB) and ATCC BAA-1605 (OXA-23 type CRAB) were selected as quality control strains.

[0067] 2) Experimental equipment: self-developed MALDI-TOF MS mass spectrometer (equipped with imaging module), optical microscope, computer.

[0068] 3) Reagents and consumables: α cyano 4 Hydroxycinnamic acid (CHCA) matrix, acetonitrile, trifluoroacetic acid, Columbia blood agar medium, microbroth dilution kit for drug susceptibility testing, and primers for drug resistance gene detection.

[0069] The specific execution steps are as follows: Step S1: Data Preprocessing. Mass Spectrometry Data Acquisition: The purified strain was uniformly inoculated onto a target plate and scanned using MALDI-TOF MS imaging mode. Mass spectrometry acquisition parameters: After the instrument completed parameter optimization, the initial laser intensity was set to 50 (automatically adjusted according to the measured intensity). 5-12 laser target points were collected for each sample, and the raw mass spectrometry data were integrated. An intermediate calibration was performed every 20 samples to ensure data stability. Morphological Data Acquisition: Colony morphology was photographed using an optical microscope. Image analysis software was used to extract quantitative parameters, including colony area (mm²), perimeter (mm), roundness coefficient (roundness = 4π × area / perimeter²), edge regularity, etc., to achieve standardized description of morphological characteristics.

[0070] Step S2: Data Preprocessing. For mass spectrometry imaging data, preprocessing involves optimizing the quality of the focused signal and calibrating spatial consistency. The Asymmetric Least Squares (ALS) algorithm is executed sequentially to eliminate background signal fluctuations and correct baseline drift. Savitzky-Golay smoothing filtering (window length 11~21, polynomial order 2~3) is used to improve the spectral signal-to-noise ratio. Global calibration of signal intensity is achieved through total ion current (TIC) normalization. Spatial geometric distortion correction is performed based on thin plate spline interpolation (TPS) to ensure spatial matching of imaging pixels. For morphological data preprocessing, the main work revolves around optimizing the standardization and integrity of feature parameters. Z-score is used to standardize morphological feature parameters, and multiple interpolation (MICE) algorithm is used to fill in missing values, ensuring the integrity of the dataset.

[0071] Step S3: Feature Extraction. Mass spectrometry imaging feature extraction: Extracting spatial distribution features and regional signal difference features related to drug-resistant genotypes, mainly the intensity gradient distribution of specific mass-to-charge ratios at the colony center and edge. Spatial-mass spectrometry fusion features mainly involve the mapping relationship between coordinates and drug-resistant associated ion intensities. Morphological feature extraction: Screening morphological identification features related to drug susceptibility. Regarding morphological parameter combination features, the main research focuses on the combined index of area-roundness coefficient, the matching degree between perimeter and signal-enriched regions, etc. Traditional mass spectrometry feature extraction: Identifying differential characteristic peaks of different genotype strains. Core protein spectrum features related to drug susceptibility phenotypes mainly include the difference in the intensity ratio of common peaks between drug-resistant and sensitive strains, and genotype-specific peaks in the super-spectrum, i.e., genotype identification characteristic peaks retained after database comparison. The features extracted from the above data are optimized using algorithms, ultimately retaining 600-800 core features.

[0072] Step S4: Machine Learning Model Construction, Training, and Validation. The training set (210 strains), validation set (60 strains), and test set (30 strains) were hierarchically divided in a 7:2:1 ratio to maintain a consistent proportion of strains in each group. A fixed random seed (random_state=0) was used to ensure experimental reproducibility. The ReShuffle-MS strategy was employed, using a random forest (RF) model to identify the main discriminant region (MDR) and peripheral peak regions (PPR). The MDR was kept intact to preserve core biological information, and PPRs were recombined within the same category (recombined only within the NDM and CSAB groups), generating an augmented dataset three times larger than the original data to alleviate the problem of weak spectral differences and insufficient sample size in the NDM strains. The Combat batch correction algorithm was used to align the feature distributions of the training, validation, and test sets, reducing systematic errors caused by different detection batches. A random forest model was constructed with 100-500 decision trees, a maximum depth of 10-30, and a minimum number of sample splits of 2-10. Training was performed based on the preprocessed feature vectors. The final test results are shown in Table 1. The method proposed in this invention is highly consistent with the clinical drug sensitivity test results, and the detection accuracy is extremely high.

[0073] Table 1. Detection results of the method of the present invention at the level of bacterial strain antimicrobial susceptibility typing.

[0074] Example 2: To further improve the accuracy of drug susceptibility typing, the inventors discovered through further data analysis that the mutated expression of antibiotic interface proteins (such as typical penicillin-binding proteins, PBPs) has a significant weight in the machine learning training network. However, the mass numbers of the two typical types of PBPs in microorganisms are both large. For example, the D-alanyl-D-alanine carboxypeptidase PBP, which is sensitive to most cephalosporins, has a relative molecular mass of 24kDa~35kDa, while the relative molecular mass of PBPs sensitive to both penicillin and cephalosporins can reach 59.5kDa or higher. This requires that the upper limit of the detectable mass range of the mass spectrometer must not be lower than 60,000 Da; otherwise, it will seriously affect the typing accuracy of the identification network. In addition, mutations in microbial metabolism-related genomes are mostly single nucleotide variations, corresponding to single amino acid changes in PBP proteins (including single amino acid mutations or amino acid sequence rearrangements). In mass spectrometry, this manifests as heterogeneous and homogeneous mass number species, which necessitates further improvement in the detection resolution of high-mass number PBPs. For example, the drug resistance mutation of a certain PBP resistant strain originates from the conversion of a glutamic acid (147.13u) to glutamine (146.15u), and its mass drift requires an identification capability of 1 / 60,000 of the molecular weight of the PBP. Considering that the protein contains a large number of carbon, nitrogen, and oxygen atoms, and is affected by the natural heavy isotope envelope, all mass spectrometry peaks will show a certain degree of broadening. Therefore, this embodiment uses a high-resolution ion-flight mass analyzer with folded multiple reflectance paths to improve the identification characteristics of mass information of target substances such as carbapenem-resistant PBP proteins. To verify the impact of improved resolution on the drug resistance typing identification results, the applicant used its self-developed multiple reflectance high-resolution ion-flight mass analyzer system IMMS 5910, which has a mass resolution of over 100,000. Figure 4 The system was modified by adjusting the reflectance analysis time to obtain characteristic and theoretically resolved mass spectra of carbapenem antibiotics and their PBP proteins at resolutions of 600, 10000, 40000, 60000, 100000, and 120000. The figures clearly show that by introducing a multiple ion folding flight path, the mass spectrometer's ability to distinguish carbapenem antibiotics (67.6 kDa) and their acting protein (396 Da) was significantly improved. In clinical data identification results, the false positive / false negative rates decreased from 5.2% / 4.1% to 1.3% / 0.4%, and the Kappa value of this method compared to clinical bacterial culture identification results increased from 0.81 to 0.97. Furthermore, the identification effect showed a significant improvement after the mass resolution reached 100000.

[0075] Example 3: For low-abundance amino acid sequence rearrangement PBP protein resistance mutations that cannot be directly separated by mass spectrometry (such as the case where the D-alanine-D-alanine sequence changes to alanine-D-alanine), this example further proposes an analytical method based on ion mobility spectrometry pre-screening and enrichment, building upon the above invention. This mass spectrometer is equipped with a mobility spectrometry storage device before ion mass spectrometry analysis. This device can selectively cover and store antibiotic-binding protein segments with ion mobilities corresponding to 24kDa~70kDa, and can release ions sequentially according to the mobility equilibrium field strength, thereby achieving effective identification of low-abundance specific resistance mutation expression and sequence rearrangement mutation resistance. Figure 5a and Figure 5b As shown, for the candidate Acinetobacter baumannii PBP protein β-lactamase ion with a mass number of approximately 22.3 kDa and the penicillin-binding protein PBP-1a from a highly drug-resistant Acinetobacter baumannii, although they cannot be distinguished on low-to-medium resolution mass spectrometry, their wild-type and mutant forms exhibit variations in the equilibrium extraction migration electric field intensity value E (kV / m) in the analysis after ion mobility spectrometry pre-storage. This is because the affinity between antibiotics and proteins is based on changes in their structural conformation, caused by the influence of molecular polarity, bond stiffness, and residue steric hindrance of different amino acid sequences. Adding protein mobility spectrometry information as a higher-order dimensional information to the input information of the identification network can supplement the ability of time-of-flight mass spectrometry to identify low-abundance, low-resolution key marker proteins, further improving the identification accuracy of mass spectrometry-based drug susceptibility typing.

[0076] Those skilled in the art will understand that, in addition to implementing the system, apparatus, and their modules provided by this invention in purely computer-readable program code, the same program can be implemented in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers by logically programming the method steps. Therefore, the system, apparatus, and their modules provided by this invention can be considered a hardware component, and the modules included therein for implementing various programs can also be considered structures within the hardware component; alternatively, modules for implementing various functions can be considered both software programs implementing the method and structures within the hardware component.

[0077] Specific embodiments of the present invention have been described above. It should be understood that the present invention is not limited to the specific embodiments described above, and those skilled in the art can make various changes or modifications within the scope of the claims, which do not affect the essence of the present invention. Unless otherwise specified, the embodiments and features described in this application can be arbitrarily combined with each other.

Claims

1. A method for bacterial strain antimicrobial susceptibility typing based on time-of-flight mass spectrometry imaging and machine learning technology, characterized in that, Includes the following steps: Step S1: Data acquisition, including mass spectrometry imaging data acquisition, morphological data acquisition, and conventional mass spectrometry data detection acquisition; the mass spectrometry imaging data is mass spectrometry data with spatial location information, including spatial coordinates, mass-to-charge ratio sequence, and ion intensity values ​​corresponding to each coordinate and mass-to-charge ratio; the morphological data includes quantitative parameters of colony area, perimeter, and roundness coefficient; the conventional mass spectrometry detection data includes time-of-flight mass spectra and super-spectral data generated by comparison with a database; Step S2: Data preprocessing, including mass spectrometry imaging data preprocessing, morphological data preprocessing, and mass spectrometry detection data preprocessing; The mass spectrometry imaging data preprocessing includes background signal fluctuation elimination, signal-to-noise ratio enhancement, data normalization, and spatial geometric correction; the morphological data preprocessing includes morphological feature parameter standardization transformation and missing data imputation; the mass spectrometry detection data preprocessing includes raw spectrum filtering and smoothing, feature peak identification and screening, and extraction of drug sensitivity typing-related feature peaks. Step S3: Feature extraction, including mass spectrometry imaging feature extraction, morphological feature extraction, and mass spectrometry detection feature extraction; the mass spectrometry imaging feature extraction includes spatial distribution features, regional signal difference features, and spatial-mass spectrometry fusion features related to drug susceptibility typing; the morphological feature extraction includes drug susceptibility-related morphological identification features based on standardized parameters and morphological parameter combination features; the mass spectrometry detection feature extraction includes protein fingerprint spectrum difference peaks of strains with different drug susceptibility types, core protein spectrum features related to drug susceptibility phenotypes, and drug susceptibility-specific features screened from super spectra; Step S4: Machine learning model construction, including model selection, model training, and model validation; the model selection uses machine learning algorithms suitable for handling high-dimensional and nonlinear relationships to construct a classification model; the model training divides the preprocessed feature data into training and validation sets according to a preset ratio, iteratively optimizes the key parameters of the model, and obtains a convergent and stable classification model; the model validation evaluates the classification performance of the trained model and introduces an external independent clinical dataset for cross-scenario validation. Step S5: Experimental analysis and result output, including clinical sample testing, multi-dimensional result analysis, and validation conclusion output; the clinical sample testing involves inputting the extracted feature data into the validated model to automatically complete bacterial strain typing and drug susceptibility type prediction; the multi-dimensional result analysis combines the clinical drug susceptibility test gold standard and gene detection results for cross-validation; the validation conclusion output summarizes the experimental data, clarifies the model's core performance indicators, advantageous application scenarios, and applicable boundaries.

2. The bacterial strain antimicrobial susceptibility typing and identification method based on time-of-flight mass spectrometry imaging and machine learning technology according to claim 1, characterized in that, In step S1, the detection molecular weight range of the mass spectrometry imaging data is 0.3kDa~60kDa, and the maximum permissible error of the mass-to-charge ratio of the time-of-flight mass spectrum is ≤500ppm.

3. The bacterial strain antimicrobial susceptibility typing and identification method based on time-of-flight mass spectrometry imaging and machine learning technology according to claim 1, characterized in that, In step S2, the spatial geometric correction of the mass spectrometry imaging data preprocessing is used to eliminate the spatial coordinate offset of different samples, and the morphological data preprocessing uses Z-score normalization for parameter transformation; in step S3, the spatial-mass spectrometry fusion feature is the mapping relationship feature between spatial coordinates and the corresponding mass-to-charge ratio ion intensity, and the morphological parameter combination feature includes the colony area-roundness coefficient joint discrimination index and the matching degree feature between perimeter and signal enrichment region.

4. The bacterial strain antimicrobial susceptibility typing and identification method based on time-of-flight mass spectrometry imaging and machine learning technology according to claim 1, characterized in that, In step S4, the machine learning algorithm is selected from one or more of support vector machines, random forests, or artificial neural networks.

5. The bacterial strain antimicrobial susceptibility typing and identification method based on time-of-flight mass spectrometry imaging and machine learning technology according to claim 1, characterized in that, In step S4, the parameter optimization of the model training adopts grid search, random search or Bayesian optimization. The key parameters of the model include the number of decision trees, maximum depth and minimum number of sample splits of the random forest, the kernel function type and penalty coefficient of the support vector machine, and the number of hidden layer nodes and learning rate of the artificial neural network.

6. The bacterial strain antimicrobial susceptibility typing and identification method based on time-of-flight mass spectrometry imaging and machine learning technology according to claim 1, characterized in that, In step S4, the model validation employs confusion matrix analysis, cross-validation, or receiver operating characteristic (ROC) curve analysis, and the evaluation metrics include accuracy, precision, recall, F1 score, and AUROC value.

7. A bacterial strain antimicrobial susceptibility typing and identification system based on time-of-flight mass spectrometry imaging and machine learning technology, used to implement the bacterial strain antimicrobial susceptibility typing and identification method based on time-of-flight mass spectrometry imaging and machine learning technology as described in any one of claims 1 to 6, characterized in that, include: Matrix-assisted laser desorption / ionization time-of-flight mass spectrometer is used to acquire mass spectrometry imaging data and conventional mass spectrometry detection data; Microscopic observation equipment, including optical microscopes, scanning electron microscopes and transmission electron microscopes, is used to observe colony morphology characteristics and high-resolution bacterial images; The computing module is used to perform data preprocessing, feature extraction, and training and inference operations for machine learning models; The storage module, connected to the computing module, is used to store the original experimental data, preprocessed data, extracted feature sets, and trained model parameters. The data interface module is used to receive multi-source experimental data and output analysis and identification results, while also being responsible for control flow output.

8. The bacterial strain antimicrobial susceptibility typing and identification system based on time-of-flight mass spectrometry imaging and machine learning technology according to claim 7, characterized in that, The matrix-assisted laser desorption / ionization time-of-flight mass spectrometer is configured with the following parameters: accelerating voltage 10kV~20kV, flight tube length 0.8m~1.2m, laser frequency 500Hz~100Hz, mass-to-charge ratio coefficient of variation ≤0.02%, relative deviation of mass stability ≤±300ppm / 8h, and mass resolution better than unit mass resolution; the optical microscope has an objective magnification of 4×~100×, is equipped with bright-field, phase-contrast, and fluorescence imaging functions, and a digital camera resolution of no less than 5 megapixels; the scanning electron microscope has an accelerating voltage of 1kV~30kV and a resolution better than 5nm; the transmission electron microscope has an accelerating voltage of 60kV~200kV and a resolution better than 0.2nm; the computing module is equipped with a multi-core central processing unit and parallel computing unit, with a memory capacity of no less than 16GB and a floating-point operation capability of no less than 1TFLOPS; The storage module adopts a combination architecture of non-volatile memory and high-speed cache, with a storage capacity of not less than 1TB and a data read / write speed of not less than 500MB / s; the data interface module supports Gigabit Ethernet, USB 3.0 and above standards or PCIe interface, and has multi-channel synchronous data reception and protocol parsing functions.

9. The bacterial strain antimicrobial susceptibility typing and identification system based on time-of-flight mass spectrometry imaging and machine learning technology according to claim 7, characterized in that, The time-of-flight mass spectrometer is a reflectance-type ion mass analyzer, and its characteristic mass resolution is selected by setting the number of reflections or the duration of the reflection state. Its mass resolution has a lower limit of ≥600 and an upper limit of ≥100000.

10. The bacterial strain antimicrobial susceptibility typing and identification system based on time-of-flight mass spectrometry imaging and machine learning technology according to claim 7, characterized in that, The matrix-assisted laser desorption / ionization time-of-flight mass spectrometer is equipped with a mobility spectrum storage and analysis device before ion mass spectrometry analysis. The device can select and store antibiotic-binding protein segments with ion mobility covering 24kDa~70kDa, and release them sequentially according to the mobility equilibrium field strength, thereby achieving effective identification of low-abundance specific drug-resistant mutation expression and sequence rearrangement mutation drug resistance.

Citation Information

Patent Citations

  • High-precision identification method of culture medium drug sensitive paper based on mixed model

    CN120673157A