A method, system, device and storage medium for predicting Klebsiella pneumoniae virulence-related characteristics based on standardized dry droplet images

By preparing standardized dried droplet images and performing artificial intelligence analysis, and utilizing convolutional neural networks and self-supervised learning methods, the problems of long detection cycles and high costs in the identification of Klebsiella pneumoniae were solved, achieving rapid, low-cost, and automated prediction of virulence-related features.

CN123161673APending Publication Date: 2026-11-24THE THIRD PEOPLES HOSPITAL OF SHENZHEN
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611370528.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-04
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing technologies for identifying Klebsiella pneumoniae involve long detection cycles, high costs, strong experimental dependence, limited standardization, and fail to fully reflect the true virulence-related characteristics.

Method used

By preparing, imaging, and performing artificial intelligence analysis on standardized dried droplet images, image features are extracted using convolutional neural networks and self-supervised learning methods. These features are then combined with multi-label classification, multi-classification, and regression models for prediction, enabling rapid, low-cost, and automated prediction of virulence-related characteristics of Klebsiella pneumoniae.

Benefits of technology

This method enables rapid, low-cost, and automated prediction of virulence-related characteristics of Klebsiella pneumoniae, reducing detection costs, shortening the detection cycle, and improving the accuracy and stability of predictions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123161673A_ABST
    Figure CN123161673A_ABST
Patent Text Reader

Abstract

This invention discloses a method, prediction system, device, and storage medium for predicting virulence-related features of Klebsiella pneumoniae based on standardized dried droplet images. The method includes the following steps: obtaining a bacterial suspension of a Klebsiella pneumoniae isolate to be tested; drying the bacterial suspension and acquiring an image to obtain a dried droplet image; preprocessing the dried droplet image to obtain an input image; inputting the input image into a pre-trained image feature extraction model to obtain image embedding features; and inputting the image embedding features into a pre-trained prediction model to obtain the predicted virulence-related features of the Klebsiella pneumoniae isolate to be tested. This method eliminates the reliance on expensive molecular biology reagents and complex cell and animal experiments required by traditional detection methods, significantly reducing the cost per test and shortening the detection cycle. It achieves rapid, low-cost, and automated prediction of Klebsiella pneumoniae virulence-related features.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of bioinformatics technology, and in particular to a method, prediction system, device, and storage medium for predicting virulence-related features of Klebsiella pneumoniae based on standardized dried droplet images. Background Technology

[0002] Klebsiella pneumoniae is a common opportunistic pathogen in clinical practice, causing pneumonia, bloodstream infections, urinary tract infections, liver abscesses, and other invasive infections. Traditional identification of highly virulent Klebsiella pneumoniae mainly relies on methods such as the string test, capsular type detection, virulence gene detection, cell experiments, or animal experiments. While these methods can provide genotypic or functional phenotype information, they suffer from drawbacks such as long detection cycles, high costs, strong experimental dependence, limited standardization, or inability to fully reflect true virulence-related characteristics.

[0003] During the drying process of bacteria in droplets, factors such as bacterial surface structure, extracellular polysaccharides, capsule material, mucilage, bacterial aggregation state, droplet edge flow, and deposition processes influence the formation of characteristic dried droplet deposition patterns. These patterns can be acquired using ordinary image acquisition equipment and contain multidimensional information such as morphology, texture, grayscale, boundary, and spatial distribution. However, current technologies have not fully utilized the phenotypic information in images of dried Klebsiella pneumoniae droplets to predict its virulence genes, capsule type, and host cell interaction-related phenotypes.

[0004] Therefore, it is necessary to establish a standardized method for the preparation, imaging, and artificial intelligence analysis of dried droplets to achieve low-cost, rapid, and repeatable prediction of virulence-related characteristics of Klebsiella pneumoniae. Summary of the Invention

[0005] The main objective of this invention is to propose a method, system, device, and storage medium for predicting virulence-related features of Klebsiella pneumoniae based on standardized dried droplet images. This aims to solve the problems in the existing technology of Klebsiella pneumoniae identification, such as long detection cycle, high cost, strong experimental dependence, limited standardization, or inability to fully reflect the true virulence-related features.

[0006] To achieve the above objectives, this invention provides a method for predicting virulence-related features of Klebsiella pneumoniae based on standardized dried droplet images, comprising the following steps: S1, Obtain a bacterial suspension of the Klebsiella pneumoniae isolate to be tested, dry the bacterial suspension of the Klebsiella pneumoniae isolate to be tested and acquire an image to obtain an image of the dried droplets; S2, preprocess the image of the dried droplets to obtain the input image; S3, input the input image into a pre-trained image feature extraction model to obtain image embedding features; S4, the image embedding features are input into a pre-trained prediction model to obtain the virulence-related feature prediction results of the Klebsiella pneumoniae isolate to be tested.

[0007] In one embodiment, step S1, the preparation step of the dried droplet image includes: The Klebsiella pneumoniae isolates to be tested were prepared into standardized bacterial suspensions; A predetermined volume of the standardized bacterial suspension is dropped onto the substrate surface and dried under fixed environmental conditions to form a dried droplet deposition pattern. The image of the dried droplet deposition pattern is acquired to obtain the image of the dried droplet; The fixed environmental conditions are provided by a constant humidity drying device, and the fixed environmental conditions include one or more of the following: fixed ambient temperature, relative humidity, air flow state, and drying time; and / or, The virulence-related characteristics include at least one of the following: virulence gene presence status, capsule type, high virulence risk classification, phagocytic resistance-related phenotype, cell damage-related phenotype, and inflammatory response-related phenotype.

[0008] In one embodiment, the preprocessing in step S2 includes at least one of image cropping and scale normalization.

[0009] In one embodiment, the network architecture of the image feature extraction model includes at least one of a convolutional neural network or a visual Transformer; and / or, The image feature extraction model employs at least one of the self-supervised learning and transfer learning paradigms.

[0010] In one embodiment, the prediction model includes: A multi-label classification model for predicting the presence status of virulence genes, wherein the virulence genes include at least one of rmpA, rmpA2, iucA, iroB, and peg-344; and / or, A multi-class classification model for predicting capsular morphology, wherein the capsular morphology includes at least one of K1, K2, K64, and other classes; and / or, Regression models are used to predict phagocytic resistance-related phenotypes, which include the number of viable bacteria after a phagocytic experiment, the logarithm of the number of viable bacteria, the relative survival rate, or high- and low-risk classifications based on the results of the phagocytic experiment.

[0011] In one embodiment, the method for predicting virulence-related features of Klebsiella pneumoniae based on standardized dried droplet images further includes multi-image aggregation, the multi-image aggregation step comprising: Multiple images of dried droplets of the same Klebsiella pneumoniae isolate were acquired, and image-level prediction results were obtained for each. The image-level prediction results are aggregated into strain-level prediction results for the Klebsiella pneumoniae isolate to be tested using the mean, weighted mean, median, voting, or multi-instance learning methods.

[0012] In one embodiment, the training process of the prediction model includes the following steps: Obtain a set of dried droplet images of Klebsiella pneumoniae labeled with known virulence-related features; The image set is divided into a training set, a validation set, and a test set using a strain-level data partitioning method, so that all images of the same isolate belong to the same set. The prediction model is trained based on the training set, and its performance is evaluated based on the validation set and test set. The virulence-related feature labels include virulence gene detection results, capsule type detection results, phagocytosis experiment results, cell damage experiment results, inflammatory factor detection results, and / or animal infection experiment results.

[0013] This invention provides a prediction system for the method described above for predicting virulence-related features of Klebsiella pneumoniae based on standardized dried droplet images, comprising: The image acquisition module is used to acquire images of dried droplets formed after the Klebsiella pneumoniae suspension to be tested has dried; The preprocessing module is used to preprocess the dried droplet image to obtain the input image; The image feature extraction module is used to input the input image into a pre-trained image feature extraction model to obtain image embedding features; wherein, the backbone network weights of the image feature extraction model are kept frozen during the inference phase; The task prediction module is used to embed the image into a pre-trained prediction model to obtain the virulence-related feature prediction results of the Klebsiella pneumoniae isolate to be tested. The multi-image aggregation module is used to aggregate the prediction results output by the task prediction module for each dried droplet image when the image acquisition module acquires multiple dried droplet images from the same Klebsiella pneumoniae isolate to be tested, so as to obtain the final virulence-related feature prediction result of the Klebsiella pneumoniae isolate to be tested.

[0014] The present invention provides an apparatus comprising: a memory, a processor, and a program for predicting virulence-related features of Klebsiella pneumoniae based on standardized dried droplet images, the program being stored in the memory and executable on the processor, the program being configured to implement the steps of the method for predicting virulence-related features of Klebsiella pneumoniae based on standardized dried droplet images as described above.

[0015] The present invention provides a storage medium storing a computer program, which, when executed by a processor, implements the method described above for predicting virulence-related features of Klebsiella pneumoniae based on standardized dried droplet images.

[0016] The present invention provides a method for predicting virulence-related features of Klebsiella pneumoniae based on dried droplet images. By extracting multidimensional image phenotypic features of dried droplet deposition patterns and combining them with a prediction model, the method eliminates the dependence of traditional detection methods on expensive molecular biology reagents and complex cell and animal experiments, greatly reduces the cost of a single detection, shortens the detection cycle, and achieves rapid, low-cost, and automated prediction of virulence-related features of Klebsiella pneumoniae. Attached Figure Description

[0017] Figure 1 This is a flowchart of Embodiment 1 of the present invention. Detailed Implementation

[0018] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below. Where specific conditions are not specified in the embodiments, conventional conditions or conditions recommended by the manufacturer shall apply. Where the manufacturers of reagents or instruments are not specified, they are all conventional products that can be purchased commercially. Furthermore, the meaning of "and / or" throughout the text includes three parallel solutions; for example, "A and / or B" includes solution A, or solution B, or a solution where both A and B are satisfied simultaneously. In addition, the technical solutions of the various embodiments can be combined with each other, but this must be based on the ability of those skilled in the art to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be considered that such a combination of technical solutions does not exist and is not within the scope of protection claimed by the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0019] During the drying process of bacteria in droplets, factors such as bacterial surface structure, extracellular polysaccharides, capsule material, mucilage, bacterial aggregation state, droplet edge flow, and deposition processes influence the formation of characteristic dried droplet deposition patterns. These patterns can be acquired using ordinary image acquisition equipment and contain multidimensional information such as morphology, texture, grayscale, boundary, and spatial distribution. However, current technologies have not fully utilized the phenotypic information in images of dried Klebsiella pneumoniae droplets to predict its virulence genes, capsule type, and host cell interaction-related phenotypes.

[0020] Therefore, it is necessary to establish a standardized method for the preparation, imaging, and artificial intelligence analysis of dried droplets to achieve low-cost, rapid, and repeatable prediction of virulence-related characteristics of Klebsiella pneumoniae.

[0021] In view of this, the present invention provides a method for predicting virulence-related features of Klebsiella pneumoniae based on standardized dried droplet images, comprising the following steps: S1, Obtain a bacterial suspension of the Klebsiella pneumoniae isolate to be tested, dry the bacterial suspension of the Klebsiella pneumoniae isolate to be tested and acquire an image to obtain an image of the dried droplets; S2, preprocess the image of the dried droplets to obtain the input image; S3, input the input image into a pre-trained image feature extraction model to obtain image embedding features; S4, the image embedding features are input into a pre-trained prediction model to obtain the virulence-related feature prediction results of the Klebsiella pneumoniae isolate to be tested.

[0022] This invention provides a method for predicting virulence-related features of Klebsiella pneumoniae based on dried droplet images. By extracting multidimensional image phenotypic features of dried droplet deposition patterns and combining them with a prediction model, this method eliminates the reliance on expensive molecular biology reagents and complex cell and animal experiments required by traditional detection methods. It significantly reduces the cost of a single detection, shortens the detection cycle, and achieves rapid, low-cost, and automated prediction of virulence-related features of Klebsiella pneumoniae.

[0023] In the technical solution of the present invention, in step S1, the preparation step of the dried droplet image includes: preparing the Klebsiella pneumoniae isolate to be tested into a standardized bacterial suspension; A predetermined volume of the standardized bacterial suspension is dropped onto the substrate surface and dried under fixed environmental conditions to form a dried droplet deposition pattern. The image of the dried droplet deposition pattern is acquired to obtain the image of the dried droplet; The fixed environmental conditions are provided by a constant humidity drying device, and the fixed environmental conditions include one or more of the following: fixed ambient temperature, relative humidity, air flow state, and drying time; and / or, The virulence-related characteristics include at least one of the following: virulence gene presence status, capsule type, high virulence risk classification, phagocytic resistance-related phenotype, cell damage-related phenotype, and inflammatory response-related phenotype.

[0024] This invention eliminates the random interference of environmental temperature and humidity fluctuations on the droplet evaporation and deposition process by defining standardized bacterial suspension preparation and fixed environmental drying conditions. This ensures that the formed dried droplet pattern can realistically and stably reflect the physicochemical properties of the bacteria themselves, thereby improving the accuracy of subsequent algorithm feature extraction and the stability of the prediction model from the source.

[0025] It should be noted that the standardization process generally focuses on the culture medium, culture conditions, drop volume, drying and imaging conditions, rather than the bacterial cell concentration.

[0026] In the technical solution of the present invention, the preprocessing in step S2 includes at least one of image cropping and scale normalization.

[0027] This invention performs preprocessing operations such as image cropping, background correction, and normalization on dried droplet images, thereby reducing differences in input size and channel scale under uniform imaging conditions.

[0028] In the technical solution of this invention, the network architecture of the image feature extraction model includes at least one of a convolutional neural network or a visual Transformer; and / or, The image feature extraction model employs at least one of the self-supervised learning and transfer learning paradigms.

[0029] This invention employs a self-supervised visual model, convolutional neural network, or visual Transformer model as the feature extraction model, which can capture high-order global and local spatial semantics that surpass traditional manual features and uncover subtle phenotypic texture features that are indistinguishable to the human eye.

[0030] Furthermore, this invention employs a visual Transformer model with frozen parameters, leveraging the powerful generalization ability of a large-scale pre-trained model to directly extract general image features. This avoids the overfitting problem caused by training the model from scratch on small sample data of clinical strains, and significantly improves the model's generalization prediction ability for unknown new strains.

[0031] In the technical solution of the present invention, the prediction model includes: A multi-label classification model for predicting the presence status of virulence genes, wherein the virulence genes include at least one of rmpA, rmpA2, iucA, iroB, and peg-344.

[0032] A multi-class model for predicting capsule types, wherein the capsule types include at least one of K1, K2, K64 and other classes, and a regression model for predicting phagocytic resistance-related phenotypes, wherein the phagocytic resistance-related phenotypes include the number of viable bacteria after phagocytosis, the logarithmic value of the number of viable bacteria, the relative survival rate, or the high- and low-risk classifications based on the results of phagocytosis experiments.

[0033] Furthermore, by predicting virulence genes using a multi-label classification model, the complexity of multiple virulence genes (such as rmpA, iucA, etc.) often coexisting or being expressed in parallel in clinical strains is overcome, and accurate parallel identification of the carrying status of multiple genes is achieved.

[0034] Furthermore, predicting capsular types using a multi-classification model aligns with the biological characteristics of mutually exclusive and polymorphic serological typing, significantly improving the specificity and accuracy of identifying common highly virulent typing types (such as K1, K2, K64, and others).

[0035] Furthermore, by predicting phagocytic resistance-related phenotypes using regression models, the limitations of traditional binary classification models in diagnosis are overcome, enabling quantitative prediction and precise risk stratification of the intensity of host-pathogen interactions (such as continuous biological indicators like logarithmic viable cell count and relative survival rate). The targeted combination of these models achieves comprehensive, multi-granular precision diagnosis, with output formats perfectly aligned with the real-world testing needs of clinical biology.

[0036] In the technical solution of the present invention, the method for predicting the virulence-related features of Klebsiella pneumoniae based on standardized dried droplet images further includes multi-image aggregation, the steps of which include: Multiple images of dried droplets of the same Klebsiella pneumoniae isolate were acquired, and image-level prediction results were obtained for each. The image-level prediction results are aggregated into strain-level prediction results for the Klebsiella pneumoniae isolate to be tested using the mean, weighted mean, median, voting, or multi-instance learning methods.

[0037] This invention aggregates the prediction results of multiple images of the same isolate into a strain-level prediction result by using methods such as mean, voting, or multi-instance learning. This overcomes the random errors caused by minor imperfections in single coating or local drying, and significantly improves the accuracy and confidence of the final diagnostic results.

[0038] In the technical solution of the present invention, the training process of the prediction model includes the following steps: Obtain a set of dried droplet images of Klebsiella pneumoniae labeled with known virulence-related features; The image set is divided into a training set, a validation set, and a test set using a strain-level data partitioning method, so that all images of the same isolate belong to the same set. The prediction model is trained based on the training set, and its performance is evaluated based on the validation set and test set. The virulence-related feature labels include virulence gene detection results, capsule type detection results, phagocytosis experiment results, cell damage experiment results, inflammatory factor detection results, and / or animal infection experiment results.

[0039] This invention employs a strain-level data partitioning method when training the prediction model, ensuring that all images of the same isolate belong to the same dataset. This mechanism eliminates data leakage during the evaluation phase and guarantees the rigor of the model's diagnostic evaluation indicators.

[0040] This invention provides a prediction system for the method described above for predicting virulence-related features of Klebsiella pneumoniae based on standardized dried droplet images, comprising: The image acquisition module is used to acquire images of dried droplets formed after the Klebsiella pneumoniae suspension to be tested has dried; The preprocessing module is used to preprocess the dried droplet image to obtain the input image; The image feature extraction module is used to input the input image into a pre-trained image feature extraction model to obtain image embedding features; wherein, the backbone network weights of the image feature extraction model are kept frozen during the inference phase; The task prediction module is used to embed the image into a pre-trained prediction model to obtain the virulence-related feature prediction results of the Klebsiella pneumoniae isolate to be tested. The multi-image aggregation module is used to aggregate the prediction results output by the task prediction module for each dried droplet image when the image acquisition module acquires multiple dried droplet images from the same Klebsiella pneumoniae isolate to be tested, so as to obtain the final virulence-related feature prediction result of the Klebsiella pneumoniae isolate to be tested.

[0041] The present invention provides an apparatus comprising: a memory, a processor, and a program for predicting virulence-related features of Klebsiella pneumoniae based on standardized dried droplet images, the program being stored in the memory and executable on the processor, the program being configured to implement the steps of the method for predicting virulence-related features of Klebsiella pneumoniae based on standardized dried droplet images as described above.

[0042] The present invention provides a storage medium storing a computer program, which, when executed by a processor, implements the method described above for predicting virulence-related features of Klebsiella pneumoniae based on standardized dried droplet images.

[0043] In summary, 1. This invention does not rely on sequencing, polymerase chain reaction or animal experiments as a point-of-care detection method, but instead utilizes dried droplet images to achieve rapid pre-screening of virulence-related characteristics of Klebsiella pneumoniae, reducing detection costs and operational complexity.

[0044] 2. This invention improves the repeatability of dried droplet images and reduces the interference of environmental factors on droplet deposition patterns by fixing the glass slide, temperature and humidity, drying time and imaging conditions.

[0045] 3. This invention transforms the morphology, texture, transparency, edge and spatial distribution information in dried droplet images into image embedding features, which can be used simultaneously for the prediction of virulence genes, capsule type and phagocytic resistance-related phenotypes.

[0046] 4. This invention employs a strain-level data partitioning and multi-image aggregation strategy to avoid information leakage of images of the same strain during training and evaluation, and to improve the stability of strain-level prediction.

[0047] The technical solution of the present invention will be further described in detail below with reference to specific embodiments. It should be understood that the following embodiments are only used to explain the present invention and are not intended to limit the present invention.

[0048] Example 1 This embodiment provides a method for acquiring images of dried droplets based on standardized sample preparation, including the following steps: Step 1: Select identified clinical isolates of Klebsiella pneumoniae. For each isolate, select three independent single colonies for culture. Each single colony is inoculated into a uniformly formulated low-salt Lennox LB liquid medium and cultured overnight (approximately 16-18 hours) at 37°C and 200 rpm. The cultured bacterial solution is used directly for subsequent preparation of dried droplets without washing, buffer replacement, or normalization of bacterial concentration. This preserves the bacterial cells, soluble components of the culture medium, and extracellular substances produced by the bacteria, ensuring that the dried droplet deposition pattern simultaneously includes bacterial morphology, extracellular substances, and information about culture medium crystallization.

[0049] Take 10 μL of the cultured bacterial solution as a drop (e.g. Figure 1 (As shown in Figure b) is applied to the surface of a clean glass slide. The slide is placed in a sealed drying device and dried at 25°C for 20 hours. The sealed drying device contains a saturated potassium carbonate solution to maintain a relative humidity of approximately 43%, and a temperature and humidity monitoring device is installed to monitor and record the drying environment in real time.

[0050] After drying, images of the resulting dried droplet deposition pattern were acquired. In this embodiment, a digital camera (Sony A7M5 / A7V) with a Sony FE 100 mm F2.8 Macro GM OSS lens (focal length 100 mm) was used for top-down imaging under uniform camera, sample, and lighting conditions. A uniform automatic exposure setting was used for image acquisition; no manual exposure optimization was performed for individual droplets. Approximately 100 images of dried droplets were generated from three independent single colonies cultured for each strain.

[0051] By standardizing the culture medium composition, drop volume, slide substrate, ambient humidity, drying time, imaging position, and lighting conditions, the dried droplet images obtained from different strains were made comparable. Specifically, the procedure for obtaining the acquired dried droplet images is as follows: Example 1 Figure 1 As shown in Figure a.

[0052] Example 2 This embodiment provides a method for predicting virulence-related features of Klebsiella pneumoniae based on standardized dried droplet images, specifically including the following steps: Step 1: Image Preprocessing First, each original image of the dried droplet acquired in Example 1 is preprocessed for standardization. Specifically, the image is adjusted to 336×336 pixels using bicubic interpolation and normalized according to the RGB channel statistics of the ImageNet dataset. The processed image is used as the input to the DINOv2 ViT-g / 14 image feature extraction model for freezing parameters to obtain a standardized input image.

[0053] Step 2: Image Embedding Feature Extraction The standardized input image obtained in step one is input into a pre-trained image feature extraction model. This embodiment uses the DINOv2 ViT-g / 14 self-supervised visual Transformer model, which has been pre-trained on a large-scale unlabeled image dataset. All model parameters are frozen during the feature extraction stage, and no parameter updates are performed. The global CLS features (1536 dimensions) output from the final layer of the model and the average value (1536 dimensions) of all image patch features are extracted separately. These two are then concatenated to obtain a 3072-dimensional image embedding vector corresponding to each dried droplet image.

[0054] Step 3: Training and Validation of the Prediction Model An internal dataset containing 125 clinical isolates of Klebsiella pneumoniae was established, each with genomic detection results matched to dried droplet images. For 90 isolates that also showed macrophage phagocytosis results, a phagocytic resistance phenotype prediction dataset was further developed. In addition, five Klebsiella pneumoniae isolates from another medical institution were used as independent external test samples, not participating in internal model training and cross-validation, to evaluate the model's generalization ability.

[0055] The presence status of virulence-related genes in each strain was determined based on whole-genome sequencing results. In this embodiment, the virulence-related genes detected included rmpA, rmpA2, iucA, iroB, and peg-344, and their presence or absence was used as a binary classification label.

[0056] Based on genomic analysis, the capsule K-type information of the strains was obtained, and the internal dataset was divided into four categories: K1, K64, K2, and other K-types.

[0057] For 90 strains with phagocytosis test results, the arithmetic mean of the intracellular viable bacterial recovery obtained from three independent biological replicates was used as the phagocytosis test label for the corresponding strains, and it was transformed by log10 to establish a continuous phagocytosis resistance prediction model.

[0058] To avoid data leakage caused by multiple highly correlated images generated by the same strain being included in both the training and validation sets simultaneously, strains, rather than individual images, were used as the data partitioning unit. Internal strains were divided into five mutually exclusive subsets, and all images generated by the same strain were always assigned to the same subset. A five-fold strain-level cross-validation method was used for model training and performance evaluation.

[0059] The pre-trained prediction model is a task-specific multilayer perceptron (MLP) prediction head trained on internally tagged strains, while the frozen DINOv2 is only responsible for feature extraction. The final model feeds the 3072-dimensional image embedded features sequentially into LayerNorm, a 512-node fully connected layer, GELU, and Dropout 0.3, before entering the task output layer.

[0060] The model performance evaluation results are as follows: (1) Prediction task of virulence-related gene presence status: The AUROC of the five genes rmpA, rmpA2, iucA, iroB and peg-344 were 0.945, 0.869, 0.871, 0.920 and 0.943, respectively; (2) Capsular K-type prediction task: top-1 accuracy was 0.752; (3) Macrophage phagocytic resistance prediction task: Spearman ρ=0.617, above-median AUROC=0.812.

[0061] Through the above training and validation, a predictive model that can be used to predict toxicity-related features was obtained.

[0062] Step 4: Prediction of virulence-related features The image embedding features obtained in step two are input into the prediction model trained in step three, which can be used to predict virulence-related features, to obtain the virulence-related feature prediction results of the Klebsiella pneumoniae isolate to be tested. The virulence-related features include at least one of the following: the presence status of virulence-related genes, capsular K-type, and macrophage phagocytic resistance.

[0063] The strain-level output is the arithmetic mean of the prediction results for all images of the same strain.

[0064] Using the above method, image embedding features that are associated with virulence-related characteristics can be extracted from standardized dried droplet images of Klebsiella pneumoniae, and based on this, the presence status of virulence-related genes, capsular K type, and macrophage phagocytic resistance can be predicted.

[0065] Example 3 This embodiment provides a model for predicting Klebsiella pneumoniae, including the following steps: Using the dried droplet images obtained by the standardization method described in Example 1 as input, and employing the fully connected classifier described in Example 2 as the prediction model, after image preprocessing and feature extraction as described in Example 2, the model performance was evaluated using five-fold strain-level cross-validation. The strain-level AUROC values ​​for virulence-related genes rmpA, rmpA2, iucA, iroB, and peg-344 were 0.945, 0.869, 0.871, 0.920, and 0.943, respectively. Among these, rmpA, iroB, and peg-344 exhibited high predictive discrimination ability. Of the 125 strains, all five genes were correctly predicted in 77 strains, and at least four genes were correctly predicted in 111 strains.

[0066] For the four-class classification task of capsule K-type, the strain-level top-1 accuracy was 0.752, with K1 and K64 achieving AUROCs of 0.925 and 0.913 for the remaining classes, respectively, indicating that the dried droplet images contain machine-recognizable information related to different capsule backgrounds.

[0067] Example 4 This embodiment provides a method for predicting Klebsiella pneumoniae macrophage phagocytic resistance based on dried droplet images, including the following steps: Step 1: Establish a phagocytic assay using RAW264.7 mouse macrophage-like cells. Cells were cultured in high-glucose DMEM medium supplemented with 10% fetal bovine serum and 1% penicillin-streptomycin, and cultured at 37°C and 5% CO2.

[0068] During the experiment, RAW264.7 cells were spaced at 6 × 10⁶ cells per well. 5 Cells were seeded in 6-well plates and cultured overnight until approximately 70%–80% confluence. Antibiotics were removed before infection, and the cells were treated with antibiotic-free medium. Klebsiella pneumoniae in the logarithmic growth phase were washed with PBS and simultaneously infected by centrifugation at 500×g for 30 min after multiplication of infection (MOI) = 100. The cells were then incubated at 37°C and 5% CO2 for 90 min. After infection, the cells were washed once with PBS and treated with complete medium containing 1% penicillin-streptomycin for 30 min to reduce extracellular bacteria. The cells were washed three more times and lysed on ice with 1% Triton X-100 to obtain the number of viable intracellular bacteria (CFU / mL).

[0069] Each strain was subjected to three independent biological replicates, and the arithmetic mean of the number of viable bacteria recovered from the three measurements was used as the phagocytic assay label for that strain. Since this experiment measures the number of intracellular viable bacteria recovered after phagocytosis, under the experimental conditions of this embodiment, a lower number of recovered viable bacteria indicates fewer bacteria entering the macrophages, corresponding to stronger phagocytic resistance.

[0070] Step 2: A model was established using 90 strains of Klebsiella pneumoniae that simultaneously presented images of dried droplets and phagocytosis experiments. (The last sentence appears to be incomplete and possibly refers to a different topic.) 10 (CFU / mL) was used as the continuous prediction target, and the target value was standardized using the mean and standard deviation of the training fold.

[0071] Based on the 3072-dimensional image embedding features extracted by the DINOv2 ViT-g / 14 model described in Example 2, a single-output regression model is established. This regression model shares a backbone network with other prediction tasks. This backbone network sequentially includes a LayerNorm layer, a 512-node fully connected layer, a GELU activation function, and a Dropout 0.3 regularization layer. The output layer of the regression task is a single linear neuron, using mean squared error (MSE) as the loss function. Model training and validation employ strain-level five-fold cross-validation (using strains as the dividing unit, all images generated by the same strain are always grouped into the same fold). During inference, the model's predicted values ​​in the standardized space are inversely transformed using the mean and standard deviation corresponding to each training fold to restore the original scale to log10 (CFU / mL). The strain-level predicted value is obtained by the arithmetic mean of the prediction results for all images of the same strain.

[0072] Step 3: In the overall cohort of 90 bacterial strains, the image prediction value and the logarithmic value obtained from the actual phagocytosis experiment are compared. 10 The Spearman correlation coefficient between (CFU / mL) was 0.617 (p<0.001); when the high and low groups were divided by the median of the actual phagocytic results of the cohort, the AUROC of the prediction model was 0.812. These results indicate that standardized dried droplet images contain predictable information related to Klebsiella pneumoniae phagocytic resistance.

[0073] Step 4: Further analysis was conducted on strains with the same major capsule K type. Within strains K1 and K2, the predicted values ​​and actual phagocytosis results were still positively correlated with Spearman correlation coefficients of 0.41 and 0.62, respectively. Within strain K2, the AUROC, divided by the median, was 0.83.

[0074] Further analysis of strains with the same five-gene combination showed that the Spearman correlation coefficient was still 0.54 in strains that were negative for all five target virulence genes.

[0075] This indicates that the information contained in the dried droplet images is not only determined by the combination of the major capsule K type or the five virulence-related genes, but also reflects functional differences related to host cell interactions.

[0076] Comparative Example 1 To evaluate the impact of changes in sample preparation conditions on the image features of dried droplets and the stability of model predictions, eight strains of Klebsiella pneumoniae were selected, and dried droplets were prepared under standard conditions and under conditions with varying NaCl concentrations in the culture medium.

[0077] The standard conditions were BD Difco™ LB Broth, Lennox (low-salt formulation), and the 2×NaCl conditions used the corresponding standard formulation LB (Miller formulation) from the same manufacturer, with NaCl at 10 g / L. The comparative examples used the corresponding culture medium from the same manufacturer, with the NaCl concentration being twice that of the standard conditions. Except for the NaCl concentration in the culture medium, the droplet volume, substrate, drying time, ambient humidity, and imaging conditions were kept consistent.

[0078] A virulence-related gene prediction model trained solely on standard condition samples was used to predict the dried droplet images produced by the eight bacterial strains under two culture conditions. Comparative samples were not used in model training.

[0079] The results showed that increasing the NaCl concentration in the culture medium significantly altered the droplet deposition morphology and revealed more pronounced salt crystallization characteristics. The image embedding features of all eight strains exhibited shifts exceeding the normal fluctuation range under standard conditions, with an average feature shift ratio of 2.17. For the 40 strain-gene predictions generated from five virulence-related genes, only 24 predictions remained consistent between the two culture conditions; the model's average prediction accuracy decreased from 0.73 under standard conditions to 0.57 under conditions with 2x NaCl.

[0080] The above are merely preferred embodiments of the present invention and do not limit the patent scope of the present invention. Various modifications and variations can be made to the present invention by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the patent protection scope of the present invention.

Claims

1. A method for predicting Klebsiella pneumoniae virulence-related characteristics based on standardized dry droplet images, characterized by, Includes the following steps: S1, Obtain a bacterial suspension of the Klebsiella pneumoniae isolate to be tested, dry the bacterial suspension of the Klebsiella pneumoniae isolate to be tested and acquire an image to obtain an image of the dried droplets; S2, preprocess the image of the dried droplets to obtain the input image; S3, input the input image into a pre-trained image feature extraction model to obtain image embedding features; S4, the image embedding features are input into a pre-trained prediction model to obtain the virulence-related feature prediction results of the Klebsiella pneumoniae isolate to be tested.

2. The method for predicting virulence-related features of Klebsiella pneumoniae based on standardized dried droplet images as described in claim 1, characterized in that, In step S1, the preparation step of the dried droplet image includes: The Klebsiella pneumoniae isolates to be tested were prepared into standardized bacterial suspensions; A predetermined volume of the standardized bacterial suspension is dropped onto the substrate surface and dried under fixed environmental conditions to form a dried droplet deposition pattern. The image of the dried droplet deposition pattern is acquired to obtain the image of the dried droplet; The fixed environmental conditions are provided by a constant humidity drying device, and the fixed environmental conditions include one or more of the following: fixed ambient temperature, relative humidity, air flow state, and drying time; and / or, The virulence-related characteristics include at least one of the following: virulence gene presence status, capsule type, high virulence risk classification, phagocytic resistance-related phenotype, cell damage-related phenotype, and inflammatory response-related phenotype.

3. The method for predicting virulence-related features of Klebsiella pneumoniae based on standardized dried droplet images as described in claim 1, characterized in that, The preprocessing in step S2 includes at least one of image cropping and scale normalization.

4. The method for predicting virulence-related features of Klebsiella pneumoniae based on standardized dried droplet images as described in claim 1, characterized in that, The network architecture of the image feature extraction model includes at least one of a convolutional neural network or a visual Transformer; and / or, The image feature extraction model employs at least one of the self-supervised learning and transfer learning paradigms.

5. The method for predicting Klebsiella pneumoniae virulence-related characteristics based on standardized dry droplet images according to claim 1, wherein, The prediction model includes: A multi-label classification model for predicting the presence status of virulence genes, wherein the virulence genes include at least one of rmpA, rmpA2, iucA, iroB, and peg-344; and / or, A multi-class classification model for predicting capsular morphology, wherein the capsular morphology includes at least one of K1, K2, K64, and other classes; and / or, Regression models are used to predict phagocytic resistance-related phenotypes, which include the number of viable bacteria after a phagocytic experiment, the logarithm of the number of viable bacteria, the relative survival rate, or high- and low-risk classifications based on the results of the phagocytic experiment.

6. The method for predicting virulence-related features of Klebsiella pneumoniae based on standardized dried droplet images as described in claim 5, characterized in that, The method for predicting virulence-related features of Klebsiella pneumoniae based on standardized dried droplet images further includes multi-image aggregation, the steps of which include: Multiple images of dried droplets of the same Klebsiella pneumoniae isolate were acquired, and image-level prediction results were obtained for each. The image-level prediction results are aggregated into strain-level prediction results for the Klebsiella pneumoniae isolate to be tested using the mean, weighted mean, median, voting, or multi-instance learning methods.

7. The method for predicting virulence-related features of Klebsiella pneumoniae based on standardized dried droplet images as described in claim 1, characterized in that, The training process of the prediction model includes the following steps: Obtain a set of dried droplet images of Klebsiella pneumoniae labeled with known virulence-related features; The image set is divided into a training set, a validation set, and a test set using a strain-level data partitioning method, so that all images of the same isolate belong to the same set. The prediction model is trained based on the training set, and its performance is evaluated based on the validation set and test set. The virulence-related feature labels include virulence gene detection results, capsule type detection results, phagocytosis experiment results, cell damage experiment results, inflammatory factor detection results, and / or animal infection experiment results.

8. A prediction system based on the Klebsiella pneumoniae virulence-related feature prediction method based on a standardized dry droplet image according to any one of claims 1 to 7, characterized by, include: The image acquisition module is used to acquire images of dried droplets formed after the Klebsiella pneumoniae suspension to be tested has dried; The preprocessing module is used to preprocess the dried droplet image to obtain the input image; The image feature extraction module is used to input the input image into a pre-trained image feature extraction model to obtain image embedding features; wherein, the backbone network weights of the image feature extraction model are kept frozen during the inference phase; The task prediction module is used to embed the image into a pre-trained prediction model to obtain the virulence-related feature prediction results of the Klebsiella pneumoniae isolate to be tested. The multi-image aggregation module is used to aggregate the prediction results output by the task prediction module for each dried droplet image when the image acquisition module acquires multiple dried droplet images from the same Klebsiella pneumoniae isolate to be tested, so as to obtain the final virulence-related feature prediction result of the Klebsiella pneumoniae isolate to be tested.

9. An apparatus, comprising: The device includes: a memory, a processor, and a program for predicting the virulence-related features of Klebsiella pneumoniae based on standardized dried droplet images, stored in the memory and executable on the processor. The program for predicting the virulence-related features of Klebsiella pneumoniae based on standardized dried droplet images is configured to implement the steps of the method for predicting the virulence-related features of Klebsiella pneumoniae based on standardized dried droplet images as described in any one of claims 1 to 7.

10. A storage medium storing a computer program, characterized by When the computer program is executed by the processor, it implements the method for predicting virulence-related features of Klebsiella pneumoniae based on standardized dried droplet images as described in any one of claims 1-7.