Microbiological image processing method, neural network training method, device and equipment
By using multiple neural networks to detect microscopic biological images and combining biological visual features, the problem of poor accuracy in microscopic biological image processing in the existing technology is solved, and the accuracy of microscopic biological monitoring is improved.
Patent Information
- Application Number
- CN202211515386.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2022-11-08
- Filing Date
- 2022-11-29
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2042-11-29
AI Technical Summary
Existing microbiological image detection technology fails to fully consider biological characteristics, resulting in poor accuracy in microbiological image processing, which affects the accuracy of microbiological monitoring.
Use multiple pre-trained neural networks to detect microscopic biological images, classify microscopic organisms that meet and do not meet biological visual conditions through different neural networks, and combine the biological visual characteristics of various microscopic organisms to achieve accurate identification of microscopic organisms. detection.
It improves the accuracy of microscopic biological image detection, enhances the accuracy of microscopic biological monitoring, and is suitable for the detection of different types of microscopic organisms.
Smart Images

Figure CN117612159B_ABST
Abstract
Description
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to the Chinese patent application with application number 2022113933181 filed with the Chinese Patent Office on November 8, 2022, and entitled “Microbiological image processing method, neural network training method, device and equipment”, the entire contents of which are incorporated by reference in this application. Technical Field
[0003] The present invention relates to the field of microscopic biological monitoring technology, and in particular to a microscopic biological image processing method, a neural network training method, a device and equipment. Background Art
[0004] Microscopic organisms are widely present in various water bodies and play an important role in the water environment and aquatic ecological environment. With the gradual promotion of microscopic ecological monitoring, traditional inefficient manual monitoring has gradually become incompatible with the development needs of the times. Microscopic organisms are tiny, diverse in form, and invisible to the human eye, so they need to be monitored with the help of auxiliary equipment.
[0005] For the monitoring of microscopic organisms, currently, most of them can use microscopes to perform electronic imaging of microscopic organisms, and use image detection methods based on computer vision technology to detect images of microscopic organisms.
[0006] However, since the visual presentation of cells of microscopic organisms in images is both diverse and correlated, if traditional image classification and detection technology is used to process images of microscopic organisms without considering biological characteristics, the image detection effect may be poor, resulting in poor accuracy in monitoring microscopic organisms in target waters. Summary of the invention
[0007] The purpose of the present invention is to provide a microscopic organism image processing method, a neural network training method, a device and equipment to improve the detection effect of microscopic organism images and improve the monitoring accuracy of microscopic organisms in view of the above-mentioned deficiencies in the prior art.
[0008] To achieve the above purpose, the technical solution adopted by the embodiment of the present invention is as follows:
[0009] In a first aspect, an embodiment of the present invention provides a method for processing microscopic biological images, comprising:
[0010] Acquire microscopic biological images to be processed;
[0011] Using a plurality of pre-trained neural networks, the microscopic organism image is subjected to microscopic organism detection, and microscopic organism detection results corresponding to the plurality of neural networks are obtained; the plurality of neural networks include: a first neural network for a first group of microscopic organisms, and at least one second neural network, and different second neural networks are neural networks for different second groups of microscopic organisms, wherein the first group of microscopic organisms includes: at least one type of first microscopic organisms that meet a plurality of preset biological visual conditions, and the second group of microscopic organisms includes: at least one type of second microscopic organisms that do not meet at least one of the biological visual conditions; the microscopic organism detection results corresponding to the first neural network include: the detection results of the at least one type of first microscopic organisms, and the microscopic organism detection results corresponding to the second neural network include: the detection results of the at least one type of second microscopic organisms;
[0012] According to the microscopic biological detection results corresponding to the multiple neural networks, the target detection results of the microscopic biological image are obtained.
[0013] In a possible implementation, the detection result of each type of first microscopic organisms includes: the detection parameters of the first detection frame of each type of first microscopic organisms, and the detection confidence of each type of first microscopic organisms; the detection result of each type of second microscopic organisms includes: the detection parameters of the second detection frame of each type of second microscopic organisms, and the detection confidence of each type of second microscopic organisms;
[0014] The step of obtaining the target detection result of the microscopic biological image according to the microscopic biological detection results corresponding to the multiple neural networks includes:
[0015] According to the detection parameters of the first detection frame of the at least one type of first microscopic organisms and the detection parameters of the second detection frame of the at least one type of second microscopic organisms, determining at least one group of candidate detection frames whose overlapping areas exceed a preset area threshold and a first target detection frame whose overlapping area does not exceed the preset area threshold from the first detection frame of the at least one type of first microscopic organisms and the second detection frame of the at least one type of second microscopic organisms;
[0016] According to the detection confidence of each group of candidate detection frames and the preset visual endosymbiotic correspondence between microscopic organisms, deduplication of the detection frames that meet the deduplication condition in each group of candidate detection frames is performed to obtain a second target detection frame;
[0017] The target detection result of the microscopic biological image is determined according to the detection parameters of the target detection frame, wherein the target detection frame includes: the first target detection frame and the second target detection frame.
[0018] In another possible implementation, deduplicating detection frames that meet deduplication conditions in each group of candidate detection frames according to the detection confidence of each group of candidate detection frames and the preset visual endosymbiotic correspondence between microscopic organisms to obtain the second target detection frame includes:
[0019] According to the detection confidence of each group of candidate detection frames, deduplication of detection frames in the detection frames of microscopic organisms of the same category in each group of candidate detection frames that meet the first deduplication condition is performed to obtain a detection frame of the first target microscopic organism;
[0020] According to the visual endosymbiotic correspondence, deduplication is performed on the detection frames of the different categories of microscopic organisms in each group of candidate detection frames, and the detection frames that meet the second deduplication condition are deduplicated to obtain the detection frames of the second target microscopic organisms;
[0021] The second target detection frame includes: a detection frame of the first target microscopic organism, and a detection frame of the second target microscopic organism.
[0022] In another possible implementation, determining the target detection result of the microscopic biological image according to the detection parameters of the target detection frame includes:
[0023] Calculating biomass information of the microscopic organism corresponding to the target detection frame according to the detection parameters of the target detection frame and the biometric information of the microscopic organism corresponding to the target detection frame;
[0024] Determining the number of microscopic organisms corresponding to the target detection frames according to the number of the target detection frames;
[0025] The target detection result includes: biomass information of the microscopic organisms corresponding to the target detection frame, and the number of individuals.
[0026] In yet another possible implementation, the method further includes:
[0027] A detection image corresponding to the microscopic organism image is output, wherein the detection image displays the target detection frame and category information of the microscopic organism corresponding to the target detection frame.
[0028] In another possible implementation, the first detection frame is a straight detection frame or an oblique detection frame, and the second detection frame is a straight detection frame or an oblique detection frame;
[0029] The detection parameters of the normal detection frame include: frame size and frame position; the detection parameters of the oblique detection frame include: frame size, frame position and angle.
[0030] In a second aspect, an embodiment of the present invention provides a neural network training method, comprising:
[0031] Acquire multiple sample microscopic biological images;
[0032] Marking a detection frame of a first group of microscopic organisms and category information in each sample microscopic organism image to obtain a first sample image set; the first group of microscopic organisms includes: at least one type of first microscopic organisms that meets multiple preset biological visual conditions;
[0033] Marking at least one detection frame of a second group of microscopic organisms and category information in each sample microscopic organism image to obtain at least one second sample image set; the second group of microscopic organisms includes: at least one type of second microscopic organisms that does not meet at least one of the biological visual conditions;
[0034] Using the first sample image set to perform model training to obtain a first neural network;
[0035] The at least one second sample image set is used to perform model training respectively to obtain at least one second neural network.
[0036] In a third aspect, the present application also provides a microscopic biological image processing device, comprising:
[0037] A first acquisition module, used for acquiring a microscopic biological image to be processed;
[0038] A detection module, used to use a plurality of pre-trained neural networks to perform microscopic biological detection on the microscopic biological image, and obtain microscopic biological detection results corresponding to the plurality of neural networks; the plurality of neural networks include: a first neural network for a first group of microscopic biologicals, and at least one second neural network, and different second neural networks are neural networks for different second groups of microscopic biologicals, wherein the first group of microscopic biologicals includes: at least one type of first microscopic biologicals that meet a plurality of preset biological visual conditions, and the second group of microscopic biologicals includes: at least one type of second microscopic biologicals that do not meet at least one of the biological visual conditions; the microscopic biological detection results corresponding to the first neural network include: the detection results of the at least one type of first microscopic biologicals, and the microscopic biological detection results corresponding to the second neural network include: the detection results of the at least one type of second microscopic biologicals;
[0039] The determination module is used to obtain the target detection result of the microscopic biological image according to the microscopic biological detection results corresponding to the multiple neural networks.
[0040] In a fourth aspect, the present application also provides a neural network training device, including:
[0041] A second acquisition module is used to acquire multiple sample microscopic biological images;
[0042] A labeling module, used to label a detection frame and category information of a first group of microscopic organisms in each sample microscopic organism image to obtain a first sample image set; the first group of microscopic organisms includes: at least one type of first microscopic organisms that meet multiple preset biological visual conditions; label at least one detection frame and category information of a second group of microscopic organisms in each sample microscopic organism image to obtain at least one second sample image set; the second group of microscopic organisms includes: at least one type of second microscopic organisms that do not meet at least one of the biological visual conditions;
[0043] The training module is used to use the first sample image set to perform model training to obtain a first neural network; and use the at least one second sample image set to perform model training respectively to obtain at least one second neural network.
[0044] In a fifth aspect, an embodiment of the present application also provides a computer device, comprising: a memory and a processor, wherein the memory stores a computer program executable by the processor, and when the processor executes the computer program, it implements any one of the microscopic biological image processing methods provided in the first aspect or the neural network training method provided in the second aspect.
[0045] The beneficial effects of this application are:
[0046] In the microscopic biological image processing method, neural network training method, device and equipment provided in the present application, multiple pre-trained neural networks can be used to perform microscopic biological detection on the microscopic biological images to be processed, and obtain microscopic biological detection results corresponding to the multiple neural networks. Since the first group of microscopic organisms targeted by the first neural network in the multiple neural networks are microscopic organisms that meet multiple biological visual conditions, and each second neural network targets the second group of microscopic organisms that do not meet at least one biological visual condition, the biological visual conditions satisfied by the microscopic organisms targeted by different neural networks are different. Therefore, when multiple neural networks are used to detect microscopic organisms in microscopic biological images, the biological visual characteristics of the microscopic organisms targeted by different neural networks are actually combined to achieve accurate detection of each group of microscopic organisms, so that the accuracy of microscopic biological monitoring of microscopic biological images is higher. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0048] Figure 1A flowchart of a neural network training method provided in an embodiment of the present application;
[0049] Figure 2 A schematic diagram of a process for processing microscopic biological images provided in an embodiment of the present application;
[0050] Figure 3 A flow chart of a method for deduplication and statistics in a microbiological image processing method provided in an embodiment of the present application;
[0051] Figure 4 A flow chart of a method for deduplication based on detection confidence and visual endosymbiotic relationship in a microbial image processing method provided in an embodiment of the present application;
[0052] Figure 5 A flow chart of a method for performing microscopic biological statistics in a microscopic biological image processing method provided in an embodiment of the present application;
[0053] Figure 6 A schematic diagram of a microscopic biological image processing device provided in an embodiment of the present application;
[0054] Figure 7 A schematic diagram of a neural network training device provided in an embodiment of the present application;
[0055] Figure 8 A schematic diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0056] In order to make the purpose, 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 in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments.
[0057] It should be noted that the terms "including" and "having" in various parts of the embodiments of the present application and the accompanying drawings, as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or are inherent to these processes, methods, products or devices.
[0058] The method flow charts involved in the following embodiments of the present application are only exemplary and do not necessarily include all the contents and steps, nor do they have to be executed in the order described. For example, some steps can be decomposed, and these steps can be combined or partially combined. Therefore, the actual execution order can be changed according to the actual situation.
[0059] The functional modules in the block diagrams designed in the following embodiments of the present application are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software, or in one or more physical modules or integrated circuits, or in different networks and / or processors and / or microcontrollers.
[0060] In order to better understand the solutions provided by the following embodiments of the present application, the technical terms involved in the following embodiments of the present application are first explained here.
[0061] Microscopic organisms are very small and cannot be seen or seen clearly by the naked eye. They need the help of a microscope to be observed. They include, but are not limited to, phytoplankton, protozoa, copepods, cladocerans, rotifers, etc.
[0062] Floating algae: Common phytoplankton include but are not limited to: Chromococcus, planifibrous algae, bundle ball, microcystis, oscillator, fascicle, anabaena, pseudoanabaena, root algae, sheath algae, cryptoalgae, naked dinoflagellates, polydinoflagellates, horn dinoflagellates, fish scale algae, yellow group algae, cone cysts, yellow filament algae, yellow tube algae, knee mouth algae, straight chain algae, small ring algae, crown disk algae, eyebrow algae, star rod algae, needle rod algae, brittle rod algae, fan-shaped algae, heteropolar, isophyllum, short seam algae, ovate algae, curved shell algae, diaphragm algae, boat-shaped algae, feather algae , cloth-patterned algae, double-walled algae, bridge-curved algae, rhombus-shaped algae, rhombus-shaped algae, rod-shaped algae, window-patterned algae, wave-edge algae, double-rhombus-shaped algae, naked algae, flat naked algae, Chlamydomonas, Chlamydomonas, disk algae, real ball algae, empty ball algae, miscellaneous ball algae, Volvox, tetrasporic algae, arch-shaped algae, multi-awn algae, top-thorn algae, quadrangular algae, hoof-shaped algae, crescent algae, fibrous algae, egg cyst algae, glue-net algae, disk star algae, scenedesmus, cruciform algae, micro algae, empty star algae, filamentous algae, turning plate algae, water cotton algae, sheath algae, crescent algae, horn star drum algae, drum algae, etc., algae plants.
[0063] Protozoa: Common protozoa include but are not limited to: amoeba, shell worm, sand shell worm, scale shell worm, sun worm, photococcus, cnidaria, plate worm, tail caterpillar, naked mouth worm, swan long-nosed worm, knife-mouth worm, long-necked worm, pseudo-necked caterpillar, blunt wandering worm, agile crack worm, wandering crack worm, oblique leaf worm, golden basket ring worm, kidney-shaped bean worm, curved bean worm, pear-shaped tetrahymena, flash blink worm, large-mouthed blink worm, paramecium, tetrahymena, well-off fiber worm, pearl reflection caterpillar, light sail mouth worm, crown sail mouth worm, membrane band worm, bell worm, single shrink worm, polycondense worm, cover worm, spiral mouth worm, trumpet worm, springtail, quick swim worm, thief worm, tube shell worm, bell-like shell worm, springtail, green whole line worm, tail thin tail worm, sharp caterpillar, spiny tail worm, Euplotes, shield fiber worm, spiny tail worm, sharp caterpillar, Euplotes, etc.
[0064] Endosymbiosis: The theory of endosymbiosis in biology holds that the organelles in eukaryotic cells, such as plastids (chromatosomes) and mitochondria, originate from prokaryotic cells that coexist with them. The latter are engulfed by the former and gradually evolve into the current organelles. For example, the ancestors of a certain green algae turned a certain cyanobacteria into their own plastids, and other microscopic organisms turned certain green algae or the ancestors of green algae into their own plastids. There are also third and fourth levels of symbiotic evolution phenomena similar to nesting dolls.
[0065] Visual endosymbiosis: In the field of computer vision, the endosymbiotic relationship can be described as the similarity of the image features of a certain area in the image of cell A and the image of cell B. In the embodiments of this application, this similarity in computer vision is called "visual endosymbiosis". Cell A is called the "visual symbiont" and cell B is called the "visual host". For example, the chromatophores contained in Chlamydomonas come from cyanobacteria, so this chromatophore and the highly similar cyanobacterial cell such as Microcystis can be classified into one category. Chlamydomonas can be called the "visual host" and Microcystis can be called the "visual symbiont".
[0066] Biological visual conditions: refers to the conditions that are visually related to microscopic organisms. For example, conditions that describe the visual differences of microscopic organisms, such as the similarity of the aspect ratio of the detection frame of microscopic organisms and the visual endosymbiosis conditions of microscopic organisms. Biological visual conditions can express the visual differences of organisms, and may also be replaced by other description methods, which are not limited in the embodiments of the present application.
[0067] Since the visual presentation of cells of different microscopic organisms on computer images may have a certain degree of correlation, such as visual endosymbiosis, or may have large visual differences, a neural network is used to detect all types of microscopic organisms. There may be detection errors in the detection of some microscopic organisms, resulting in poor accuracy in monitoring microscopic organisms in a certain water area, making it difficult to meet corresponding monitoring needs.
[0068] In order to ensure the accuracy of microscopic organism monitoring, the microscopic organism image processing method provided in the embodiment of the present application proposes the use of multiple neural networks to detect the same microscopic organism image. Since different neural networks correspond to different biological visual features, the detection accuracy of various types of microscopic organisms can be effectively guaranteed.
[0069] Before describing the microscopic biological image processing method provided in the embodiment of the present application, the neural network training method provided in the embodiment of the present application is first described in conjunction with the accompanying drawings to clearly explain the multiple neural networks provided in the embodiment of the present application. The multiple neural networks can be called a neural network cluster. Figure 1 A flowchart of a neural network training method provided in an embodiment of the present application is shown in FIG. Figure 1As shown, the neural network training method provided in this embodiment may include:
[0070] S101. Acquire multiple sample microscopic biological images.
[0071] S102, marking a detection frame and category information of a first group of microscopic organisms in each sample microscopic organism image to obtain a first sample image set, wherein the first group of microscopic organisms includes: at least one type of first microscopic organisms that meets multiple preset biological visual conditions.
[0072] S103, marking at least one detection frame of a second group of microscopic organisms and category information in each sample microscopic organism image to obtain at least one second sample image set, wherein the second group of microscopic organisms includes: at least one type of second microscopic organisms that does not meet at least one of the biological visual conditions.
[0073] Before labeling the sample microscopic organism image, the microscopic organisms can be grouped according to the visual features of each type of microscopic organism to obtain multiple groups of microscopic organisms. In a possible implementation, for example, it can be determined whether each type of microscopic organism meets multiple biological visual conditions according to the visual features of each type of microscopic organism, and according to the determination result, at least one type of first microscopic organisms that meet multiple biological visual conditions are divided into a first group of microscopic organisms; at least one type of second microscopic organisms that do not meet at least one biological visual condition are divided into a second group of microscopic organisms.
[0074] The plurality of biological visual conditions may include, for example:
[0075] At least two biological visual conditions related to vision, such as similarity conditions of the aspect ratio of the detection frame of microscopic organisms and visual endosymbiosis conditions of microscopic organisms.
[0076] The aspect ratio r of the detection frame of microscopic organisms can be calculated according to the following formula:
[0077]
[0078] Among them, l 1 、s 1 are the long and short sides of the detection box of target 1, respectively, l 2 、s 2 They are the long and short sides of the detection box of target 2 respectively.
[0079] In a possible example, if the detection frame aspect ratio is less than a preset aspect ratio threshold value such as 3, it can be determined that the microscopic organisms meet the detection frame aspect ratio similarity condition; conversely, if the detection frame aspect ratio is greater than or equal to the preset aspect ratio threshold value such as 3, it can be determined that the detection frame aspect ratio similarity condition is not met between the microscopic organisms. If there is a visual symbiotic relationship, it is determined that the microscopic organisms do not meet the visual symbiotic condition; conversely, if there is no visual symbiotic relationship, it is determined that the microscopic organisms meet the visual symbiotic condition.
[0080] If the multiple biological visual conditions include: visual endosymbiotic conditions and other visual conditions, in practical applications, it is possible to first determine whether there is a visual endosymbiotic relationship between various types of microscopic organisms. If the visual endosymbiotic relationship is not satisfied, then continue to determine whether the microscopic organisms that do not have a visual endosymbiotic relationship meet other visual conditions. If the other visual conditions are satisfied, they are divided into a group of microscopic organisms to train a neural network to perform detection and classification tasks on the group of microscopic organisms; if the other visual conditions are not satisfied, they can be divided into different groups of microscopic organisms to train different neural networks to perform detection and classification tasks on different groups of microscopic organisms. For each microscopic organism that has a visual endosymbiotic relationship, it can be divided into multiple groups of microscopic organisms to train multiple neural networks to perform detection and classification tasks on multiple groups of microscopic organisms. Among them, other visual conditions can be, for example, at least one visual condition such as the similarity of the aspect ratio of the detection frame as described above, and this embodiment is not limited to this.
[0081] For the following types of phytoplankton: Colonies of the genus Parasphaeria, colonies of the genus Coelenteroides, individuals of the genus Microcystis, and individuals of the genus Acidisphaeria, the grouping rules combined with biological visual conditions are explained.
[0082] Groups of the genera of Ascophyllum and Coelenteroglobium:
[0083] Both the genus Aspergillus and the genus Coelenteroides are multicellular groups, and their shapes in the image may be elliptical. Therefore, the genus Aspergillus and the genus Coelenteroides meet the condition of similar aspect ratio of the detection frame, and there is no visual endosymbiotic relationship between the two types of algae cells, that is, they meet the visual endosymbiotic condition. Therefore, the genus Aspergillus and the genus Coelenteroides can be regarded as the same group of microorganisms, and a neural network can be trained to distinguish their differences using the same trained neural network.
[0084] Individual cells of the genus Microcystis and colonies of the genus Capsella:
[0085] There is a "visual endosymbiotic" relationship between individual cells of the genus Microcystis and cells of the genus Fasciococcus. In microscopic images, individual cells in the genus Fasciococcus colony and individual cells of the genus Microcystis are highly similar in appearance. Therefore, they do not meet the visual endosymbiotic conditions for each other. Therefore, the genus Fasciococcus colony and individual cells of the genus Microcystis need to be divided into different microscopic biological groups respectively to train two different neural networks, and the corresponding algae cell detection and classification tasks should be performed in the two neural network models respectively.
[0086] Individuals of the genera Microcystis and Acidisphaera:
[0087] The aspect ratios of the detection frames of individual cells of the genus Microcystis and the genus Acanthopanax are very different, and do not meet the similarity condition of the aspect ratio of the detection frame. Therefore, it is necessary to divide the algae microorganisms of these two genera into different microorganism groups to train different neural networks respectively, so as to use different neural network models to perform detection and classification tasks respectively.
[0088] For each group of microscopic organisms after grouping, a separate neural network needs to be trained to realize image detection of the group of microscopic organisms. For each group of microscopic organisms after grouping, a preset annotation software can be used to annotate the detection frames and categories of each type of microscopic organisms in each group of microscopic organisms in each sample microscopic organism image. The detection frame of each type of microscopic organism can be the minimum circumscribed rectangle of each type of microscopic organism, which can be a positive detection frame or an oblique detection frame. The difference between the positive detection frame and the oblique detection frame is that for the positive detection frame, its detection parameters include: frame size, frame position, etc., but for the oblique detection frame, its detection parameters include not only frame size and frame position, but also angle. Among them, whether it is a straight detection frame or an oblique detection frame, its frame size may, for example, include: frame long side parameters and frame short side parameters, the frame position may be the coordinates of a preset reference position in the frame, the preset reference position may, for example, be the center point of the frame, or the coordinates of a preset vertex in the frame such as the coordinates of the upper right vertex or the upper left vertex of the frame, and may also include: the coordinates of multiple vertices in the frame.
[0089] If the detection frame is an oblique detection frame, a detection frame and category information for each type of microscopic organism can be expressed by a variable group, which can be, for example: (L: length of the long side of the frame, S: length of the short side of the frame, Cx: x-coordinate of the center point, Cy: y-coordinate of the center point, Theta: angle of the frame, Class: category information). The angle of the frame is the angle between the long side of the frame and the horizontal direction of the image, or the angle between the short side of the frame and the vertical direction of the image. The category information can be the classification name and index number of the corresponding microscopic organism.
[0090] Regardless of whether it is for the first group of microscopic organisms after grouping or the at least one second group of microscopic organisms, the annotations on each sample microscopic organism image are similar to the above, and will not be repeated here. In this way, for the multiple groups of microscopic organisms after grouping, multiple sample image sets can be obtained by executing the above S102 and S103, including the first sample image set and the at least one second sample image set.
[0091] It should be noted that, according to the current computer performance, it can be expanded to dozens of neural networks to perform detection and classification tasks at the same time. As the computer performance expands, the upper limit of the number of neural networks can also increase. Therefore, the embodiment of the present application does not limit the number of second neural networks. Since the number of second neural networks depends on the number of groups of the second group of microscopic organisms after grouping, when grouping microscopic organisms, the biological visual conditions of the number matching can be set in combination with the current computer performance and the biological characteristics of the microscopic organisms to be classified.
[0092] S104: Use the first sample image set to perform model training to obtain a first neural network.
[0093] On the basis of obtaining the first sample image set by adopting the above S102, a preset classification network may be trained according to the first sample image set to obtain a first neural network for detecting and classifying various types of microscopic organisms in the first group of microscopic organisms.
[0094] S105: Use at least one second sample image set to perform model training respectively to obtain at least one second neural network.
[0095] On the basis of obtaining at least one second sample image set by adopting the above S103, a preset classification network can be model trained according to each second sample image set to obtain a second neural network for detecting and classifying various types of microscopic organisms in a second group of microscopic organisms.
[0096] The neural network training method provided in the embodiment of the present application can obtain multiple sample image sets by marking the detection frames and category information of different groups of microscopic organisms on each sample microscopic organism image, namely, a first sample image set and at least one second sample image set, and then perform model training according to each sample image set to obtain a first neural network and at least one second neural network, so that multiple neural networks can be used to perform model training simultaneously for each microscopic organism image. Since different neural networks meet different biological visual conditions, different neural networks can be used to detect different groups of microscopic organisms. In this way, the biological visual characteristics of the microscopic organisms are actually combined to achieve accurate detection of each group of microscopic organisms, thereby making the accuracy of microscopic organism monitoring for microscopic organism images higher.
[0097] The microscopic biological image processing method provided by the present application is illustrated by multiple examples in combination with the accompanying drawings as follows. The method can be executed by a computer device pre-integrated with a computer program having the microscopic biological image processing method, and the computer program may include: multiple neural networks, and the multiple neural networks may include a first neural network and at least one second neural network trained using the above embodiment. Figure 2 A schematic diagram of a process for processing microscopic biological images provided in an embodiment of the present application, Figure 2 As shown, the method may include:
[0098] S201, obtaining a microscopic biological image to be processed.
[0099] In a possible implementation, a microscopic biological image of a preset sampled water body can be obtained from a microscope camera, or the microscopic biological image can be obtained from a preset image storage area corresponding to the microscope camera. The microscopic biological image may include: at least one microscopic biological image, each microscopic biological image may correspond to an image collected at a focal plane of the preset sampled water body.
[0100] S202, using multiple pre-trained neural networks to perform microscopic biological detection on the microscopic biological image, and obtain microscopic biological detection results corresponding to the multiple neural networks.
[0101] The plurality of neural networks include: a first neural network for a first group of microscopic organisms, and at least one second neural network. Each second neural network is a neural network for a second group of microscopic organisms, and different second neural networks are neural networks for different second groups of microscopic organisms. The first group of microscopic organisms includes: at least one type of first microscopic organisms that meet a plurality of preset biological visual conditions, and the second group of microscopic organisms targeted by each second neural network includes: at least one type of second microscopic organisms that do not meet at least one biological visual condition.
[0102] The microscopic biological detection results corresponding to each neural network are: the detection results obtained by each neural network performing microscopic biological detection on the microscopic biological image, wherein the microscopic biological detection results corresponding to the first neural network include: the detection results of at least one type of first microscopic organisms. The microscopic biological detection results corresponding to the second neural network include: the detection results of at least one type of second microscopic organisms.
[0103] In a possible implementation, the microscopic biological image can be input into multiple neural networks, so that the microscopic biological image can be processed by multiple neural networks at the same time, thereby obtaining the detection results of the microscopic biological image by multiple neural networks. For example, if the acquired microscopic biological image is one, the microscopic biological image can be simultaneously input into multiple neural networks, so that the same microscopic biological image can be processed by multiple neural networks. If the acquired microscopic biological image is a plurality of microscopic biological images of a preset sampled water body under multiple focal planes, the plurality of microscopic biological images can be simultaneously input into multiple neural networks respectively, so that the plurality of microscopic biological images can be processed simultaneously by multiple neural networks. It should be noted that in actual applications, the number of microscopic biological images and the number of second neural networks may be different. When inputting images, as long as each neural network has an input image, and each acquired microscopic biological image has a corresponding neural network for processing, the number of neural networks for processing each microscopic biological image is not limited. In practical applications, the microscopic biological image to be processed can be directly obtained from the microscope camera, or the microscopic biological image pre-collected by the microscope camera can be obtained from a preset data storage area, wherein the data storage area can be, for example, a preset data buffer.
[0104] S203. Obtain target detection results of microscopic biological images according to the microscopic biological detection results corresponding to the multiple neural networks.
[0105] When microscopic organism detection results corresponding to multiple neural networks are obtained, the detection results of at least one type of first microscopic organisms and the detection results of at least one type of second microscopic organisms can be deduplicated, and statistics can be performed based on the deduplicated microscopic organism detection results to obtain the target detection result of the microscopic organism image as the final detection result of the microscopic organism image.
[0106] The microscopic biological image processing method provided in the embodiment of the present application can use multiple pre-trained neural networks to perform microscopic biological detection on the microscopic biological image to be processed, and obtain microscopic biological detection results corresponding to the multiple neural networks. Since the first group of microscopic organisms targeted by the first neural network in the multiple neural networks are microscopic organisms that meet multiple biological visual conditions, and each second neural network targets the second group of microscopic organisms that do not meet at least one biological visual condition, therefore, the biological visual conditions satisfied by the microscopic organisms targeted by different neural networks are different. Therefore, when multiple neural networks are used to detect microscopic organisms in microscopic biological images, the biological visual characteristics of the microscopic organisms targeted by different neural networks are actually combined to achieve accurate detection of each group of microscopic organisms, so that the accuracy of microscopic biological monitoring of microscopic biological images is higher.
[0107] In some possible implementations, based on the microscopic organism image processing method provided in the above embodiment, the embodiment of the present application also provides possible implementations of deduplication and statistics of microscopic organism monitoring results corresponding to multiple neural networks through some examples. The detection results of each type of microscopic organisms output by each neural network include: the detection parameters of the detection frame of each type of microscopic organisms and the corresponding detection confidence, that is, the detection results of each type of first microscopic organisms output by the first neural network include: the detection parameters of the first detection frame of each type of first microscopic organisms, and the detection confidence of each type of first microscopic organisms; the detection results of each type of second microscopic organisms output by the second neural network include: the detection parameters of the second detection frame of each type of second microscopic organisms, and the detection confidence of each type of second microscopic organisms.
[0108] Figure 3 A flowchart of a method for deduplication and statistics in a microbiological image processing method provided in an embodiment of the present application, such as Figure 3 As shown, in S203 shown above, according to the microscopic biological detection results corresponding to the multiple neural networks, the target detection results of the microscopic biological image can include:
[0109] S301. According to the detection parameters of the first detection frame of at least one type of first microscopic organisms and the detection parameters of the second detection frame of at least one type of second microscopic organisms, determine at least one group of candidate detection frames whose overlapping areas exceed a preset area threshold and a first target detection frame whose overlapping areas do not exceed the preset area threshold from the first detection frame of at least one type of first microscopic organisms and the second detection frame of at least one type of second microscopic organisms.
[0110] In a possible implementation, multiple detection frames output by multiple neural networks, i.e., a first detection frame of at least one type of first microscopic organisms output by a first neural network and a second detection frame of all second types of second microscopic organisms output by all second neural networks, can be used as a set of detection frames to be deduplicated corresponding to the microscopic organism image.
[0111] In a possible implementation, the overlapping area of every two detection frames can be calculated based on the detection parameters of every two detection frames, that is, the overlapping area of any two detection frames can be calculated based on the detection parameters of any two detection frames in the first detection frame of at least one type of first microscopic organisms and the second detection frame of at least one type of second microscopic organisms. Then, based on the overlapping area of any two detection frames in the set of detection frames to be deduplicated, at least one group of candidate detection frames whose overlapping area exceeds a preset area threshold is determined from the set of detection frames to be deduplicated. When at least one group of candidate detection frames is determined from the set of detection frames to be deduplicated, the remaining detection frames in the detection frames to be deduplicated are: the first target detection frames whose overlapping area does not exceed the preset area threshold. The preset area threshold can be, for example, any value in the range of 0.3-0.6. Each group of candidate detection frames whose overlapping area exceeds the preset area threshold means that the overlapping area of each detection frame in each group of candidate detection frames exceeds the preset area threshold.
[0112] It should be noted that if the detection frames in the set of detection frames to be deduplicated are all positive detection frames, the overlapping area of any two detection frames can be calculated based on the frame size and frame position and other information in the detection parameters of any two detection frames; if the detection frames to be deduplicated are all oblique detection frames, the overlapping area of any two detection frames can be calculated based on the frame size, frame position, frame angle and other information in the detection parameters of any two detection frames.
[0113] S302, according to the detection confidence of each group of candidate detection frames and the preset visual endosymbiotic correspondence between microscopic organisms, deduplication of the detection frames that meet the deduplication condition in each group of candidate detection frames to obtain a second target detection frame.
[0114] Before executing S302, a visual endosymbiotic correspondence relationship between microscopic organisms may be established in advance. The visual endosymbiotic correspondence relationship may be a correspondence relationship table between visual hosts and visual symbionts, which may store: at least one set of correspondence relationships between visual hosts and visual symbionts. For example, at least one set of correspondence relationships between visual hosts and visual symbionts may include: a correspondence relationship between a group of Microcystis and an individual of the genus Microcystis.
[0115] In actual application, the microorganism categories corresponding to at least two detection frames in each group of candidate detection frames can be searched in the visual endosymbiotic correspondence to determine whether the microorganism categories corresponding to each group of candidate detection frames have a visual endosymbiotic relationship, and then the detection frames that meet the deduplication conditions of each group of candidate detection frames are deduplicated according to the determination result of the visual endosymbiotic relationship and the detection confidence of each group of candidate detection frames to obtain the second target detection frame. Among them, if the microorganism categories corresponding to at least two detection frames can be found in the visual endosymbiotic correspondence, it can be determined that the microorganism categories corresponding to each group of candidate detection frames have a visual endosymbiotic relationship, and according to the information column of the microorganism categories corresponding to each group of candidate detection frames in the visual endosymbiotic correspondence table, the visual host and visual symbiont in the microorganism category corresponding to each group of candidate detection frames are determined.
[0116] In a possible implementation, the first detection frame is a straight detection frame or an oblique detection frame, and the second detection frame can also be a straight detection frame or an oblique detection frame. The detection parameters of the straight detection frame include: frame size; the detection parameters of the oblique detection frame include: frame size and angle.
[0117] For example, if both the first detection frame and the second detection frame are oblique detection frames, for the second target detection frame obtained by S302, the detection frames in the second target detection frame that meet the deduplication conditions can be further deduplicated based on the angle of the second target detection frame.
[0118] Since the oblique detection frame can provide more accurate microscopic organism detection information, in the case of an oblique detection frame, further deduplication can be performed in combination with the angle, so as to achieve accurate deduplication of the detection frame and avoid the problem of two microscopic organisms with angle differences being mistakenly removed as a single microscopic organism, resulting in poor detection results.
[0119] S303. Determine the target detection result of the microscopic biological image according to the detection parameters of the target detection frame, wherein the target detection frame includes: a first target detection frame and a second target detection frame.
[0120] When performing the above-mentioned deduplication of the detection frames, statistics are performed based on the target detection frames obtained after deduplication, that is, the first target detection frame and the second target detection frame, to obtain the target detection result of the microscopic biological image.
[0121] The method provided in the present embodiment can use the detection parameters of the detection frames to divide the detection frames in the detection frame set to be deduplicated into two groups, namely, at least one group of candidate detection frames whose overlapping area exceeds a preset threshold, and a first target detection frame whose overlapping area does not exceed the preset area threshold. For the at least one group of candidate detection frames whose overlapping area exceeds the preset area threshold, the detection frames in each group of candidate detection frames that meet the deduplication conditions can be further deduplicated according to the detection confidence of each group of candidate detection frames and the visual endosymbiotic correspondence relationship to obtain the second target detection frame. This can make the deduplication of the detection frames more accurate, effectively avoid the detection frames of the microscopic organism category with visual endosymbiotic relationship from being mistakenly removed, and improve the accuracy of microscopic organism monitoring.
[0122] In some possible implementations, based on the microscopic biological image processing method provided in the above-mentioned embodiment, the embodiment of the present application also provides a possible implementation method of deduplication by combining detection confidence and visual endosymbiotic correspondence through some examples. Figure 4 A flow chart of a method for deduplication based on detection confidence and visual endosymbiotic relationship in a microbial image processing method provided in an embodiment of the present application, such as Figure 4 As shown, S302 shown above removes duplicate detection frames that meet the deduplication condition in each group of candidate detection frames according to the detection confidence of each group of candidate detection frames and the preset visual endosymbiotic correspondence between microscopic organisms, and the second target detection frame obtained may include:
[0123] S401. According to the detection confidence of each group of candidate detection frames, detection frames of the same category of microscopic organisms in each group of candidate detection frames that meet a first deduplication condition are deduplicated to obtain a detection frame of a first target microscopic organism.
[0124] The first deduplication condition may be a deduplication condition related to detection confidence, such as a detection confidence less than a preset confidence threshold. In a possible example, for detection frames of the same category of target microscopic organisms in each group of candidate detection frames, the detection confidence of the detection frames may be used to deduplication the detection frames whose detection confidence is less than the preset confidence threshold, while retaining the detection frames whose detection confidence is greater than or equal to the preset confidence threshold as the detection frames of the first target microscopic organisms.
[0125] S402, according to the visual endosymbiotic correspondence, deduplication is performed on the detection frames of the different categories of microscopic organisms in each group of candidate detection frames that meet the second deduplication condition to obtain the detection frame of the second target microscopic organism.
[0126] The second target detection frame includes: a detection frame of the first target microscopic organism, and a detection frame of the second target microscopic organism.
[0127] The second deduplication condition may be whether there is a visual endosymbiotic correspondence relationship, and a condition related to the detection confidence. In a possible example, for the detection frames of different categories of microorganisms in each group of candidate detection frames, it is necessary to combine the visual endosymbiotic correspondence relationship to determine whether there is a visual endosymbiotic relationship between microorganisms of different categories. If there is a visual endosymbiotic relationship, it can be determined whether to retain the detection frame corresponding to the microorganism of the visual host or the detection frame corresponding to the microorganism of the visual symbiont according to the detection confidence of the microorganisms as visual hosts and the microorganisms as visual symbionts in different categories of microorganisms.
[0128] For example, if there is a visual endosymbiotic relationship, and the detection confidence of the microorganism as the visual host is greater than or equal to the preset confidence threshold, the detection frame corresponding to the microorganism of the visual symbiont and the detection frame corresponding to the microorganism of the visual host in each group of candidate detection frames can be distinguished to obtain the detection frame of the first target microorganism. Correspondingly, if there is a visual endosymbiotic relationship, but the detection confidence of the microorganism as the visual host is less than the preset confidence threshold, the detection frame corresponding to the microorganism of the visual host in each group of candidate detection frames can be removed, and the detection frame corresponding to the microorganism of the visual host can be retained to obtain the detection frame of the first target microorganism. It should be noted that in possible application scenarios, for microscopic organisms that have a visual endosymbiotic relationship and serve as visual hosts, the detection confidence is greater than or equal to a preset confidence threshold. In this case, the first target microscopic organism includes both microscopic organisms that serve as visual hosts and microscopic organisms that serve as visual symbionts. However, for the detection frame of the first target microscopic organism, depending on the actual application situation, when counting biological information, it may be necessary to perform information statistics based on the detection frame of the visual host, or it may be necessary to perform information statistics based on the detection frame of the visual symbiont, or it may be necessary to perform information statistics based on the detection frame of the visual host and the detection frame of the visual symbiont. The embodiments of the present application are not limited here.
[0129] However, if there is no visual endosymbiotic relationship between the detection frames of different categories of microscopic organisms in each group of candidate detection frames, the detection frames with detection confidence less than a preset confidence threshold can be deduplicated according to the detection confidence of each group of candidate detection frames, while the detection frames with detection confidence greater than or equal to the preset confidence threshold are retained as the detection frames of the second target microscopic organisms.
[0130] The method provided in this embodiment can use the detection confidence of the detection frames of the first target microscopic organisms of the same category in each group of candidate detection frames to deduplicate the detection frames that meet the first deduplication condition; and can deduplicate the detection frames of different categories of microscopic organisms that meet the second deduplication condition based on the visual endosymbiotic correspondence relationship, so that the deduplication of the detection frames can be more accurate, effectively avoiding the detection frames of the microscopic organism categories with visual endosymbiotic relationships from being mistakenly removed, thereby improving the accuracy of microscopic organism monitoring.
[0131] In some possible implementations, based on the microscopic biological image processing method provided in the above-mentioned embodiment, the embodiment of the present application also provides possible implementation methods for performing microscopic biological statistics on the deduplicated detection frames through some examples. Figure 5 A flow chart of a method for performing microscopic biological statistics in a microscopic biological image processing method provided in an embodiment of the present application, such as Figure 5 As shown, as shown in S303 above, determining the target detection result of the microscopic biological image according to the detection parameters of the target detection frame may include:
[0132] S501, calculating the biomass information of the microscopic organisms corresponding to the target detection frame according to the detection parameters of the target detection frame and the biological characteristic information of the microscopic organisms corresponding to the target detection frame.
[0133] In possible implementation applications, the volume of the microscopic organism corresponding to the target detection frame can be obtained based on the detection parameters of the target detection frame retained after deduplication and the preset three-dimensional model of the microscopic organism corresponding to the target detection frame. Then, the biomass information of the microscopic organism corresponding to the target detection frame can be calculated by combining the biological characteristic information of the microscopic organism corresponding to the target detection frame, such as biological density and other information.
[0134] S502. Determine the number of microscopic organisms corresponding to the target detection frames according to the number of target detection frames.
[0135] The target detection results include: the biomass information of the microscopic organisms corresponding to the target detection frame, and the number of individuals.
[0136] In a possible implementation example, the number of individual microscopic organisms corresponding to the target detection frame can be calculated based on the biological characteristics of the target detection frame and the number of target detection frames, combined with the existence of visual endosymbiotic relationships in the target detection frame.
[0137] Based on any of the above embodiments, the method may further include:
[0138] S503: Output a detection image corresponding to the microscopic organism image, wherein the detection image displays a target detection frame and category information of the microscopic organism corresponding to the target detection frame.
[0139] When the set of deduplicated detection frames is deduplicated to obtain the target detection frame, information of the target detection frame can be collected to determine detection parameters of the target detection frame and category information of the corresponding microscopic organisms, and based on the detection parameters of the target detection frame and the category information of the corresponding microscopic organisms, the target detection frame can be marked on the microscopic organism image to obtain a detection image, so that the target detection frame and the category information of the microscopic organism corresponding to the target detection frame are displayed in the detection image.
[0140] It should be noted that, in actual applications, counting biomass information, as well as the number of individuals and outputting detection images can be performed simultaneously or sequentially. The accompanying drawings are only a possible example, and the embodiments of the present application are not limited to this.
[0141] The method provided in this embodiment can calculate the biomass information of the microscopic organisms corresponding to the target detection frame according to the detection parameters of the target detection frame and the biometric information when the target detection frame is deduplicated to obtain the target detection frame, and can also determine the number of individual microscopic organisms corresponding to the target detection frame according to the number of target detection frames, thereby realizing accurate statistics of the biomass information and the number of microscopic organisms. At the same time, by outputting and displaying the detection image corresponding to the microscopic organism image, the user can accurately and timely know the location of the target detection frame obtained by detecting the microscopic organism image, as well as the category information of the microscopic organism corresponding to the target detection frame.
[0142] The following describes the devices, equipment, storage media, etc. used to execute the microscopic biological image processing method and neural network training method provided by the present application. The specific implementation process and technical effects are mentioned above and will not be repeated below.
[0143] Figure 6 A schematic diagram of a microscopic biological image processing device provided in an embodiment of the present application is as follows: Figure 6 As shown, the microscopic biological image processing device 600 may include:
[0144] The first acquisition module 601 is used to acquire the microscopic biological image to be processed.
[0145] The detection module 602 is used to use a plurality of pre-trained neural networks to perform microscopic biological detection on microscopic biological images, and obtain microscopic biological detection results corresponding to the plurality of neural networks; the plurality of neural networks include: a first neural network for a first group of microscopic biologicals, and at least one second neural network, and different second neural networks are neural networks for different second groups of microscopic biologicals. The first group of microscopic biologicals includes: at least one type of first microscopic biologicals that meet a plurality of preset biological visual conditions, and the second group of microscopic biologicals includes: at least one type of second microscopic biologicals that do not meet at least one of the biological visual conditions; the microscopic biological detection results corresponding to the first neural network include: the detection results of at least one type of first microscopic biologicals, and the microscopic biological detection results corresponding to the second neural network include: the detection results of at least one type of second microscopic biologicals;
[0146] The determination module 603 is used to obtain the target detection result of the microscopic biological image according to the microscopic biological detection results corresponding to the multiple neural networks.
[0147] Optionally, the detection results of each type of first microscopic organisms include: detection parameters of the first detection frame of each type of first microscopic organisms, and detection confidence of each type of first microscopic organisms; the detection results of each type of second microscopic organisms include: detection parameters of the second detection frame of each type of second microscopic organisms, and detection confidence of each type of second microscopic organisms.
[0148] The determination module 603 is specifically used to determine, based on the detection parameters of the first detection frame of at least one type of first microscopic organisms and the detection parameters of the second detection frame of at least one type of second microscopic organisms, at least one group of candidate detection frames whose overlapping area exceeds a preset area threshold and a first target detection frame whose overlapping area does not exceed the preset area threshold from the first detection frame of at least one type of first microscopic organisms and the second detection frame of at least one type of second microscopic organisms; deduplicate the detection frames in each group of candidate detection frames that meet the deduplication conditions according to the detection confidence of each group of candidate detection frames and the preset visual endosymbiotic correspondence between the microscopic organisms to obtain the second target detection frame; determine the target detection result of the microscopic organism image according to the detection parameters of the target detection frame, wherein the target detection frame includes: the first target detection frame and the second target detection frame.
[0149] Optionally, the determination module 603 is specifically used to deduplicate detection frames that meet a first deduplication condition in detection frames of microscopic organisms of the same category in each group of candidate detection frames according to the detection confidence of each group of candidate detection frames, so as to obtain detection frames of first target microscopic organisms; deduplicate detection frames that meet a second deduplication condition in detection frames of microscopic organisms of different categories in each group of candidate detection frames according to the visual endosymbiotic correspondence, so as to obtain detection frames of second target microscopic organisms; the second target detection frames include: a detection frame of the first target microscopic organism, and a detection frame of the second target microscopic organism.
[0150] Optionally, the determination module 603 is used to calculate the biomass information of the microscopic organisms corresponding to the target detection frame based on the detection parameters of the target detection frame and the biological characteristic information of the microscopic organisms corresponding to the target detection frame; determine the number of individuals of the microscopic organisms corresponding to the target detection frame based on the number of target detection frames; the target detection result includes: the biomass information of the microscopic organisms corresponding to the target detection frame, and the number of individuals.
[0151] Optionally, the microscopic biological image processing device 600 may further include:
[0152] The output module is used to output a detection image corresponding to the microscopic organism image, in which a target detection frame and category information of the microscopic organism corresponding to the target detection frame are displayed.
[0153] Optionally, the first detection frame is a straight detection frame, or an oblique detection frame, and the second detection frame is a straight detection frame, or an oblique detection frame; wherein the detection parameters of the straight detection frame include: frame size and frame position; the detection parameters of the oblique detection frame include: frame size, frame position and angle.
[0154] Figure 7 A schematic diagram of a neural network training device provided in an embodiment of the present application is as follows: Figure 7 As shown, the neural network training device 700 may include:
[0155] The second acquisition module 701 is used to acquire multiple sample microscopic biological images.
[0156] The labeling module 702 is used to label the detection frame and category information of the first group of microscopic organisms in each sample microscopic organism image to obtain a first sample image set; the first group of microscopic organisms includes: at least one type of first microscopic organisms that meet multiple preset biological visual conditions; label at least one detection frame and category information of the second group of microscopic organisms in each sample microscopic organism image to obtain at least one second sample image set; the second group of microscopic organisms includes: at least one type of second microscopic organisms that do not meet at least one of the biological visual conditions;
[0157] The training module 703 is used to use the first sample image set to perform model training to obtain a first neural network; and use at least one second sample image set to perform model training to obtain at least one second neural network.
[0158] The above-mentioned device is used to execute the microscopic biological image processing method and neural network training method provided in the above-mentioned embodiments. Its implementation principle and technical effects are similar and will not be repeated here.
[0159] The above modules may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASIC), or one or more digital singnal processors (DSP), or one or more field programmable gate arrays (FPGA). For another example, when a module is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
[0160] Figure 8 A schematic diagram of a computer device provided in an embodiment of the present application. The computer device may be integrated into a device or a chip of a device. The computer device may be a device with computing and processing functions.
[0161] The computer device 800 includes a memory 801 and a processor 802. The memory 801 and the processor 802 are connected via a bus.
[0162] The memory 801 is used to store a computer program executable by the processor 802. The processor 802 calls the computer program stored in the memory 801 to execute the above Figure 1 The neural network training method embodiment shown, or Figure 2-Figure 5 The specific implementation methods and technical effects of the microscopic biological image processing method provided in any embodiment are similar and will not be repeated here.
[0163] Optionally, the present invention also provides a program product, such as a computer-readable storage medium, which may be a non-volatile storage medium, which may include a program, which is used to execute the above method embodiment when executed by a processor.
[0164] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0165] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0166] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0167] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to perform some steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (English: Read-Only Memory, abbreviated: ROM), random access memory (English: Random Access Memory, abbreviated: RAM), disk or optical disk and other media that can store program codes.
[0168] The above is only the preferred implementation mode of the present application, which certainly cannot be used to limit the scope of rights of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and changes can be made without departing from the principle of the present invention, and these improvements and changes are also regarded as the protection scope of the present invention.
Claims
1. A microscopic biological image processing method, characterized in that: include: Acquire microscopic biological images to be processed; Using a plurality of pre-trained neural networks, the microscopic organism image is subjected to microscopic organism detection, and microscopic organism detection results corresponding to the plurality of neural networks are obtained; the plurality of neural networks include: a first neural network for a first group of microscopic organisms, and at least one second neural network, and different second neural networks are neural networks for different second groups of microscopic organisms, wherein the first group of microscopic organisms includes: at least one type of first microscopic organisms that meet a plurality of preset biological visual conditions, and the second group of microscopic organisms includes: at least one type of second microscopic organisms that do not meet at least one of the biological visual conditions; wherein the plurality of biological visual conditions include: a similarity condition of the aspect ratio of the detection frame of the microscopic organisms, and a visual endosymbiosis condition of the microscopic organisms, wherein the visual endosymbiosis condition refers to the similarity of image features of a certain area in the cell A image and the cell B image; the microscopic organism detection results corresponding to the first neural network include: the detection results of the at least one type of first microscopic organisms, and the microscopic organism detection results corresponding to the second neural network include: the detection results of the at least one type of second microscopic organisms; Obtaining a target detection result of the microscopic biological image according to the microscopic biological detection results corresponding to the multiple neural networks; The detection result of each type of first microscopic organisms includes: the detection parameters of the first detection frame of each type of first microscopic organisms, and the detection confidence of each type of first microscopic organisms; the detection result of each type of second microscopic organisms includes: the detection parameters of the second detection frame of each type of second microscopic organisms, and the detection confidence of each type of second microscopic organisms; The step of obtaining the target detection result of the microscopic biological image according to the microscopic biological detection results corresponding to the multiple neural networks includes: According to the detection parameters of the first detection frame of the at least one type of first microscopic organisms and the detection parameters of the second detection frame of the at least one type of second microscopic organisms, determining at least one group of candidate detection frames whose overlapping areas exceed a preset area threshold and a first target detection frame whose overlapping area does not exceed the preset area threshold from the first detection frame of the at least one type of first microscopic organisms and the second detection frame of the at least one type of second microscopic organisms; According to the detection confidence of each group of candidate detection frames and the preset visual endosymbiotic correspondence between microscopic organisms, deduplication of the detection frames that meet the deduplication condition in each group of candidate detection frames is performed to obtain a second target detection frame; The target detection result of the microscopic biological image is determined according to the detection parameters of the target detection frame, wherein the target detection frame includes: the first target detection frame and the second target detection frame.
2. The method according to claim 1, characterized in that According to the detection confidence of each group of candidate detection frames and the preset visual endosymbiotic correspondence between microscopic organisms, deduplication of the detection frames in each group of candidate detection frames that meet the deduplication condition is performed to obtain the second target detection frame, including: According to the detection confidence of each group of candidate detection frames, deduplication of detection frames in the detection frames of microscopic organisms of the same category in each group of candidate detection frames that meet the first deduplication condition is performed to obtain a detection frame of the first target microscopic organism; According to the visual endosymbiotic correspondence, deduplication is performed on the detection frames of the different categories of microscopic organisms in each group of candidate detection frames, and the detection frames that meet the second deduplication condition are deduplicated to obtain the detection frames of the second target microscopic organisms; The second target detection frame includes: a detection frame of the first target microscopic organism, and a detection frame of the second target microscopic organism.
3. The method according to claim 1, characterized in that Determining the target detection result of the microscopic biological image according to the detection parameters of the target detection frame includes: Calculating biomass information of the microscopic organism corresponding to the target detection frame according to the detection parameters of the target detection frame and the biometric information of the microscopic organism corresponding to the target detection frame; Determining the number of microscopic organisms corresponding to the target detection frames according to the number of the target detection frames; The target detection result includes: biomass information of the microscopic organisms corresponding to the target detection frame, and the number of individuals.
4. The method according to claim 1, characterized in that: The method further comprises: A detection image corresponding to the microscopic organism image is output, wherein the detection image displays the target detection frame and category information of the microscopic organism corresponding to the target detection frame.
5. The method according to claim 1, characterized in that The first detection frame is a straight detection frame or an oblique detection frame, and the second detection frame is a straight detection frame or an oblique detection frame; The detection parameters of the normal detection frame include: frame size and frame position; the detection parameters of the oblique detection frame include: frame size, frame position and angle.
6. A neural network training method, characterized in that: include: Acquire multiple sample microscopic biological images; Marking a detection frame of a first group of microscopic organisms and category information in each sample microscopic organism image to obtain a first sample image set; The first group of microscopic organisms includes: at least one type of first microscopic organisms that meet a plurality of preset biological vision conditions, Marking at least one second group of microscopic organisms' detection frame and category information in each sample microscopic organism image to obtain at least one second sample image set; the second group of microscopic organisms includes: at least one type of second microscopic organisms that does not meet at least one of the biological vision conditions; wherein the multiple biological vision conditions include: a similarity condition of the aspect ratio of the detection frame of the microscopic organisms, and a visual endosymbiosis condition of the microscopic organisms, wherein the visual endosymbiosis condition refers to that the image features of a certain area in the cell A image and the cell B image are similar; The first sample image set is used for model training to obtain a first neural network, so that the first neural network is used to perform microscopic biological detection on the microscopic biological image to obtain a microscopic biological detection result corresponding to the first neural network, and the microscopic biological detection result corresponding to the first neural network includes: the detection result of the at least one type of first microscopic organisms; The at least one second sample image set is used to perform model training respectively to obtain at least one second neural network, so that the second neural network is used to perform microscopic biological detection on the microscopic biological image to obtain a microscopic biological detection result corresponding to the second neural network, and the microscopic biological detection result corresponding to the second neural network includes: the detection result of the at least one type of second microscopic organisms; Obtaining a target detection result of the microscopic organism image according to the microscopic organism detection results corresponding to the plurality of neural networks, wherein the plurality of neural networks include: the first neural network for the first group of microscopic organisms, and the at least one second neural network; The detection result of each type of first microscopic organisms includes: the detection parameters of the first detection frame of each type of first microscopic organisms, and the detection confidence of each type of first microscopic organisms; the detection result of each type of second microscopic organisms includes: the detection parameters of the second detection frame of each type of second microscopic organisms, and the detection confidence of each type of second microscopic organisms; The step of obtaining the target detection result of the microscopic biological image according to the microscopic biological detection results corresponding to the multiple neural networks includes: According to the detection parameters of the first detection frame of the at least one type of first microscopic organisms and the detection parameters of the second detection frame of the at least one type of second microscopic organisms, determining at least one group of candidate detection frames whose overlapping areas exceed a preset area threshold and a first target detection frame whose overlapping area does not exceed the preset area threshold from the first detection frame of the at least one type of first microscopic organisms and the second detection frame of the at least one type of second microscopic organisms; According to the detection confidence of each group of candidate detection frames and the preset visual endosymbiotic correspondence between microscopic organisms, deduplication of the detection frames that meet the deduplication condition in each group of candidate detection frames is performed to obtain a second target detection frame; The target detection result of the microscopic biological image is determined according to the detection parameters of the target detection frame, wherein the target detection frame includes: the first target detection frame and the second target detection frame.
7. A microscopic biological image processing device, characterized in that: include: A first acquisition module, used for acquiring a microscopic biological image to be processed; A detection module, for using a plurality of pre-trained neural networks to perform microscopic biological detection on the microscopic biological image, and obtain microscopic biological detection results corresponding to the plurality of neural networks; the plurality of neural networks include: a first neural network for a first group of microscopic organisms, and at least one second neural network, and different second neural networks are neural networks for different second groups of microscopic organisms, wherein the first group of microscopic organisms includes: at least one type of first microscopic organisms that meet a plurality of preset biological visual conditions, and the second group of microscopic organisms includes: at least one type of second microscopic organisms that do not meet at least one of the biological visual conditions; wherein the plurality of biological visual conditions include: a similarity condition of the aspect ratio of the detection frame of the microscopic organisms, and a visual endosymbiosis condition of the microscopic organisms, wherein the visual endosymbiosis condition refers to the similarity of image features of a certain area in the cell A image and the cell B image; the microscopic biological detection results corresponding to the first neural network include: the detection results of the at least one type of first microscopic organisms, and the microscopic biological detection results corresponding to the second neural network include: the detection results of the at least one type of second microscopic organisms; A determination module, configured to obtain a target detection result of the microscopic biological image according to the microscopic biological detection results corresponding to the plurality of neural networks; The detection result of each type of first microscopic organisms includes: the detection parameters of the first detection frame of each type of first microscopic organisms, and the detection confidence of each type of first microscopic organisms; the detection result of each type of second microscopic organisms includes: the detection parameters of the second detection frame of each type of second microscopic organisms, and the detection confidence of each type of second microscopic organisms; The determination module is specifically used to determine, from the first detection frame of the at least one type of first microscopic organisms and the second detection frame of the at least one type of second microscopic organisms, at least one group of candidate detection frames whose overlapping area exceeds a preset area threshold and a first target detection frame whose overlapping area does not exceed the preset area threshold according to the detection parameters of the first detection frame of the at least one type of first microscopic organisms and the detection parameters of the second detection frame of the at least one type of second microscopic organisms; deduplicate the detection frames in each group of candidate detection frames that meet the deduplication conditions according to the detection confidence of each group of candidate detection frames and the preset visual endosymbiotic correspondence between the microscopic organisms to obtain the second target detection frame; and determine the target detection result of the microscopic organism image according to the detection parameters of the target detection frame, wherein the target detection frame includes: the first target detection frame and the second target detection frame.
8. A neural network training device, characterized in that: include: A second acquisition module is used to acquire multiple sample microscopic biological images; A labeling module, used to label the detection frame of the first group of microscopic organisms and category information in each sample microscopic organism image to obtain a first sample image set; The first group of microscopic organisms includes: at least one type of first microscopic organisms that meet multiple preset biological visual conditions; at least one detection frame of the second group of microscopic organisms and category information are marked in each sample microscopic organism image to obtain at least one second sample image set; the second group of microscopic organisms includes: at least one type of second microscopic organisms that do not meet at least one of the biological visual conditions; wherein the multiple biological visual conditions include: a similarity condition of the aspect ratio of the detection frame of the microscopic organisms, and a visual endosymbiosis condition of the microscopic organisms, wherein the visual endosymbiosis condition refers to the similarity of image features of a certain area in the cell A image and the cell B image; A training module, configured to use the first sample image set to perform model training to obtain a first neural network, so that the first neural network is used to perform microscopic biological detection on the microscopic biological image to obtain a microscopic biological detection result corresponding to the first neural network, and the microscopic biological detection result corresponding to the first neural network includes: the detection result of the at least one type of first microscopic organisms; and to use the at least one second sample image set to perform model training respectively to obtain at least one second neural network, so that the second neural network is used to perform microscopic biological detection on the microscopic biological image to obtain a microscopic biological detection result corresponding to the second neural network, and the microscopic biological detection result corresponding to the second neural network includes: the detection result of the at least one type of second microscopic organisms; A determination module, configured to obtain a target detection result of the microscopic organism image according to the microscopic organism detection results corresponding to the plurality of neural networks, wherein the plurality of neural networks include: the first neural network for the first group of microscopic organisms, and the at least one second neural network; The detection result of each type of first microscopic organisms includes: the detection parameters of the first detection frame of each type of first microscopic organisms, and the detection confidence of each type of first microscopic organisms; the detection result of each type of second microscopic organisms includes: the detection parameters of the second detection frame of each type of second microscopic organisms, and the detection confidence of each type of second microscopic organisms; The determination module is specifically used to determine, from the first detection frame of the at least one type of first microscopic organisms and the second detection frame of the at least one type of second microscopic organisms, at least one group of candidate detection frames whose overlapping area exceeds a preset area threshold and a first target detection frame whose overlapping area does not exceed the preset area threshold according to the detection parameters of the first detection frame of the at least one type of first microscopic organisms and the detection parameters of the second detection frame of the at least one type of second microscopic organisms; deduplicate the detection frames in each group of candidate detection frames that meet the deduplication conditions according to the detection confidence of each group of candidate detection frames and the preset visual endosymbiotic correspondence between the microscopic organisms to obtain the second target detection frame; and determine the target detection result of the microscopic organism image according to the detection parameters of the target detection frame, wherein the target detection frame includes: the first target detection frame and the second target detection frame.
9. A computer device, characterized in that: include: A memory and a processor, wherein the memory stores a computer program executable by the processor, and when the processor executes the computer program, the microscopic biological image processing method described in any one of claims 1 to 5, or the neural network training method described in claim 6 is implemented.
