A computer implemented method for identifying a microorganism in a blood and a data processing system therefor

The method leverages deep learning models for automated segmentation and classification of microorganisms in blood smears, addressing inefficiencies in current methods by enabling rapid and accurate identification without specialized equipment, crucial for conditions like sepsis.

WO2026109165A1PCT designated stage Publication Date: 2026-05-28JAGIELLONIAN UNIVERSITY
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
JAGIELLONIAN UNIVERSITY
Filing Date
2025-06-26
Publication Date
2026-05-28

AI Technical Summary

Technical Problem

Current methods for identifying microorganisms in blood samples, particularly in clinical settings, are inefficient and require time-consuming cultures or specialized molecular techniques, limiting their applicability and accuracy, especially in critical conditions like sepsis.

Method used

A computer-implemented method using deep learning models for automated segmentation and classification of microorganisms in blood smears, employing a deep learning cellular segmentation model, deep neural network encoding, and pooling methods to identify microorganisms at the species level without specialized equipment.

Benefits of technology

Enables rapid and accurate identification of microorganisms directly from microscopic images, reducing reliance on manual processes and specialized equipment, facilitating timely therapeutic interventions in conditions like sepsis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure EP2025068058_28052026_PF_FP_ABST
    Figure EP2025068058_28052026_PF_FP_ABST
Patent Text Reader

Abstract

The present invention pertains to the computer implemented method for identifying a microorganism in a blood comprising: receiving (101) a microscopic image of a blood smear; detecting (102) plurality of microorganism cells in the microscopic image using a deep learning cellular segmentation model; extracting (103) from the segmented microscopic image a patch of size HxW centred around a centroid of the detected microorganism cell for each detected microorganism cell; encoding (104) of each patch by a deep neural network encoding model into a patch representation vector u n of size 1×D; aggregating (105) the patch representation vectors un using a pooling method to generate a sample representation vector u of size 1×D; and indicating (106) a species of microorganism present in the microscopic image by classifying the sample representation vector u by a neural network classifier to class representing specific species. In another aspect the invention relates to the data processing system for carrying out the steps of the method according to the invention.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] A COMPUTER IMPLEMENTED METHOD FOR IDENTIFYING A MICROORGANISM

[0002] IN A BLOOD AND A DATA PROCESSING SYSTEM THEREFOR

[0003] TECHNICAL FIELD

[0004] The present invention pertains to the methods for identifying a microorganism in a blood, especially in a microscopic image of a blood smear. The invention relates in particular to methods suitable for diagnosing sepsis.

[0005] BACKGROUND

[0006] In recent years, the field of diagnostics has witnessed a significant shift towards automation and the integration of machine learning algorithms. Artificial intelligence (Al) techniques have been effectively utilized in the analysis of diagnostic results across various medical disciplines, including pathology, cardiology, and oncology. Despite these advancements, the application of Al in microbiological diagnostics remains underexplored.

[0007] Existing solutions in this domain have demonstrated limited functionality and insufficient classification accuracy, rendering them impractical for routine use. Notably, there is a lack of automated systems capable of classifying bacteria and fungi observed in blood smears.

[0008] The rapid identification of microorganisms in blood samples is of paramount importance, particularly in critical clinical scenarios such as sepsis. Accurate identification of the causative agent is essential for the timely and appropriate selection of therapeutic interventions, thereby enhancing patient outcomes. Current rapid identification techniques predominantly rely on molecular methods, which, although effective, are not universally accessible.

[0009] The publication by Peri, Anna Maria, et al., titled "New microbiological techniques for the diagnosis of bacterial infections and sepsis in ICU including point of care" (Current Infectious Disease Reports 23.8, 2021 : 12), discusses advanced sepsis diagnostic methods aimed at pathogen identification. These methods employ molecular techniques such as Multiplex PCR, DNA microarrays, in situ hybridization, and next-generation sequencing (NGS) to swiftly identify pathogens without the need for culturing. While these approaches expedite the diagnostic process, they necessitate specialized laboratory equipment and skilled personnel, which are not commonly available and incur additional costs. In contrast, the study by Nakasi, Rose, et al., "A new approach for microscopic diagnosis of malaria parasites in thick blood smears using pre-trained deep learning models" (SN Applied Sciences 2, 2020: 1 -7), evaluates the performance of three pretrained deep neural network architectures — faster regional convolutional neural network (faster R-CNN), single-shot multi-box detector (SSD), and RetinaNet — on thick blood smear images using the Tensorflow API. Data augmentation techniques were employed to enhance the performance of these models. The findings indicated that the faster R-CNN model achieved an average precision exceeding 0.94, making it the most accurate for malaria detection, while the SSD model was optimal for mobile device deployment. However, this study did not explore the applicability of these models to other microorganisms or the identification of diverse microbial species.

[0010] Patent application W02019104003A1 discloses a system for the automatic interpretation and classification of images of Gram-stained biological samples. Nonetheless, this solution requires manual selection of image regions containing microorganisms and is not designed for use with blood smear microscopy.

[0011] The article by Ma, Pingli, et al., "A state-of-the-art survey of object detection techniques in microorganism image analysis: from classical methods to deep learning approaches" (Artificial Intelligence Review 56.2, 2023: 1627-1698), provides an overview of image analysis techniques for microorganism identification, ranging from classical to deep learning methods. It discusses the use of convolutional neural networks (CNNs) with aggregation modules and multi-layer perceptrons (MLPs) for image analysis. However, the methods described do not address the identification of multiple microorganism species in blood samples.

[0012] US2018 / 0211380A1 discloses a portable, integrated microscopic device comprising a CMOS camera and an actuator system configured to automatically scan a specimen. The acquired images are processed using convolutional neural networks (CNNs) after segmentation into so-called cellular artefacts. Each artefact is subsequently classified by a CNN / random forest (RF) classifier into one of two principal categories: (i) host cells (e.g., erythrocytes, leukocytes) and (ii) "parasites infecting the host." The latter category explicitly includes bacteria, fungi, protozoa, helminths, and viruses.

[0013] In US2018 / 0211380A1 , bacteria and fungi are treated only as high-level parasite labels, intended to distinguish pathogenic organisms from host cells. These organisms are not the primary focus of identification and are not analysed from a clinical diagnostic perspective. Specifically, no differentiation is made between Grampositive and Gram-negative bacteria, nor between bacterial or fungal genera or species. The disclosed solution is primarily directed to screening-level parasite detection and general blood cell counting, rather than detailed bacteriological or mycological diagnostics applicable in clinical contexts. Furthermore, US2018 / 0211380A1 does not disclose any specific implementation of the method or system for analysing classical blood smears, in particular for the identification of microorganisms present in blood.

[0014] EP4276767A1 discloses a method for identifying four bacterial species: two Gram-positive species (Staphylococcus aureus, Lactobacillus plantarum) and two Gram-negative species (Escherichia coli, Neisseria gonorrhoeae). The algorithms employed in this disclosure were trained on images of reference laboratory cultures and were not calibrated using clinical species, such as blood samples from patients. In clinical environments — especially following pre-incubation in closed culture systems or due to strain-specific morphological variation — bacteria may undergo significant morphological alterations (e.g., pronounced elongation or shortening of cells, swollen forms), leading to a substantial decrease in model accuracy. As a result, the solution disclosed in EP4276767A1 is not directly applicable to clinical practice without significant adaptation and retraining.

[0015] Current solutions fail to offer a method for the rapid identification of microorganisms in blood that circumvents the need for time-intensive blood cultures or highly specialized molecular techniques. This is particularly critical for the swift identification of pathogens in severe clinical conditions such as sepsis. Consequently, there is a pressing need to develop a method that enables the rapid identification of microorganisms in blood without reliance on specialized equipment, while also allowing for the determination of the specific microorganism species present. SUMMARY OF THE INVENTION

[0016] The technical problem addressed by the present invention is to provide a method and system for the rapid and accurate identification of microorganisms in blood samples, particularly in microscopic images of blood smears, without the need for timeconsuming cultures or specialized molecular techniques. This problem is especially critical in the timely diagnosis and treatment of severe clinical conditions such as sepsis, where delays can significantly impact patient outcomes.

[0017] The present invention addresses this problem by introducing a computer- implemented method that utilizes advanced artificial intelligence techniques, specifically deep learning models, for the rapid and accurate identification of microorganisms in blood smears. By employing a deep learning cellular segmentation model and a deep neural network encoding model, the invention automates the detection and classification of microorganism cells within microscopic images. This Al- based approach reduces the reliance on manual processes and specialized equipment, significantly decreasing the time required for identification compared to traditional culturing methods. The technical effect achieved by this Al solution is the ability to quickly and accurately identify microorganisms at the species level directly from microscopic images, thereby enabling timely and appropriate therapeutic interventions in critical conditions like sepsis.

[0018] The integration of Al features in the method produces a direct causal link to the technical effect achieved. The deep learning cellular segmentation model precisely delineates microorganism cell boundaries and surfaces in the microscopic image, enabling accurate detection without manual intervention. The deep neural network encoding model transforms each detected cell into a rich feature representation vector, capturing essential morphological characteristics. By aggregating these vectors using a pooling method and classifying them with a neural network classifier, the system effectively identifies the species of microorganisms present. This sequence of Al- driven steps results in a synergistic effect where automated segmentation, feature extraction, and classification collaboratively produce the rapid and accurate identification of microorganisms, thereby solving the technical problem outlined.

[0019] In a specific aspect, the object of the invention is a computer implemented method for identifying a microorganism in a blood comprising:

[0020] - receiving a microscopic image of a blood smear; - detecting plurality of microorganism cells in the microscopic image using a deep learning cellular segmentation model configured to delineate microorganism cells boundaries and surfaces in the microscopic image, to output a segmented microscopic image, wherein the segmented microscopic image comprises an overlaid boundaries and surfaces of each microorganism cell;

[0021] - extracting from the segmented microscopic image a patch of size HxW centred around a centroid of the detected microorganism cell for each detected microorganism cell, wherein H is number of pixels in vertical axis and W is number of pixels in horizontal axis, wherein the centroid of the detected microorganism cell is calculated based on boundaries of each microorganism cell, and wherein the size HxW is larger than the detected microorganism cell;

[0022] - encoding of each patch by a deep neural network encoding model into a patch representation vector unof size 1 xD, wherein D is a number of features encoded by the deep neural network encoding model;

[0023] - aggregating the patch representation vectors unusing a pooling method to generate a sample representation vector u of size 1 xD;

[0024] - indicating a species of microorganism present in the microscopic image by classifying the sample representation vector u by a neural network classifier to class representing specific species.

[0025] The present invention introduces a novel method for identifying microorganisms in blood by analysing microscopic images of blood smears. Traditionally, the gold standard for identifying microorganisms in blood has been culturing bacteria or employing molecular methods. However, culturing bacteria is a time-consuming process, often requiring several days to yield results. In critical clinical situations, such as sepsis, rapid identification of microorganisms is essential. While molecular methods offer quicker identification, they are typically limited to specialized diagnostic laboratories equipped with expensive molecular diagnostic tools and staffed by highly trained personnel. In contrast, standard diagnostic laboratories predominantly rely on culturing and manual image analysis of Gram-stained samples under a light microscope.

[0026] This invention provides an automated method for identifying bacteria in blood by analysing microscopic images obtained from light microscopy, utilizing dedicated deep learning models. This approach significantly reduces the need for specialized equipment, limiting it to basic diagnostic laboratory tools such as a light microscope and a computer with dedicated software or access to network resources where such software is available. Consequently, the method can be widely adopted without necessitating substantial additional investments.

[0027] A deep learning cellular segmentation model is employed to delineate the boundaries and surfaces of microorganism cells of different sizes within the microscopic image. This automation eliminates the need for manual microorganism detection by an operator, thereby enhancing the speed and accuracy of detection.

[0028] The invention utilizes a pooling method to aggregate the patch representation vectors generated for each image patch, which improves the accuracy of subsequent classification. This approach leverages images of multiple cells across the entire microscopic image, yielding superior results compared to methods that rely on a single patch for classification.

[0029] Furthermore, the implementation of a neural network classifier enables the classification of various microorganism species with relation to inter-species covariance. This capability is crucial in a diagnostic context, as merely identifying organisms as belonging to an unspecified taxonomic group is insufficient for determining the optimal treatment strategy. Clinical symptoms alone often do not provide a clear indication of the expected microorganism species. The invention addresses this challenge by employing a neural network classifier to identify microorganisms at the species level from microscopic blood images.

[0030] Overall, the present invention offers a unique method for the precise and rapid identification of microorganisms in blood, based on microscopic images of blood smears.

[0031] Preferably, the pooling method is selected from group consisting of: meanbased pooling, average-based pooling, attention-based pooling, and multi-head attention-based pooling.

[0032] The above-mentioned pooling methods provide optimal technical results and allow achieving satisfactory precision of the final classification. Moreover, each of the mentioned pooling methods allows the use of any number of patches, which allows the use of a different number of patches depending on the sample. Preferably, the pooling method is multi-head attention-based pooling because it allows for the identification of patches with the highest attention weight, which ensures good interpretability of the result by identifying the patches that influenced the classification the most.

[0033] Preferably, the neural network classifier is multi-layer perceptron (MLP) classifier with depth ranges from 1 to 5.

[0034] The above-mentioned MLP classifier depth provide optimal technical results and allow achieving satisfactory precision of the final classification.

[0035] Preferably, the neural network classifier is a hierarchical deep learning classifier. The hierarchical deep learning classifier produces diagnostically useful information already at coarse taxonomic ranks and refines this information progressively down to the species level. The technical effect achieved by the hierarchical deep learning classifier is the ability to rapidly and accurately identify microorganisms at various taxonomic levels, including species level.

[0036] Preferably, the hierarchical deep learning classifier is implemented as a multihead multi-layer perceptron (MLP) classifier wherein each head corresponds to a node in the class hierarchy tree. Each MLP head consists of 2 layers.

[0037] Preferably, the deep learning cellular segmentation model is a multi-scale deep learning cellular segmentation model.

[0038] Preferably, the method further comprising step of automatically recommending the most effective antimicrobial regimen in line with the clinical recommendations, based on indicated species of microorganism. Recommendations can based for example on The European Committee on Antimicrobial Susceptibility Testing. Breakpoint tables for interpretation of MICs and zone diameters. Version 15.0, 2025. https: / / www.eucast.org.

[0039] Preferably, the microorganism is a sepsis-causing pathogenic microorganism.

[0040] Rapid identification of pathogenic microorganism causing sepsis is crucial for disposing optimal strategy for treatment sepsis. For different species of pathogenic microorganisms different medicines should be used. In some embodiments, if a reliable species-level identification cannot be obtained, the method delivers actionable information at a higher taxonomic level, for example, indicating that the causative agent belongs to the genus Enterococcus, which already permits an initial, targeted adjustment therapy in accordance with current recommendation By specifically targeting sepsis-causing microorganisms, the method addresses a critical medical need, potentially improving early diagnosis and treatment outcomes for sepsis patients. Preferably, the microorganism is selected from group consisting of: sepsis causing bacteria and sepsis causing fungi. They are two main groups of pathogens causing sepsis.

[0041] Preferably, the microorganism is selected from the group consisting of: Staphylococcus aureus, Enterococcus faecalis, Streptococcus pneumoniae, Escherichia coli, Klebsiella pneumoniae, Acinetobacter baumanii, Candida albicans, Candida tropicalis, Candida kefyr, Candida glabrata and Candida parapsilosis.

[0042] Preferably, the microorganism is selected from the group of Fungi consisting of: Candida albicans, Nakaseomyces glabratus; and other Fungi consisting of: Candida parapsilosis, Candida tropicalis and Kluyveromyces marxianus.

[0043] Preferably, the microorganism is selected from group of Bacteria consisting of Gram-positive and Gram-negative bacteria.

[0044] Preferably, the microorganism is selected from group consisting of Grampositive bacteria sub-typed into Bacilli and Cocci.

[0045] Preferably, the microorganism is selected from a group of Gram-positive bacteria, subtyped into Bacilli, including Cutibacterium acnes and other Bacilli.

[0046] Preferably, the microorganism is selected from group consisting of Grampositive bacteria sub-typed into Cocci including Staphylococci, Streptococci, other Cocci, and Anaerobic Cocci.

[0047] Preferably, the microorganism is selected from a group of Staphylococci consisting of: Staphylococcus aureus, and other Staphylococci comprising Staphylococcus epidermidis, Staphylococcus hominis and Staphylococcus haemolyticus (coagulase negative staphylococci, CoNS).

[0048] Preferably, the microorganism is selected from a group of Streptococci consisting of: Enterococci, Alpha-haemolytic Streptococci: Streptococcus mitis / oralis and Streptococcus pneumoniae or Beta-haemolytic Streptococci: Streptococcus agalactiae (GBS - Group B Streptococcus), Streptococcus dysagalactiae (GGS - Group G Streptococcus or GCS- Group C Streptococcus) and Streptococcus pyogenes (GAS - Group A Streptococcus).

[0049] Preferably, the microorganism is selected from a group of Enterococci consisting of Enterococcus faecalis and Enterococcus faecium.

[0050] Preferably, the microorganism is selected from a group of Gram-negative bacteria sub-typed into Bacilli and other Gram-negative bacteria. Preferably, the microorganism is selected from a group of Gram-negative bacteria sub-typed into Bacilli consisting of: Acinetobacter baumanii, Pseudomonas aeruginosa, Stenotrophomonas maltophilia, Escherichia coli, Klebsiella pneumoniae, Serratia marcescens.

[0051] Mentioned microorganisms are the most common pathogens causing sepsis. Preferably, the microscopic image presents a Gram-stained blood smear.

[0052] Using Gram-stained blood smears leverages a widely used diagnostic technique, facilitating integration into existing laboratory workflows and enhancing the method's practicality.

[0053] Preferably, the method according to the invention further comprising, prior to receiving the microscopic image of the blood smear:

[0054] - training of the deep learning cellular segmentation model comprising: o using the deep learning cellular segmentation model pretrained on dataset comprising plurality of highly varied images of cells labelled manually as a starting point for training; o processing through the pretrained deep learning cellular segmentation model a first subset of microscopic images of a blood smear comprising plurality of microorganism cells to output the segmented microscopic image; o correcting the segmented microscopic image by delineating missed microorganism cells boundaries and surfaces, and removing incorrectly applied microorganism cells boundaries and surfaces, to obtain a corrected segmented microscopic image; o fine-tuning the deep learning cellular segmentation model with the corrected segmented microscopic image;

[0055] - training jointly the deep learning cellular segmentation model, the deep neural network encoding model, the pooling method and the neural network classifier using a gradient descent optimization by processing by the method according to any one of preceding claims a second subset of microscopic images of a blood smear comprising plurality of microorganism cells for indicating what a species of microorganism is present in the microscopic image and verifying performed indication with the label of each microscopic image. Starting with a pretrained model and fine-tuning it with corrected segmented images ensures high initial accuracy and adaptability to specific datasets, improving overall model performance.

[0056] Training all components (segmentation model, encoding model, pooling method, neural network classifier) together ensures cohesive optimization, leading to better integration and performance.

[0057] Preferably, the gradient descent optimization uses AdamW optimiser with the learning rate selected in range of [0.0001 , 0.005] and weight decay in range of [0.00001 , 0.1 ],

[0058] Using the AdamW optimizer with specified learning rate and weight decay ranges allows for efficient and effective model training, reducing overfitting and improving convergence.

[0059] Preferably, the gradient descent optimization uses a OneCycle learning rate scheduler.

[0060] Implementing a OneCycle learning rate scheduler helps in achieving faster convergence and better generalization by dynamically adjusting the learning rate during training.

[0061] Preferably, the microorganism present in the microscopic images collected in the second subset of microscopic images is sepsis causing pathogenic microorganism.

[0062] Training specifically on sepsis-causing microorganisms ensures that the model is highly specialized and accurate in detecting these critical pathogens.

[0063] Preferably, the pathogenic microorganism present in the microscopic images collected in the second subset of microscopic images is selected from group consisting of: sepsis causing bacteria and sepsis causing fungi.

[0064] By focusing on sepsis-causing bacteria and fungi, the training process is tailored to enhance detection accuracy for these specific pathogens, which are of high clinical importance.

[0065] Preferably, the pathogenic microorganism present in the microscopic images collected in the second subset of microscopic images is selected from group consisting of: Staphylococcus aureus, Enterococcus faecalis, Streptococcus pneumoniae, Escherichia coli, Klebsiella pneumoniae, Acinetobacter baumanii, Candida albicans, Candida tropicalis, Candida kefyr, Candida glabrata and Candida parapsilosis.

[0066] Preferably, the pathogenic microorganism present in the microscopic images collected in the second subset of microscopic images is selected from the group of Fungi consisting of: Candida albicans, Nakaseomyces glabratus; and other Fungi consisting of: Candida parapsilosis, Candida tropicalis and Kluyveromyces marxianus.

[0067] Preferably, the pathogenic microorganism present in the microscopic images collected in the second subset of microscopic images is selected from group of Bacteria consisting of Gram-positive and Gram-negative bacteria.

[0068] Preferably, the pathogenic microorganism present in the microscopic images collected in the second subset of microscopic images is selected from group consisting of Gram-positive bacteria sub-typed into Bacilli and Cocci.

[0069] Preferably, the pathogenic microorganism present in the microscopic images collected in the second subset of microscopic images is selected from a group of Grampositive bacteria, subtyped into Bacilli, including Cutibacterium acnes and other Bacilli.

[0070] Preferably, the pathogenic microorganism present in the microscopic images collected in the second subset of microscopic images is selected from group consisting of Gram-positive bacteria sub-typed into Cocci including Staphylococci, Streptococci, other Cocci, and Anaerobic Cocci.

[0071] Preferably, the pathogenic microorganism present in the microscopic images collected in the second subset of microscopic images is selected from a group of Staphylococci consisting of: Staphylococcus aureus, and other Staphylococci comprising Staphylococcus epidermidis, Staphylococcus hominis and Staphylococcus haemolyticus (coagulase negative staphylococci, CoNS).

[0072] Preferably, the pathogenic microorganism present in the microscopic images collected in the second subset of microscopic images is selected from a group of Streptococci consisting of: Enterococci, Alpha-haemolytic Streptococci: Streptococcus mitis / oralis and Streptococcus pneumoniae or Beta-haemolytic Streptococci: Streptococcus agalactiae (GBS - Group B Streptococcus), Streptococcus dysagalactiae (GGS - Group G Streptococcus or GCS- Group C Streptococcus) and Streptococcus pyogenes (GAS - Group A Streptococcus).

[0073] Preferably, the pathogenic microorganism present in the microscopic images collected in the second subset of microscopic images is selected from a group of Enterococci consisting of Enterococcus faecalis and Enterococcus faecium.

[0074] Preferably, the pathogenic microorganism present in the microscopic images collected in the second subset of microscopic images is selected from a group of Gramnegative bacteria sub-typed into Bacilli and other Gram-negative bacteria. Preferably, the pathogenic microorganism present in the microscopic images collected in the second subset of microscopic images is selected from a group of Gramnegative bacteria sub-typed into Bacilli consisting of: Acinetobacter baumanii, Pseudomonas aeruginosa, Stenotrophomonas maltophilia, Escherichia coli, Klebsiella pneumoniae, Serratia marcescens.

[0075] Including a wide range of specific pathogens in the training dataset ensures that the model is robust and capable of identifying multiple sepsis-causing microorganisms.

[0076] In another aspect invention relates to a data processing system comprising means for carrying out the steps of the method according to the invention.

[0077] A system designed to carry out the method steps ensures seamless operation and integration, providing a complete solution for microorganism identification.

[0078] Preferably, the data processing system comprises a non-transitory storage storing:

[0079] - a segmentation module for detecting plurality of microorganism cells in a microscopic image, to output a segmented microscopic image;

[0080] - an image patch extraction module for extracting from the segmented microscopic image the patch for each detected pathogenic microorganism cell;

[0081] - a encoding module for encoding each patch into a patch representation vector Un,

[0082] - an aggregation module for aggregating the patch representation vectors Unto a sample representation vector w,

[0083] - a classification module for indicating a species of microorganism present in the microscopic image by classifying the sample representation vector u and a processor 620 configured for executing instructions of modules (611 -615) stored in the storage 610.

[0084] The inclusion of specific modules for segmentation, extraction, encoding, aggregation, and classification allows for modular updates and improvements, enhancing system flexibility and scalability.

[0085] The solutions according to the present invention are directly applicable to the technical field of medical diagnostics, specifically in the analysis of microscopic images for the identification of microorganisms in blood smears. By utilizing deep learning models for cell segmentation and classification, the method automates the detection and identification process, which traditionally requires manual examination by skilled microbiologists. This technical application of Al results in a significant reduction of analysis time and increases accuracy, addressing the urgent need for rapid diagnostics in critical conditions like sepsis.

[0086] The tangible advantages of the technical effect include the ability to provide prompt and precise identification of pathogens, enabling clinicians to initiate appropriate treatments without delay. This is particularly crucial in the management of sepsis, where every hour of delayed treatment can significantly increase mortality rates. Additionally, the method reduces reliance on specialized molecular diagnostics equipment, making advanced diagnostic capabilities accessible to a wider range of healthcare facilities, including those with limited resources.

[0087] The technical effect of rapid and accurate microorganism identification is applicable across the entire claim scope, as the method is designed to work with any microscopic images of blood smears containing microorganisms. The Al models can be trained and fine-tuned for different species and staining techniques, ensuring that the benefits of the invention can be realized regardless of variations in sample preparation or imaging equipment. This universality underscores the method's applicability in diverse clinical settings and its potential to improve diagnostic workflows on a broad scale.

[0088] BRIEF DESCRIPTION OF DRAWINGS

[0089] The invention is shown by means of example embodiment in a drawing, wherein:

[0090] Fig. 1 shows schematically steps of the method for identifying a microorganism in a blood;

[0091] Fig. 2 shows schematically steps of the method for identifying a microorganism in a blood comprising training steps;

[0092] Fig. 3 shows schematically steps of the method for training a deep learning cellular segmentation model;

[0093] Fig. 4 shows some examples of a segmented microscopic images of Gram-positive and Gram-negative bacteria;

[0094] Fig. 5 shows some examples of a segmented microscopic images of yeast-like fungi; Fig. 6A-F shows the ROC graph for sample bacterial species for the first embodiment of the invention;

[0095] Fig. 7A-E shows the ROC graph for sample fungi species for the first embodiment of the invention;

[0096] Fig. 8 shows schematically an embodiment of the data processing system according to the invention;

[0097] Fig. 9A-Z shows the ROC graphs for the second embodiment of the invention.

[0098] DETAILED DESCRIPTION

[0099] In certain aspects, the present invention relates to a computer-implemented method for the identification of microorganisms in blood samples. This method enables the rapid identification of microorganisms at the species level using only basic, widely available laboratory diagnostic equipment and specialized software. It is particularly advantageous for the swift identification of pathogens in blood that may cause severe clinical conditions such as sepsis. Additionally, it can be employed for other purposes, such as the analysis of archived blood smear preparations for scientific research. In some embodiments if a reliable species-level assignment cannot be obtained, the system automatically reports the most specific higher taxonomic rank that meets the confidence threshold, enabling clinicians to initiate an empirically targeted therapy consistent with current guidelines.

[0100] The schematic representation of the method according to the invention is illustrated in Fig. 1. The initial step of the method involves receiving 101 a microscopic image of a blood smear. This image may originate from a database containing previously captured microscopic images or be obtained directly from a camera connected to a microscope. Preferably, the microscopic image is acquired using a light microscope, as this is the most commonly available type of microscope in diagnostic laboratories. However, in certain embodiments, the image may be obtained using alternative techniques, such as fluorescence microscopy. In some preferred embodiments the microscopic image presents a Gram-stained blood smear. This allows for staining, better visibility and disclosure of certain characteristics of the microorganisms present in the blood smear. In some embodiments smears were prepared from positive blood cultures of sepsis patients grown exclusively in the closed BACT / ALERT VIRTUO system (bioMerieux, Marcy-l’Etoile, France). Slides were Gram-stained automatically using the PREVI COLOR GRAM instrument (bioMerieux, Marcy-l’Etoile, France) following the manufacturer’s protocol.

[0101] The subsequent step 102 involves detecting a plurality of microorganism cells within the microscopic image using a deep learning cellular segmentation model. This approach facilitates the identification of multiple regions within the image that contain microorganisms, eliminating the need for manual identification, which can be both timeconsuming and challenging. The deep learning cellular segmentation model is designed to delineate the boundaries and surfaces of microorganism cells within the microscopic image, resulting in a segmented image. In some embodiments, the deep learning cellular segmentation model may be implemented as a CellPose model. In some embodiments, the deep learning cellular segmentation model may be implemented as a multi-scale deep learning cellular segmentation model, particularly as an ensemble of CellPose models, one for each segmentation scale. The input scales of the models may be 1x, 2x, 4x or 8x, with a preference for 1x and 4x. The image is downscaled to a size equal the original size of the image divided by the model scale. Preferably, the model is fine-tuned with microscopic images containing a variety of microorganisms. The segmented image includes overlaid boundaries and surfaces for each microorganism cell.

[0102] The next step 103 involves extracting a patch of size HxW, centred around the centroid of each detected microorganism cell, from the segmented microscopic image. Here, H represents the number of pixels along the vertical axis, and W represents the number of pixels along the horizontal axis. For instance, the HxW size of a patch may be 128x128, 128x256, 256x256, 256x512, 512x512, 512x1024, or 1024x1024, with a preference for 512x512. The centroid of the detected microorganism cell is calculated based on the boundaries of each cell. In this patent application, the centroid is defined as the geometric centre of the area delineated by the boundaries of the microorganism cell in the microscopic image. The patch size HxW is chosen to be larger than the detected microorganism cell to ensure that the entire cell surface is included, allowing all its features to be available for subsequent analysis. In some embodiments, the patch may contain more than one microorganism cell. The patch that does not contain any microorganism cells is not passed on to further analysis steps. In some embodiments a patch of size HxW, is scaled by the model scale factor “r” and have a form H*r x WT. Here, H represents the number of pixels along the vertical axis, and W represents the number of pixels along the horizontal axis, and r represents the model scale. The extracted patch H*r x W*r is downscaled to HxW pixels in order to equalize the size for all scale ratios.

[0103] The following step 104 involves encoding each patch using a deep neural network encoding model to generate a patch representation vector unof size 1 xD. The deep neural network encoding model is configured to transform each patch into a patch representation vector unthat encapsulates the essential features of the image. These features may include edges, textures, shapes, and patterns that are critical for understanding the image content. However, the features and their values are abstract and may take on more complex forms. The deep neural network encoding model autonomously determines which features to consider when creating the patch representation vector un, and this need not be disclosed to the user. The dimension D of the patch representation vector uncorresponds to the number of features encoded by the model. D can take different values depending on the deep neural network encoding model architecture, for example in some embodiments 100, 128, 200, 256, 300, 400, 500, 512, 600, 700, 800, 900, 1000 or 1024. The deep neural network encoding model can be implemented using pre-trained models known in the art, such as ResNet18, ResNet50, VGG19, lnceptionV3, DenseNet, MobileNet, or EfficientNet. In some embodiments, the deep neural network encoding model is pretrained on histological slides similar to Gram-stained microscopic images. In some embodiments, the deep neural network encoding model is fine-tuned using labelled microscopic images containing microbial cells.

[0104] The subsequent step 105 involves aggregating the patch representation vectors Un using a pooling method to generate a sample representation vector u of size 1 xD. The dimension D of the sample representation vector u is the same as in the patch representation vector unand correspond to the same features. Pooling methods, well- known in the art, allow for the combination of information from multiple patches, thereby enhancing the quality of the final classification. In some embodiments, the pooling method is selected from a group consisting of DSMIL, CLAM, mean-based pooling, average-based pooling, attention-based pooling, and multi-head attention-based pooling. Preferably, the pooling method is multi-head attention-based pooling because it allows for the identification of patches with the highest attention weight, which ensures good interpretability of the result by identifying the patches that influenced the classification the most. Additionally, each of the mentioned pooling methods allows the use of any number of patches, which allows the use of a different number of patches depending on the sample.

[0105] The final step 106 involves indicating the species of microorganism present in the microscopic image by classifying the sample representation vector u using a neural network classifier to assign it to a class representing a specific species.

[0106] In some embodiments, the neural network classifier is multi-layer perceptron (MLP) classifier, preferably with depth ranges from 1 to 5. In some other embodiments, the neural network classifier is a hierarchical deep learning classifier, preferably implemented as a multi-head multi-layer perceptron (MLP) classifier wherein each head corresponds to a node in the class hierarchy tree. Each MLP head consists of 2 layers.

[0107] In some embodiments if a reliable species-level assignment cannot be achieved, the system automatically reports the most detailed higher taxonomic rank that meets the confidence threshold. Additionally, the system predicts the most effective therapy at each taxonomic level, according to applicable guidelines.

[0108] In some embodiments, the identified microorganism is a sepsis-causing pathogenic microorganism.

[0109] In some embodiments, the identified microorganism is selected from group consisting of: sepsis causing bacteria and sepsis causing fungi.

[0110] In some embodiments, the identified microorganism is selected from the group consisting of: Staphylococcus aureus, Enterococcus faecalis, Streptococcus pneumoniae, Escherichia coli, Klebsiella pneumoniae, Acinetobacter baumanii, Candida albicans, Candida tropicalis, Candida kefyr, Candida glabrata and Candida parapsilosis.

[0111] In some embodiments the microorganism is selected from the group of Fungi consisting of: Candida albicans, Nakaseomyces glabratus; and other Fungi consisting of: Candida parapsilosis, Candida tropicalis and Kluyveromyces marxianus.

[0112] In some embodiments the microorganism is selected from group of Bacteria consisting of Gram-positive and Gram-negative bacteria.

[0113] In some embodiments the microorganism is selected from group consisting of Gram-positive bacteria sub-typed into Bacilli and Cocci.

[0114] In some embodiments the microorganism is selected from a group of Grampositive bacteria, subtyped into Bacilli, including Cutibacterium acnes and other Bacilli. In some embodiments the microorganism is selected from group consisting of Gram-positive bacteria sub-typed into Cocci including Staphylococci, Streptococci, other Cocci, and Anaerobic Cocci.

[0115] In some embodiments the microorganism is selected from a group of Staphylococci consisting of: Staphylococcus aureus, and other Staphylococci comprising Staphylococcus epidermidis, Staphylococcus hominis and Staphylococcus haemolyticus (coagulase negative staphylococci, CoNS).

[0116] In some embodiments the microorganism is selected from a group of Streptococci consisting of: Enterococci, Alpha-haemolytic Streptococci: Streptococcus mitis / oralis and Streptococcus pneumoniae or Beta-haemolytic Streptococci: Streptococcus agalactiae (GBS - Group B Streptococcus), Streptococcus dysagalactiae (GGS - Group G Streptococcus or GCS- Group C Streptococcus) and Streptococcus pyogenes (GAS - Group A Streptococcus).

[0117] In some embodiments the microorganism is selected from a group of Enterococci consisting of Enterococcus faecalis and Enterococcus faecium.

[0118] In some embodiments the microorganism is selected from a group of Gramnegative bacteria sub-typed into Bacilli and other Gram-negative bacteria.

[0119] In some embodiments the microorganism is selected from a group of Gramnegative bacteria sub-typed into Bacilli consisting of: Acinetobacter baumanii, Pseudomonas aeruginosa, Stenotrophomonas maltophilia, Escherichia coli, Klebsiella pneumoniae, Serratia marcescens. Fig. 2 shows the schematic representation of an embodiment of the method according to the invention further comprising, prior to receiving 101 the microscopic image of the blood smear: training 210 of the deep learning cellular segmentation model comprising and training 220 jointly the deep learning cellular segmentation model, the deep neural network encoding model, the pooling method and the neural network classifier using a gradient descent optimization.

[0120] In some embodiments training 210 of the deep learning cellular segmentation model comprises:

[0121] - using 211 the deep learning cellular segmentation model pretrained on dataset comprising plurality of highly varied images of cells labelled manually (e.g. CellPose dataset) as a starting point for training;

[0122] - processing 212 through the pretrained deep learning cellular segmentation model a first subset of microscopic images of a blood smear comprising plurality of microorganism cells to output the segmented microscopic image; - correcting 213 the segmented microscopic image by delineating missed microorganism cells boundaries and surfaces, and removing incorrectly applied microorganism cells boundaries and surfaces, to obtain a corrected segmented microscopic image;

[0123] - fine-tuning 214 the deep learning cellular segmentation model with the corrected segmented microscopic image.

[0124] Steps of these process are schematically presented in Fig. 3.

[0125] Training 220 jointly the deep learning cellular segmentation model, the deep neural network encoding model, the pooling method and the neural network classifier using a gradient descent optimization is performed by processing by the method according to the invention a second subset of microscopic images of a blood smear comprising plurality of microorganism cells for indicating what a species of pathogenic microorganism is present in the microscopic image and verifying performed indication with the label of each microscopic image. Microscopic images of a blood smear could be Gram-stained.

[0126] In some embodiments the microorganism present in the microscopic images collected in the second subset of microscopic images is sepsis causing pathogenic microorganism.

[0127] In some embodiments the microorganism present in the microscopic images collected in the second subset of microscopic images is selected from group consisting of: sepsis causing bacteria and sepsis causing fungi.

[0128] In some embodiments the microorganism present in the microscopic images collected in the second subset of microscopic images is selected from group consisting of: Staphylococcus aureus, Enterococcus faecalis, Streptococcus pneumoniae, Escherichia coli, Klebsiella pneumoniae, Acinetobacter baumanii, Candida albicans, Candida tropicalis, Candida kefyr, Candida glabrata and Candida parapsilosis.

[0129] In some embodiments the pathogenic microorganism present in the microscopic images collected in the second subset of microscopic images is selected from the group of Fungi consisting of: Candida albicans, Nakaseomyces glabratus; and other Fungi consisting of: Candida parapsilosis, Candida tropicalis and Kluyveromyces marxianus.

[0130] In some embodiments the pathogenic microorganism present in the microscopic images collected in the second subset of microscopic images is selected from group of Bacteria consisting of Gram-positive and Gram-negative bacteria. In some embodiments the pathogenic microorganism present in the microscopic images collected in the second subset of microscopic images is selected from group consisting of Gram-positive bacteria sub-typed into Bacilli and Cocci.

[0131] In some embodiments the pathogenic microorganism present in the microscopic images collected in the second subset of microscopic images is selected from a group of Gram-positive bacteria, subtyped into Bacilli, including Cutibacterium acnes and other Bacilli.

[0132] In some embodiments the pathogenic microorganism present in the microscopic images collected in the second subset of microscopic images is selected from group consisting of Gram-positive bacteria sub-typed into Cocci including Staphylococci, Streptococci, other Cocci, and Anaerobic Cocci.

[0133] In some embodiments the pathogenic microorganism present in the microscopic images collected in the second subset of microscopic images is selected from a group of Staphylococci consisting of: Staphylococcus aureus, and other Staphylococci comprising Staphylococcus epidermidis, Staphylococcus hominis and Staphylococcus haemolyticus (coagulase negative staphylococci, CoNS).

[0134] In some embodiments the pathogenic microorganism present in the microscopic images collected in the second subset of microscopic images is selected from a group of Streptococci consisting of: Enterococci, Alpha-haemolytic Streptococci: Streptococcus mitis / oralis and Streptococcus pneumoniae or Beta-haemolytic Streptococci: Streptococcus agalactiae (GBS - Group B Streptococcus), Streptococcus dysagalactiae (GGS - Group G Streptococcus or GCS- Group C Streptococcus) and Streptococcus pyogenes (GAS - Group A Streptococcus).

[0135] In some embodiments the pathogenic microorganism present in the microscopic images collected in the second subset of microscopic images is selected from a group of Enterococci consisting of Enterococcus faecalis and Enterococcus faecium.

[0136] In some embodiments the pathogenic microorganism present in the microscopic images collected in the second subset of microscopic images is selected from a group of Gram-negative bacteria sub-typed into Bacilli and other Gram-negative bacteria.

[0137] In some embodiments the pathogenic microorganism present in the microscopic images collected in the second subset of microscopic images is selected from a group of Gram-negative bacteria sub-typed into Bacilli consisting of: Acinetobacter baumanii, Pseudomonas aeruginosa, Stenotrophomonas maltophilia, Escherichia coli, Klebsiella pneumoniae, Serratia marcescens. In some embodiments the gradient descent optimization uses AdamW optimiser with the learning rate selected in range of [0.0001 , 0.005] and weight decay in range of [0.00001 , 0.1 ],

[0138] In some embodiments the gradient descent optimization uses a OneCycle learning rate scheduler.

[0139] In some embodiments the second subset of microscopic images comprises microscopic images obtained by image augmentations (rotations, horizontal and vertical flipping, random cropping and colour jitter) and image normalization (subtracting the mean and dividing by the standard deviation calculated on a subset of images) methods.

[0140] In another aspect the invention provides a data processing system 600 comprising means for carrying out the steps of the method according to the invention.

[0141] In some embodiments the data processing system comprising a non- transitory storage 610 storing:

[0142] - a detecting module 611 for detecting plurality of microorganism cells in a microscopic image, to output a segmented microscopic image;

[0143] - an image patch extraction module 612 for extracting from the segmented microscopic image the patch for each detected pathogenic microorganism cell;

[0144] - a encoding module 613 for encoding each patch into a patch representation vector Un,

[0145] - an aggregation module 614 for aggregating the patch representation vectors Un to a sample representation vector u;

[0146] - a classification module 615 for indicating a species of microorganism present in the microscopic image by classifying the sample representation vector u; and a processor 620 configured for executing instructions of modules stored in the storage 610.

[0147] A schematic structure of the data processing system 600 according to the invention is presented in Fig. 8.

[0148] Example 1

[0149] A deep learning cellular segmentation model was implemented using the CellPose framework, specifically utilizing a model denoted as CellPose model. This model was pretrained 211 on a diverse dataset comprising a wide array of manually labelled cellular images, which are part of the CellPose database. Subsequently, this pretrained deep learning cellular segmentation model was employed to process 212 a first subset of microscopic images derived from blood smears containing a variety of microorganism cells. This processing step, labelled as step 212, resulted in the generation of segmented microscopic images.

[0150] In the subsequent step 213, these segmented microscopic images underwent manual correction by a microbiologist. The microbiologist meticulously delineated any microorganism cell boundaries and surfaces that were initially missed and rectified any incorrectly applied boundaries and surfaces, thereby producing corrected segmented microscopic images. Fig. 4 illustrates example fragments 301 -306 of images featuring Gram-positive and Gram-negative bacteria that were subjected to active learning. For each bacterial species, the original image fragment is displayed on the left, while the right side shows the fragment with microbiologist-overlaid microorganism cell boundaries and surfaces. Similarly, Fig. 5 presents example fragments 401 -405 of images of yeast-like fungi subjected to active learning, with the original image fragment on the left and the microbiologist-overlaid boundaries and surfaces on the right.

[0151] The corrected segmented microscopic images served as feedback for fine- tuning the deep learning cellular segmentation model, as indicated in step 214. This fine-tuning process utilized the corrected segmented microscopic images to enhance the model's accuracy.

[0152] A deep neural network encoding model was implemented using a ResNet18 architecture, which was pretrained on histological slides, preferably those similar to Gram-stained images, to ensure optimal initialization. This model was configured to output a patch representation vector unof size 1 *D, wherein D=512.

[0153] An attention-based pooling method was employed, utilizing the dual stream multiple instance learning (DS-MIL) algorithm. A multi-layer perceptron (MLP) classifier with a depth of G=1 was used to classify the sample representation vector u into classes representing specific microorganism species.

[0154] The deep learning cellular segmentation model, the deep neural network encoding model, the pooling method, and the MLP classifier were integrated into a comprehensive data processing system 600 comprising a non-transitory storage 610 and a processor 620 configured for executing instructions of modules stored in the storage 610, as depicted in Fig. 8. This system was subsequently trained using a second subset of microscopic images from Gram-stained blood smears containing various microorganism cells. The purpose was to identify the species of microorganisms present in the microscopic images and verify the identification against the labelled data for each image.

[0155] The system's training was conducted using gradient descent optimization, specifically employing the AdamW optimizer. The parameters were determined experimentally through Bayesian hyperparameter optimization. The learning rate was selected within the range of [0.0001 , 0.005], and the weight decay was set between [0.00001 , 0.1 ], Additionally, a OneCycle learning rate scheduler was utilized. The system underwent training for 100 epochs. To ensure high accuracy, image augmentations, including rotations, horizontal and vertical flipping, random cropping, and colour jitter, were applied. Image normalization was also performed by subtracting the mean and dividing by the standard deviation calculated from a subset of images.

[0156] The second subset of microscopic images included pathogens commonly associated with sepsis, comprising six bacterial species: three Gram-positive species (Staphylococcus aureus, Enterococcus faecalis, Streptococcus pneumoniae) and three Gram-negative species (Escherichia coli, Klebsiella pneumoniae, Acinetobacter baumannii). Additionally, it included five yeast-like fungi from the Candida genus: Candida albicans, Candida tropicalis, Candida kefyr, Candida glabrata, and Candida parapsilosis.

[0157] These microscopic images were sourced from the archival, anonymized database of the Department of Microbiology at the University Hospital in Krakow. The images were captured from positive blood smears stained using the Gram method, utilizing a BX63 Olympus microscope at 100x magnification. The species identification of bacteria and fungi was confirmed following a comprehensive diagnostic procedure, which included initial blood culture in liquid media within a closed system, blood culture on solid media, and identification of the grown colonies using the MALDI-TOF method. Furthermore, the second subset of microscopic images included reference strain images for four bacterial species (Staphylococcus aureus, Enterococcus faecalis, Escherichia coli, and Acinetobacter baumannii).

[0158] The method according to the invention, implemented with the described system, was evaluated on an in-house bacterial dataset consisting of 6,589 images, divided into six classes (Acinetobacter baumannii 301, , Escherichia coli 302, Klebsiella pneumoniae 303, Staphylococcus aureus 304, Enterococcus faecalis 305, Streptococcus pneumoniae 306). Following best practices in machine learning model evaluation, a stratified 5-fold cross-validation was performed, ensuring equal class representation in each split. For each experiment, the entire system was trained independently. The resultant average accuracy of microorganism identification was 86.92%, with a ROC AUC (area under the receiver operating characteristic curve) of 0.9827. Fig. 6A-F presents the classifier confusion matrices 501 -506 for each of the five cross-validation experiments.

[0159] Similarly, the assessment was conducted on an internal yeast-like fungi dataset comprising 1 ,961 images, divided into five classes (Candida albicans 401, Candida glabrata 402, Candida kefyr 403, Candida parapsilosis 404, Candida tropicalis 405). Due to the limited number of patients with Candida kefyr in the dataset, the model was assessed using a stratified 3-fold cross-validation, ensuring equal class representation in each split. As before, the entire system was trained independently for each experiment. The obtained average accuracy of microorganism identification was 60.57%, with a ROC AUC of 0.8638.

[0160] Fig. 7A-E shows the classifier confusion matrices 507-511 for each of the three cross-validation experiments.

[0161] Table 1 provides a quantitative summary of the microscopic images of bacteria and fungi used in the training and evaluation.

[0162] Table 1. Example 2

[0163] A deep learning cellular segmentation model in the form of a multi-scale deep learning cellular segmentation model was implemented using the CellPose framework, specifically utilizing an ensemble of CellPose models, one for each segmentation scale. This model was pretrained 211 on a diverse dataset comprising a wide array of manually labelled cellular images, which are part of the CellPose database. Subsequently, this pretrained deep learning cellular segmentation model was employed to process 212 a first subset of microscopic images derived from blood smears containing a variety of microorganism cells. This processing step, labelled as step 212, resulted in the generation of segmented microscopic images.

[0164] In the subsequent step 213, these segmented microscopic images underwent manual correction by a microbiologist. The microbiologist meticulously delineated any microorganism cell boundaries and surfaces that were initially missed and rectified any incorrectly applied boundaries and surfaces, thereby producing corrected segmented microscopic images.

[0165] The corrected segmented microscopic images served as feedback for fine- tuning the deep learning cellular segmentation model, as indicated in step 214. This fine-tuning process utilized the corrected segmented microscopic images to enhance the model's accuracy.

[0166] A deep neural network encoding model was implemented using a ResNet50 architecture, which was pretrained on histological slides, preferably those similar to Gram-stained images, to ensure optimal initialization. This model was configured to output a patch representation vector unof size 1 *D, wherein D=512.

[0167] An attention-based pooling method was employed, utilizing the multi-head attention-based pooling algorithm. A hierarchical deep neural network classifier, in the form of a multi-layer perceptron (MLP) classifier with a depth of G=2 was used to classify the sample representation vector u into classes representing specific microorganism species.

[0168] The multi-scale deep learning cellular segmentation model, the deep neural network encoding model, the pooling method, and the hierarchical classifier were integrated into a comprehensive data processing system 600 comprising a non- transitory storage 610 and a processor 620 configured for executing instructions of modules stored in the storage 610, as depicted in Fig. 8. This system was subsequently trained using a second subset of microscopic images from Gram-stained blood smears 1 containing various microorganism cells. The purpose was to identify the species of microorganisms present in the microscopic images and verify the identification against the labelled data for each image.

[0169] The system's training was conducted using gradient descent optimization, specifically employing the AdamW optimizer. The parameters were determined experimentally through Bayesian hyperparameter optimization. The learning rate was selected within the range of [0.0001 , 0.005], and the weight decay was set between [0.00001 , 0.1 ], Additionally, a OneCycle learning rate scheduler was utilized. The system underwent training for 100 epochs. To ensure high accuracy, image augmentations, including rotations, horizontal and vertical flipping, random cropping, and colour jitter, were applied. Image normalization was also performed by subtracting the mean and dividing by the standard deviation calculated from a subset of images.

[0170] The second subset of microscopic images included pathogens commonly associated with sepsis, belonging to 26 classes.

[0171] These microscopic images were sourced from the archival, anonymized database of the Department of Microbiology at the University Hospital in Krakow. The images were captured from positive blood smears stained using the Gram method, utilizing a BX63 Olympus microscope at 100x magnification. The species identification of bacteria and fungi was confirmed following a comprehensive diagnostic procedure, which included initial blood culture in liquid media within a closed system, blood culture on solid media, and identification of the grown colonies using the MALDI-TOF method.

[0172] The method according to the invention, implemented with the described system, was evaluated on an in-house bacterial and yeast-like fungi dataset consisting of 16,788 images, divided into 17 classes (out of 26 classes, some of which having similar treatments have been combined and those represented by less than 3 patients have been omitted). Following best practices in machine learning model evaluation, a stratified 3-fold cross-validation was performed, ensuring equal class representation in each split. For each experiment, the entire system was trained independently. The resultant average accuracy of microorganism identification was 88.948%. Fig. 9A-Z presents the classifier confusion matrices 701 -726 for each of the three cross- validation experiments.

[0173] Table 2 provides a quantitative summary of the microscopic images of bacteria and fungi used in the training and evaluation.

[0174]

[0175] 7Gram - positive Bacilli other: Listeria monocytogenes, Brevi bacterium casei, Arcanobacterium haemolyticum, Cory nebacteri urn aurimucosum, Cory nebacteri urn falsenii, Lactobacillus spp, Clostridium perfringens.

[0176] 2Streptococci other: Lactococcus spp, Streptococcus gallolyticus.3Cocci other, Micrococcus luteus.

[0177] 4Anaerobic cocci - Peptoniphilus asaccharolyticus.

[0178] 5Gram - negative Bacilli other: Enterobacter cloaceae complex, Achromobacter denitrificans, Enterobacter cloaceae, Morganella morganii, Raoutella spp. Pasteurella multocida, Bacteroides thetaiotaomicron, Bacteroides fragilis, Bacteroides uniformis, Citrobacter braakii, Salmonella enterica.

[0179] 6Gram-negative other: Pasteurella multocida.

[0180] 7Other Fungi: Candida parapsilosis, Candia tropicalis, Klyveromyces marxianus.

Claims

CLAIMS1. A computer implemented method for identifying a microorganism in a blood comprising:- receiving (101 ) a microscopic image of a blood smear;- detecting (102) plurality of microorganism cells in the microscopic image using a deep learning cellular segmentation model configured to delineate microorganism cells boundaries and surfaces in the microscopic image, to output a segmented microscopic image, wherein the segmented microscopic image comprises an overlaid boundaries and surfaces of each microorganism cell;- extracting (103) from the segmented microscopic image a patch of size HxW centred around a centroid of the detected microorganism cell for each detected microorganism cell, wherein H is number of pixels in vertical axis and W is number of pixels in horizontal axis, wherein the centroid of the detected microorganism cell is calculated based on boundaries of each microorganism cell, and wherein the size HxW is larger than the detected microorganism cell;- encoding (104) of each patch by a deep neural network encoding model into a patch representation vector unof size 1 *D, wherein D is a number of features encoded by the deep neural network encoding model;- aggregating (105) the patch representation vectors unusing a pooling method to generate a sample representation vector u of size 1 *D; and- indicating (106) a species of microorganism present in the microscopic image by classifying the sample representation vector u by a neural network classifier to class representing specific species.

2. The method according to claim 1 , wherein the pooling method is selected from group consisting of: mean-based pooling, average-based pooling, attention-based pooling, and multi-head attention-based pooling.

3. The method according to any one of preceding claims, wherein the neural network classifier is multi-layer perceptron (MLP) classifier with depth ranges from 1 to 5.

4. The method according to any one of preceding claims, wherein the neural network classifier is a hierarchical deep learning classifier.

5. The method according to claim 4, wherein the hierarchical deep learning classifier is implemented as a multi-head multi-layer perceptron (MLP) classifier, wherein each head corresponds to a node in the class hierarchy tree.

6. The method according to any one of preceding claims, wherein the deep learning cellular segmentation model is a multi-scale deep learning cellular segmentation model.

7. The method according to any one of preceding claims, characterised in that the method further comprising step of automatically recommending the most effective antimicrobial regimen in line with the clinical recommendations, based on indicated species of microorganism.

8. The method according to any one of preceding claims, characterised by that the microorganism is a sepsis-causing pathogenic microorganism.

9. The method according to any one of preceding claims, characterised by that the microorganism is selected from group consisting of: sepsis causing bacteria and sepsis causing fungi.

10. The method according to any one of preceding claims, characterised by that the microorganism is selected from the group consisting of: Staphylococcus aureus, Enterococcus faecalis, Streptococcus pneumoniae, Escherichia coli, Klebsiella pneumoniae, Acinetobacter baumanii, Candida albicans, Candida tropicalis, Candida kefyr, Candida glabrata and Candida parapsilosis.

11. The method according to any one of claims 1 -9, characterised by that the microorganism is selected from the group consisting of: Candida albicans, Nakaseomyces glabratus, Candida parapsilosis, Candida tropicalis, Kluyveromyces marxianus, Cutibacterium acnes, Staphylococcus aureus, Staphylococcus epidermidis, Staphylococcus hominis, Staphylococcus haemolyticus (coagulase negative staphylococci, CoNS), Streptococcus mitis / oralis, Streptococcus pneumoniae, Streptococcus agalactiae (GBS - Group B Streptococcus),Streptococcus dysagalactiae (GGS - Group G Streptococcus or GCS- Group C Streptococcus), Streptococcus pyogenes (GAS - Group A Streptococcus), Enterococcus faecalis, Enterococcus faecium, Acinetobacter baumanii, Pseudomonas aeruginosa, Stenotrophomonas maltophilia, Escherichia coli, Klebsiella pneumoniae, Serratia marcescens.

12. The method according to any one of preceding claims, characterised by that the microscopic image presents a Gram-stained blood smear.

13. The method according to any one of preceding claims, further comprising, prior to receiving (101 ) the microscopic image of the blood smear:- training (210) of the deep learning cellular segmentation model comprising:- using (211 ) the deep learning cellular segmentation model pretrained on dataset comprising plurality of highly varied images of cells labelled manually as a starting point for training;- processing (212) through the pretrained deep learning cellular segmentation model a first subset of microscopic images of a blood smear comprising plurality of microorganism cells to output the segmented microscopic image;- correcting (213) the segmented microscopic image by delineating missed microorganism cells boundaries and surfaces, and removing incorrectly applied microorganism cells boundaries and surfaces, to obtain a corrected segmented microscopic image; and- fine-tuning (214) the deep learning cellular segmentation model with the corrected segmented microscopic image; and- training (220) jointly the deep learning cellular segmentation model, the deep neural network encoding model, the pooling method and the neural network classifier using a gradient descent optimization by:- processing by the method according to any one of preceding claims a second subset of microscopic images of a blood smear comprising plurality of microorganism cells for indicating what a species of microorganism is present in the microscopic image; and- verifying performed indication with the label of each microscopic image.

14. The method according claim 13, characterised by that the gradient descent optimization uses AdamW optimiser with the learning rate selected in range of [0.0001 , 0.005] and weight decay in range of [0.00001 , 0.1 ],15. The method according to any one of claims 13 and 14, characterised by that, the gradient descent optimization uses a OneCycle learning rate scheduler.

16. The method according to any one of claims 13-15, characterised by that, the microorganism present in the microscopic images collected in the second subset of microscopic images is sepsis causing pathogenic microorganism.

17. The computer implemented method for training the system according to any one of claims 13-16, characterised by that, the microorganism present in the microscopic images collected in the second subset of microscopic images is selected from group consisting of: sepsis causing bacteria and sepsis causing fungi.

18. The computer implemented method for training the system according to any one of claims 13-17, characterised by that, the pathogenic microorganism present in the microscopic images collected in the second subset of microscopic images is selected from group consisting of: Staphylococcus aureus, Enterococcus faecalis, Streptococcus pneumoniae, Escherichia coli, Klebsiella pneumoniae, Acinetobacter baumanii, Candida albicans, Candida tropicalis, Candida kefyr, Candida glabrata and Candida parapsilosis.

19. The computer implemented method for training the system according to any one of claims 13-17, characterised by that, the pathogenic microorganism present in the microscopic images collected in the second subset of microscopic images is selected from group consisting of: Candida albicans, Nakaseomyces glabratus, Candida parapsilosis, Candida tropicalis, Kluyveromyces marxianus, Cutibacterium acnes, Staphylococcus aureus, Staphylococcus epidermidis, Staphylococcus hominis, Staphylococcus haemolyticus (coagulase negative staphylococci, CoNS), Streptococcus mitis / oralis, Streptococcus pneumoniae, Streptococcus agalactiae (GBS - Group B Streptococcus), Streptococcus dysagalactiae (GGS - Group G Streptococcus or GCS- Group C Streptococcus), Streptococcus pyogenes (GAS -Group A Streptococcus), Enterococcus faecalis, Enterococcus faecium, Acinetobacter baumanii, Pseudomonas aeruginosa, Stenotrophomonas maltophilia, Escherichia coli, Klebsiella pneumoniae, Serratia marcescens.

20. A data processing system comprising means for carrying out the steps of the method according to any one of claims 1 -19 comprising a non-transitory storage (610) storing: a segmentation module (611 ) for detecting plurality of microorganism cells in a microscopic image, to output a segmented microscopic image; an image patch extraction module (612) for extracting from the segmented microscopic image the patch for each detected pathogenic microorganism cell; a encoding module (613) for encoding each patch into a patch representation vector Un, an aggregation module (614) for aggregating the patch representation vectors Unto a sample representation vector w, a classification module (615) for indicating a species of microorganism present in the microscopic image by classifying the sample representation vector w, and a processor 620 configured for executing instructions of modules (611 -615) stored in the storage 610.

Citation Information

Patent Citations

  • Systems and methods for automatically interpreting images of microbiological samples

    WO2019104003A1

  • A method and a system for identifying polyculture bacteria on microscopic images using deep learning

    EP4276767A1

  • Classifying biological samples using automated image analysis

    US20180211380A1