Hypha detection algorithm based on image analysis

CN118537613APending Publication Date: 2024-08-23URIT MEDICAL ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410414837.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-08
Publication Date
2024-08-23

Smart Images

  • Figure CN118537613A
    Figure CN118537613A
Patent Text Reader

Abstract

The invention relates to the technical field of medical treatment, in particular to a hypha detection algorithm based on image analysis, and the algorithm comprises the following steps: carrying out the preprocessing of a model based on a detection sample, and obtaining an analysis model; performing threshold secondary judgment on the image by using an analysis model to obtain a hypha sample; according to the method, through multi-threshold determination, secondary determination is carried out on hypha pixel determination given by deep learning, so that the detection accuracy is improved; and target detection combined judgment: carrying out combined judgment with spores of target detection, carrying out secondary judgment result selection, effectively shielding wrong hypha recall, and improving the detection accuracy, thereby solving the problem of low accuracy of fungal infection detection in an existing detection method.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of medical technology, and in particular to a hyphae detection algorithm based on image analysis. Background Art

[0002] The leucorrhea visible test is one of the standards of modern medical clinical tests and plays an important role in the diagnosis of gynecological diseases. The core of the test is the leucorrhea visible test analyzer, which consists of a liquid system, a sample injection system, a strip selection system, a detection system, an electronic system, and a software system. The presence of hyphae is a typical sign of whether a sample is infected with fungi, but the accuracy of existing test methods for fungal infection detection is low. Summary of the invention

[0003] The purpose of the present invention is to provide a hyphae detection algorithm based on image analysis, aiming to solve the problem of low accuracy of fungal infection detection in existing inspection methods.

[0004] To achieve the above object, the present invention provides a hyphae detection algorithm based on image analysis, comprising the following steps:

[0005] Preprocess the model based on the detection samples to obtain the analysis model;

[0006] Use the analysis model to perform secondary threshold determination on the image to obtain a mycelium sample;

[0007] The spore detection and determination of the mycelium sample is performed through the analysis model to obtain a detection result.

[0008] The preprocessing of the model based on the detection sample to obtain the analysis model includes:

[0009] Annotate the detection sample to obtain a labeled image;

[0010] Training a model based on the labeled images and the algorithm;

[0011] The trained model is converted to obtain an analysis model.

[0012] The step of using the analysis model to perform a secondary threshold determination on the image to obtain a mycelium sample includes:

[0013] Inputting the image into the analysis model to obtain hyphae pixel values;

[0014] The hyphae pixel values ​​are filtered to obtain a hyphae sample.

[0015] Wherein, the spore detection and determination of the mycelium sample by the analysis model to obtain the detection result includes:

[0016] Filtering the mycelium sample through the analysis model;

[0017] The area of ​​the filtered mycelium sample is determined to obtain a test result.

[0018] Among them, the algorithm includes back propagation and gradient descent.

[0019] A hyphae detection algorithm based on image analysis of the present invention comprises the following steps: preprocessing a model based on a detection sample to obtain an analysis model; using the analysis model to perform a secondary threshold determination on the image to obtain a hyphae sample; performing spore detection determination on the hyphae sample through the analysis model to obtain a detection result. The present invention performs a secondary determination on the hyphae pixel determination given by deep learning through multi-threshold determination, thereby improving the detection accuracy; target detection joint determination: by performing a joint determination with the spore class of the target detection, a secondary determination result selection is performed, and erroneous hyphae recalls are effectively shielded, thereby improving the detection accuracy, thereby solving the problem of low accuracy of fungal infection detection in existing inspection methods. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0021] Figure 1 It is a flow chart of a hyphae detection algorithm based on image analysis provided by the present invention.

[0022] Figure 2 The model is preprocessed based on the detection samples to obtain the analysis model.

[0023] Figure 3 The analysis model is used to perform a secondary threshold determination on the image to obtain a mycelium sample.

[0024] Figure 4 The spore detection and determination is performed on the mycelium sample through the analysis model to obtain the detection result. DETAILED DESCRIPTION

[0025] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limiting the present invention.

[0026] See also Figures 1 to 4 The present invention provides a hyphae detection algorithm based on image analysis, comprising the following steps:

[0027] S1 preprocesses the model based on the detection sample to obtain the analysis model;

[0028] S11 performs image annotation on the detection sample to obtain a labeled image;

[0029] Specifically, a large number of images need to be annotated manually or semi-automatically. The annotation process includes using annotation tools such as LabelImg to manually annotate or semi-automatically extract the hyphae parts in the image. After the annotation is completed, each pixel should be labeled as "hyphae" or "non-hyphae". After the annotation is completed, the labeled images will be used to train the deep learning model.

[0030] S12 trains the model based on the labeled image and the algorithm;

[0031] The algorithms include back propagation and gradient descent.

[0032] Specifically, a semantic segmentation model is used, and the algorithms used for training include back propagation and gradient descent, etc. The goal of the training is to enable the model to accurately classify each pixel in the image as hyphae or non-hyphae.

[0033] S13 converts the trained model to obtain an analysis model.

[0034] Specifically, after training is completed, the model is converted into a format suitable for use in practical applications. This involves optimizing model parameters, quantizing to reduce the size and amount of computation of the model, and converting the model into a format suitable for specific hardware or software platforms. This time, ONNX was used to convert the existing model.

[0035] S2 uses the analysis model to perform a secondary threshold determination on the image to obtain a mycelium sample;

[0036] S21 inputs the image into the analysis model to obtain hyphae pixel values;

[0037] Specifically, when the model is applied for image detection, the model will output the probability value of each pixel belonging to hyphae.

[0038] S22 filters the hyphae pixel values ​​to obtain a hyphae sample.

[0039] Specifically, if the current hyphae probability value is the largest, it will be determined as hyphae. We perform a secondary determination on the pixels determined as hyphae. If the pixel threshold is lower than the secondary given threshold, it will be considered not to be hyphae, thereby reducing the false detection rate.

[0040] S3 performs spore detection and determination on the mycelium sample through the analysis model to obtain a detection result.

[0041] S31 filters the mycelium sample through the analysis model;

[0042] Specifically, in clinical practice, hyphae samples are often accompanied by spores or blastospores. By integrating target detection algorithms (such as YOLO) in the model to recall whether a certain number of spores are present in the sample, falsely detected hyphae samples can be further filtered out. These algorithms can detect spores or blastospores, thereby enhancing the confirmation of hyphae samples.

[0043] S32 determines the area of ​​the filtered mycelium sample to obtain a test result.

[0044] Specifically, hyphae samples usually have a certain area size. In this step, a reasonable hyphae area threshold is set to exclude small-area interference items, such as water marks or dye residues. The location of hyphae is marked on the user interface. You can use a cross to mark the center of the hyphae or use a color different from the visible color in the sample to mark each pixel where the hyphae is located. And provide corresponding test results to indicate whether there is a positive hyphae infection.

[0045] Compared with the prior art, the present invention has the following characteristics:

[0046] Multi-threshold judgment method: Through multi-threshold judgment, the mycelium pixel judgment given by deep learning is re-judged, thereby improving the detection accuracy;

[0047] Target detection joint judgment: Through joint judgment with the target detection spores, secondary judgment result selection is performed to effectively shield erroneous hyphae recall and improve detection accuracy.

[0048] What is disclosed above is only a preferred embodiment of the hyphae detection algorithm based on image analysis of the present invention. Of course, it cannot be used to limit the scope of rights of the present invention. Ordinary technicians in this field can understand that all or part of the processes of the above embodiments and equivalent changes made according to the claims of the present invention still fall within the scope of the invention.

Claims

1. A hyphae detection algorithm based on image analysis, It is characterized in that The following steps are involved: Preprocess the model based on the detection samples to obtain the analysis model; Use the analysis model to perform secondary threshold determination on the image to obtain a mycelium sample; The spore detection and determination of the mycelium sample is performed through the analysis model to obtain a detection result.

2. A hyphae detection algorithm based on image analysis as claimed in claim 1, It is characterized in that The preprocessing of the model based on the detection sample to obtain the analysis model includes: Annotate the detection sample to obtain a labeled image; Training a model based on the labeled images and the algorithm; The trained model is converted to obtain an analysis model.

3. A hyphae detection algorithm based on image analysis as claimed in claim 2, It is characterized in that The using the analysis model to perform a secondary threshold determination on the image to obtain a mycelium sample includes: Inputting the image into the analysis model to obtain hyphae pixel values; The hyphae pixel values ​​are filtered to obtain a hyphae sample.

4. A hyphae detection algorithm based on image analysis as claimed in claim 3, It is characterized in that The step of performing spore detection and determination on the mycelium sample by using the analysis model to obtain a detection result includes: Filtering the mycelium sample through the analysis model; The area of ​​the filtered mycelium sample is determined to obtain a test result.

5. A hyphae detection algorithm based on image analysis as claimed in claim 4, It is characterized in that The algorithms include back propagation and gradient descent.