An intelligent detection method and system for microorganisms under activated sludge microscope

By constructing an intelligent detection network and using artificial intelligence technology to intelligently identify and count activated sludge microorganisms, the problem of low detection accuracy and efficiency in the existing technology has been solved, and the intelligent and standardized detection of microorganisms in sewage treatment has been realized.

CN117953494BActive Publication Date: 2024-09-06四川文理学院
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202410141705.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-31
Publication Date
2024-09-06
Estimated Expiration
2044-01-31

AI Technical Summary

Technical Problem

In the existing technology, activated sludge microbial detection relies on manual observation microscopes, which has problems such as low accuracy and consistency, low efficiency, and high cost. It is difficult to accurately monitor the types and quantities of microorganisms in the sewage treatment process in real time.

Method used

Computer vision technology based on artificial intelligence is used to build an intelligent detection network, including a pre-processing module, feature extraction sub-network and microbial information analysis sub-network. Through image pre-processing, feature extraction and microbial information analysis, intelligent detection of activated sludge microorganisms is achieved Identify and count.

Benefits of technology

It improves the efficiency and accuracy of microbial information prediction, solves the problems of low efficiency, poor accuracy and high cost of microbial detection in the sewage treatment process, and provides an intelligent, standardized and fast detection method for sewage treatment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117953494B
    Figure CN117953494B
Patent Text Reader

Abstract

The present invention proposes an intelligent detection method and system for microorganisms under an activated sludge microscope. The method is: obtaining an activated sludge microscope image containing microorganisms; constructing an intelligent detection network, the intelligent detection network includes a preprocessing module, a feature extraction subnetwork and a microorganism information analysis subnetwork, and intelligently identifying the activated sludge microscope image in the intelligent detection network, specifically: preprocessing the activated sludge microscope image to obtain multiple image blocks; inputting the image blocks into the feature extraction subnetwork to extract the features of the image blocks and obtain a feature mapping matrix; inputting the activated sludge microscope image and the feature mapping matrix into the microorganism information analysis subnetwork, analyzing the number, type and location of microorganisms, and generating prediction results of the number, type and location information of microorganisms. This method solves the problems of low efficiency, poor accuracy, low consistency and high cost in the field of microbial detection of water quality indicators in sewage treatment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of a new generation of information technology based on artificial intelligence technology, and in particular to a method and system for intelligent detection of activated sludge microorganisms under a microscope. Background Art

[0002] The "2022 Ecological Environment Statistical Annual Report" released by the Ministry of Ecology and Environment shows that by the end of 2022, the national urban sewage treatment capacity is 207 million cubic meters per day, the total sewage treatment volume is 60.15 billion cubic meters, and the sewage treatment rate is 97.89%. Since sewage contains a large amount of organic matter and nutrients such as nitrogen and phosphorus, if it is directly discharged without effective treatment methods, it will cause serious environmental pollution problems. At present, there are physical, physical and chemical, chemical and biological methods for urban sewage treatment in my country. Among them, the activated sludge method in the biological method is the most widely used. According to statistics, more than 80% of the sewage treatment plants that have been built in my country use the activated sludge method, and the proportion of water treated by the activated sludge method accounts for more than 85% of the total treated water. It can be seen that the activated sludge method has become the most important method in the field of sewage treatment.

[0003] The activated sludge process is a flocculent formed by the coagulation and interweaving of a variety of aerobic microorganisms and facultative anaerobic microorganisms (in some cases, there may be a small amount of anaerobic microorganisms) with organic and inorganic solids in the wastewater. The main body of activated sludge is bacteria, most of which are Gram-negative bacteria. In addition, there are a large number of protozoa and metazoa, as well as microbial metabolic residues and some inert organic and inorganic substances entrained from sewage. Microorganisms are biological entities in activated sludge and are more sensitive to environmental changes. The treatment effect of sewage directly affects the structure and number of their populations. In the process of sewage treatment, when there are problems with the operating conditions, some water quality indicators will not change significantly in a short time, and it is difficult to attract the attention of staff. However, since activated sludge microorganisms are sensitive to environmental changes, the population and number of activated sludge microorganisms at this time will undergo obvious adverse migration, resulting in the deterioration of sewage treatment effects. When the sewage treatment effect deteriorates, it takes a long time to restore the good activated sludge state when adjusting the sewage treatment operation parameters. Therefore, real-time and accurate monitoring of the types and quantities of activated sludge microorganisms is particularly important for sewage treatment conditions, and can predict the future development trend of sewage treatment, so as to timely adjust the process parameters in the sewage treatment process and solve the problem of lag effect in the sewage treatment process. There are many types of indicator microorganisms in activated sludge, including bellworms, rotifers, shield ciliates, sucker worms, sunworms, etc. The status of these microorganisms represents the different treatment effects of activated sludge in sewage.

[0004] At present, the microscopic examination of active sludge microorganisms is a manual observation and counting of the types and quantities of microorganisms in the activated sludge under different operating conditions of sewage treatment by inspectors. However, this method has obvious defects: the accuracy of microscopic observation depends largely on the observer's reading experience and attention during the film reading process, and the effectiveness of the diagnostic results of each operator's observation of microscopic technology varies, and the accuracy and consistency of their observations are low. In addition, even experienced inspectors cannot distinguish various microorganisms without reference materials. Summary of the invention

[0005] In order to overcome the defects in the above-mentioned prior art, the purpose of the present invention is to provide a method and system for intelligent detection of activated sludge microorganisms under microscopy.

[0006] In order to achieve the above-mentioned object of the present invention, the present invention provides an intelligent detection method of activated sludge microorganisms under a microscope, comprising the following steps:

[0007] Obtain microscopic images of activated sludge containing microorganisms;

[0008] Construct an intelligent detection network, which includes a preprocessing module, a feature extraction subnetwork and a microbial information analysis subnetwork, and perform intelligent recognition on the activated sludge microscopic image in the intelligent detection network, specifically:

[0009] Preprocessing the activated sludge microscopic image to obtain a plurality of image blocks;

[0010] The image block is input into the feature extraction subnetwork to extract features of the image block and obtain a feature mapping matrix;

[0011] The activated sludge microscopic image and feature mapping matrix are input into the microbial information analysis subnetwork, the microbial type and microbial position are analyzed, and the number of microorganisms is obtained by counting the number of detection frames to generate prediction results of the number, type and position of microorganisms.

[0012] This method introduces artificial intelligence-based computer vision technology into the field of activated sludge microbial detection, solving the problems of low efficiency, poor accuracy, low consistency and high cost in the field of microbial detection of water quality indicators in the sewage treatment process.

[0013] In an optional solution of the activated sludge microbial intelligent detection method under the microscope, the microbial information analysis subnetwork includes a microbial information extraction module, a feature extraction module integrating global information, a microbial identification module and a microbial positioning module;

[0014] The feature mapping matrix is ​​input into the microbial information extraction module to generate analysis features of the microbial information;

[0015] The analysis features of the microbial information and the activated sludge microscopic image are transmitted to the feature extraction module integrating the global information for feature extraction to generate the analysis features of the global information;

[0016] The analysis features of the global information are simultaneously transmitted to the microorganism identification module and the microorganism positioning module to generate microorganism type and location information prediction results including microorganism type and microorganism location.

[0017] This alternative improves the efficiency of microbial information prediction and the accuracy of prediction results.

[0018] In an optional solution of the method for intelligent detection of microorganisms under an activated sludge microscope, the analysis features of the global information are mapped to confidence levels through the microorganism identification module and are mapped to point coordinates through the microorganism positioning module.

[0019] In an optional solution of the activated sludge microbial intelligent detection method under the microscope, the microbial information extraction module includes 2 multi-layer perceptrons, L-level high-order feature extraction modules, and L-level low-order feature extraction modules, where L is a configurable parameter;

[0020] The feature mapping matrix is ​​input into two multilayer perceptrons, wherein the first multilayer perceptron maps the feature mapping matrix to The first multilayer perceptron is cascaded with the high-order feature extraction modules in sequence; the second multilayer perceptron maps the feature mapping matrix to To match the number of feature channels c, the second multilayer perceptron is sequentially cascaded with the low-order feature extraction modules;

[0021] The l-th level high-order feature extraction module previously merges the high-order features from the l-1-th level high-order feature extraction module and the low-order features from the l-1-th level low-order feature extraction module, and the 1-th level high-order feature extraction module previously reshapes the feature maps outputted from the first multilayer perceptron and the second multilayer perceptron.

[0022] The microbial information extraction module in this optional solution gradually integrates high-order feature information and low-order feature information, improves the feature expression ability of the module, and further improves the efficiency of microbial information prediction and the accuracy of prediction results.

[0023] In an optional scheme of the activated sludge microbial intelligent detection method under the microscope, the feature extraction module that integrates global information includes L layers of feature extraction modules, where L is a configurable parameter. Each layer of feature extraction module includes a self-attention module, a cross-attention layer, and a feedforward network. Feature extraction is performed on the microbial image block, and then feature fusion is performed.

[0024] In an optional solution of the activated sludge microbial intelligent detection method, the loss function of the intelligent detection network is:

[0025] L MA =L c +L l , where L c is the classification loss, L l For the localization loss, the distance between the matched predicted coordinates and the corresponding true coordinates is measured.

[0026] This optional solution can improve the performance of the microbial information analysis subnetwork during the network training process by incorporating both the category information and location information of the microorganisms, that is, it takes into account both the network's microbial category recognition ability and microbial location ability.

[0027] The present invention also provides an intelligent detection system for activated sludge microorganisms under a microscope, comprising an image receiving module, a processing module and a storage module. The image receiving module is used to receive an activated sludge microscopic image containing microorganisms and send it to the processing module. The processing module is communicatively connected to the storage module. The storage module is used to store at least one executable instruction. The executable instruction enables the processing module to perform operations corresponding to the above-mentioned intelligent detection method for activated sludge microorganisms under a microscope according to the image it receives, so as to identify the activated sludge microorganisms.

[0028] The system has all the advantages of the above methods, and the system can be easily and quickly embedded in the workflow of the existing activated sludge method for sewage treatment, without affecting the process flow of the activated sludge method for sewage treatment.

[0029] The beneficial effects of the present invention are as follows: the present invention introduces computer vision technology based on artificial intelligence into the field of activated sludge microbial detection, solves the problems of low efficiency, poor accuracy, low consistency and high cost in the field of microbial detection of water quality indicators in the sewage treatment process, and lays a solid foundation for the intelligent, standardized and rapid detection and counting of activated sludge microorganisms in sewage treatment.

[0030] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:

[0032] Figure 1 It is a structural diagram of the intelligent detection network;

[0033] Figure 2This is a schematic diagram of activated sludge sampling at the end of the sewage aerobic biological treatment tank;

[0034] Figure 3 This is a schematic diagram of the original image of activated sludge microorganisms under a microscope;

[0035] Figure 4 This is a diagram of the worm in the original picture of activated sludge microorganisms under a microscope;

[0036] Figure 5 It is a schematic diagram of the structure of the microbial information analysis subnetwork;

[0037] Figure 6 It is a schematic diagram of the network structure of the microbial information extraction module;

[0038] Figure 7 This is a schematic diagram showing the performance comparison of different methods for intelligent counting of worms using MAE as an indicator;

[0039] Figure 8 This is a performance comparison diagram of different methods for intelligent counting of worms using MSE as an indicator;

[0040] Fig. 9 This is a schematic diagram showing the performance comparison of different methods for intelligent counting of sphagnum moths using RMSE as an indicator;

[0041] Fig.10 It is a schematic diagram of the working process of the present invention in the activated sludge method for sewage treatment. DETAILED DESCRIPTION

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

[0043] In the description of the present invention, unless otherwise specified and limited, it should be noted that the terms "installed", "connected" and "connected" should be understood in a broad sense. For example, it can be a mechanical connection or an electrical connection, or it can be the internal connection between two components. It can be a direct connection or an indirect connection through an intermediate medium. For ordinary technicians in this field, the specific meanings of the above terms can be understood according to the specific circumstances.

[0044] like Figure 1 As shown, the present invention provides an intelligent detection method for activated sludge microorganisms under a microscope, comprising the following steps:

[0045] An intelligent detection network ASMDetecor was constructed, which included a preprocessing module, a feature extraction subnetwork and a microbial information analysis subnetwork MIA.

[0046] Acquire microscopic images of activated sludge containing microorganisms.

[0047] During the training phase of the intelligent detection network ASMDetecor, an activated sludge microbial data set was established through sewage sampling, and professional activated sludge microbial detectors completed the microscopic image annotation of typical microorganisms, and then the activated sludge microbial counting network was trained.

[0048] This embodiment is introduced by taking a typical microorganism, tricholoma, as an example. Figure 2 As shown in the figure, by taking a proper amount of water samples from the sewage treatment plant, professionals used an OLYMPUSBX53 optical microscope camera to obtain a microscopic image with a resolution of 3072×2048, as shown in the figure. Figure 3 As shown, the worm is identified and obtained from the image, such as Figure 4 At the same time, professional image annotation software is used to annotate the target microorganisms, C. fasciatus, in the original image to generate the corresponding XML tag file.

[0049] The activated sludge microbial dataset used has 300 images, each of which is a microbial image with ultra-high resolution. A total of 24,309 worms are annotated, with a minimum of 38 worms / image and a maximum of 132 worms / image, with an average of 81 worms per image. Each time, 200 images of activated sludge microbial images are used as training sets, and 100 images of activated sludge microbial images are used as test sets. The number of worm image datasets is shown in Table 1.

[0050] Table 1 Introduction to the image dataset of clumpworm

[0051] Microbial species Number of images Number of worms twigworm 300 24309

[0052] During training, the activated sludge microscopic image is intelligently identified in the intelligent detection network ASMDetecor. Specifically, the activated sludge microscopic image is preprocessed to obtain multiple image blocks. In this embodiment, the activated sludge microscopic image is processed according to the specified width Width p , Height p Divide the blocks evenly. Width p The value range is [128-Width / 2], height Height p The value range of is [128-Height / 2], where Width and Height represent the width and height of the original activated sludge image under the microscope, respectively.

[0053] The obtained image block is then input into the feature extraction subnetwork to extract the features of the image block and obtain the feature mapping matrix h, w and c represent the height, width and number of feature channels of the feature map, respectively. The feature map matrix F and the activated sludge microscopic image are input into the microbial information analysis subnetwork MIA to analyze the type and location of microorganisms, obtain the quantity information of microorganisms by counting the number of detection frames, and generate the prediction results of the number, type and location information of microorganisms.

[0054] like Figure 5 As shown, the microbial information analysis subnetwork MIA includes a fused microbial information extraction module FIEM, a feature extraction module that integrates global information, a microbial identification module, and a microbial positioning module.

[0055] The working process of the microbial information analysis subnetwork MIA is as follows: the feature mapping matrix F from the feature extraction subnetwork is first fed into the microbial information extraction module FIEM to generate the analysis feature F of the microbial information L Next, the analysis feature F of the microbial information L The image under the activated sludge microscope is transmitted to the feature extraction module that integrates the global information for feature extraction to generate the analysis features of the global information; finally, the analysis features of the global information are simultaneously transmitted to the microbial identification module and the microbial positioning module, and the analysis features of the global information are mapped to the confidence through the microbial identification module, and mapped to the point coordinates through the microbial positioning module to generate the microbial type and location information prediction results including the microbial type and microbial location.

[0056] Specifically, the process of determining the position of the microorganism in this embodiment is as follows:

[0057] For a category c k The microbial target k is represented by a central coordinate The detection box represents its position in the image, then its center point coordinates are The microbial detection model predicts the center point of all microbial targets by estimating key points. However, only one center point is not enough to express a detection box, and its size needs to be calculated.

[0058] Determination of microbial type: using softmax function

[0059] Softmax is the activation function used by convolutional neural networks to achieve multi-class classification. The softmax function maps the outputs of multiple neurons to the interval (0,1), which can be understood as probability, thus achieving multi-classification.

[0060] By counting the number of detection frames, the quantity information of microorganisms is obtained.

[0061] In this embodiment, represents the prediction results of all queried microbial information, n refers to the number of microorganisms detected by the network, and p i It is the predicted confidence of the possibility that the determined point (the center of the suspected foreground (microorganism) detected by the network) belongs to the foreground, which is output by the softmax function. Indicates the prediction result of the network, which is a coordinate information. is the predicted coordinate of the ith pair, indicating the actual point coordinates, obtained by manual annotation, K refers to the number of detection points (microorganisms) that achieve matching, and the prediction result k nearest neighbor matching is performed between the real value and n. Since n is greater than NUM, NUM is the number of microorganisms manually marked in advance in the image, each microorganism There is a matching prediction result.

[0062] In this embodiment, the network structure of the microbial information extraction module FIEM is as follows: Figure 6 As shown, it includes two multi-layer perceptrons MLP, L-level high-order feature extraction modules HLFE, and L-level low-order feature extraction modules LLFE, where L is a configurable parameter with a value range of 3-8, and a preferred value of 4 or 5. The input of the microbial information extraction module FIEM is the feature mapping matrix F from the feature extraction subnetwork.

[0063] The working process of the microbial information extraction module FIEM is as follows:

[0064] The feature mapping matrix F from the feature extraction subnetwork is simultaneously input into the two multilayer perceptrons MLP of the microbial information extraction module FIEM. The first multilayer perceptron MLP is used to map the feature mapping matrix F to The first multi-layer perceptron MLP is followed by a cascade of high-order feature extraction modules HLFE; the second multi-layer perceptron MLP is used to map the feature mapping matrix F to To match the number of feature channels c, the second multi-layer perceptron MLP is followed by a cascade of low-order feature extraction modules LLFE.

[0065] The l-th level high-order feature extraction module previously merges the high-order features from the l-1-th level high-order feature extraction module and the low-order features from the l-1-th level low-order feature extraction module, where l=2, 3, …, L. The first level high-order feature extraction module previously reshapes the feature maps outputted from the first multilayer perceptron and the second multilayer perceptron.

[0066] The characteristic of the multilayer perceptron MLP is that all neurons between layers are interconnected, and the input-output relationship reflected by the existing training data is fitted by adjusting the weight parameters and bias parameters of the multilayer perceptron MLP.

[0067] Specific as Figure 6 As shown, the input of the first-level high-order feature extraction module HLFE is the feature map output from the first multi-layer perceptron MLP and the feature map output by the second multilayer perceptron MLP This process is given by the following formula:

[0068]

[0069] Among them, F 1 represents the input of the first-level high-order feature extraction module HLFE, F 2 represents the input of the second-level high-order feature extraction module HLFE, R S (·) represents the operation of reshaping the feature map by flattening the spatial dimensions, and HLFE(·) represents the high-level feature extraction module HLFE. Then, the subsequent high-level feature extraction module HLFE is used to further refine the features as shown below:

[0070]

[0071]

[0072]

[0073] Among them, F i+1 represents the input of the i+1th level high-order feature extraction module HLFE, represents the input of the first-level low-level feature extraction module LLFE, represents the input of the i-th level low-order feature extraction module LLFE, and the total number of high-order feature extraction modules HLFE L also represents the total number of times the high-order features and low-order features are fused. After this formula, the analysis feature F of the microbial information forwarded to the feature extraction module that integrates the global information is obtained. L ∈R hw×c .

[0074] The working process of the microbial information extraction module FIEM can be explained from the perspective of high-order information and low-order information. Before each high-order feature extraction module HLFE, the high-order features from the previous high-order feature extraction module HLFE and the low-order features from the LLFE module are merged. In the process, the high-order feature information and the low-order feature information are gradually integrated, which improves the feature expression ability of the module.

[0075] The feature extraction module that integrates global information includes L layers of feature extraction modules, where L is a configurable parameter and is consistent with the configuration number L in the microbial information extraction module FIEM. Each layer of feature extraction module contains a self-attention module, a cross-attention layer, and a feed-forward network FFN, which performs simple feature extraction on microbial image blocks and then performs feature fusion.

[0076] A typical example of the microorganism identification module is shown in Table 2, and a typical example of the microorganism positioning module is shown in Table 3.

[0077] Table 2 A typical example of a microbial recognition module

[0078] layer type 1 Conv(3,3,1,1) 2 Conv(3,3,1,1) 3 <![CDATA[Conv2d(1×1,1,0,N cls )]]>

[0079] Table 3 A typical example of a microbial localization module

[0080] layer Location 1 Conv(3,3,1,1) 2 Conv(3,3,1,1) 3 Conv2d(1×1,1,0,4×reg_max)

[0081] In this embodiment, the loss function of the intelligent detection network ASMDetecor is:

[0082] L MA =L c +L l ,

[0083] Among them, the classification loss L c The matching prediction confidence is improved and the unmatched prediction confidence is suppressed. To supervise the learning process of the predicted coordinates, the positioning loss L is also calculated. l , which measures the L between the matched predicted coordinates and the corresponding true coordinates l Distance. In this embodiment, the classification loss L c To calculate whether the anchor box and the corresponding calibration classification are correct, the existing classification loss function can be used, such as by increasing the FocalLoss loss of the difficult classification category; the positioning loss L l You can use the existing positioning loss function, such as GIoU_Loss loss.

[0084] This loss function is used to jointly train the intelligent detection network ASMDetecor, and during inference, the prediction results are obtained from the microbial information analysis subnetwork MIA.

[0085] Experimental Results

[0086] Comparison Method

[0087] Since there is no method specifically designed for automatic counting of microorganisms under the activated sludge microscope at this stage, 6 counting methods with different technical routes were selected as comparison benchmarks. The selected methods include: YOLO v3, YOLO v5, P2PNet, CLTR, MPS and DSSI-Net. Among them, YOLO v3 and YOLO v5 are based on target detection, P2PNet and CLTR are based on regression, and MPS and DSSI-Net are based on density map estimation.

[0088] Implementation details

[0089] All experiments are conducted on PyTorch and NVIDIA GPUs. For data augmentation, random size jitter and horizontal offset algorithms are used.

[0090] For the comparison methods YOLO v3, YOLO v5, P2PNet, CLTR, MPS, and DSSI-Net, the corresponding open source codes and default parameters were used.

[0091] For the preprocessing module network, the width of the image block is Width p , Height p All are set to 2048 pixels. When calculating the loss function of the intelligent detection network ASMDetecor, the adjustment value NUM-T is set to 50. For the microbial information extraction module FIEM, the number L of its high-order feature extraction module HLFE and low-order feature extraction module LLFE is set to 4. During the training process, each batch contains 8 image blocks (batch size = 8), and the Adam optimizer is used.

[0092] Evaluation indicators

[0093] In order to evaluate the effectiveness of the comparison method and the proposed method, the mean absolute error (MAE), mean squared error (MSE), and root mean square error (RMSE) between the predicted counts and the true labeled counts of all activated sludge microbial microscopic images were calculated.

[0094] Mean absolute error MAE is also known as L1 norm loss.

[0095] Mean square error MSE is also known as L2 norm loss.

[0096] The root mean square error (RMSE) is the square root of MSE, where m refers to the number of images in the image dataset when calculating the indicator.

[0097] The smaller the value of the above index is, the smaller the average counting error of the corresponding method is, and the better its performance is. They represent the set of real annotated counts in the image and the set of microbial counts predicted by the counting method, m represents the number of microbial images under the activated sludge microscope that need to be counted, and y i and Represents the microorganisms under the i-th activated sludge microscope ( twigworm )The true number of annotations in the image and the microorganisms predicted by the counting method ( twigworm )quantity.

[0098] Comparative results of microbial (branchworm) counting experiment under microscope in activated sludge

[0099] The above experimental configuration was used for YOLO v3, YOLO v5, P2PNet, CLTR, MPS and DSSI-Net methods to conduct the microbial (branchworm) counting experiment under the activated sludge microscope. The experimental results are shown in Table 5. Among them, YOLO v3 and YOLOv5 are based on target detection, P2PNet and CLTR are based on regression, and MPS and DSSI-Net are based on density map estimation. At the same time, the MAE, MSE, and RMSE indicators of the comparison results of the microbial (branchworm) counting experiment under the activated sludge microscope by different methods are respectively used Figure 7 , Figure 8 , Fig. 9 It is shown in order to make a more intuitive performance comparison. It can be seen that the intelligent detection network ASMDetecor proposed in the present invention has achieved the best results (smallest value and bold font) in the above three indicators.

[0100] Table 5 Comparative results of the experiment on counting worms under the activated sludge microscope

[0101] Counting method MAE MSE RMSE YOLO v3 163.24 304.18 17.44 YOLO v5 86.10 157.92 12.57 P2PNet 42.76 90.24 9.50 CLTR 34.94 74.12 8.61 MPS 69.36 118.92 10.91 DSSI-Net 67.54 160.16 12.66 ASMDetecor 33.72 85.36 9.24

[0102] This embodiment only uses the example of the sphaerocephalus to illustrate the present invention, and the same method can be used to perform intelligent identification on other microorganisms in the activated sludge.

[0103] The present invention also provides an activated sludge microbial intelligent detection system, including an image receiving module, a processing module and a storage module. The image receiving module is used to receive an activated sludge microbial image containing microorganisms and send it to the processing module. The processing module is connected to the storage module for communication. The storage module is used to store at least one executable instruction. The executable instruction enables the processing module to perform operations corresponding to the above-mentioned activated sludge microbial intelligent detection method according to the image it receives, and identify the activated sludge microorganisms. The system can be easily and quickly embedded in the workflow of the existing sewage treatment activated sludge method, such as Fig.10 shown.

[0104] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0105] Although the embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the claims and their equivalents.

Claims

1. An intelligent detection method for microorganisms under an activated sludge microscope, characterized in that: The following steps are involved: Obtain microscopic images of activated sludge containing microorganisms; Constructing an intelligent detection network, which includes a preprocessing module, a feature extraction subnetwork and a microbial information analysis subnetwork, The microbial information analysis subnetwork includes a microbial information extraction module, a feature extraction module integrating global information, a microbial identification module and a microbial positioning module; The activated sludge microscopic image is intelligently identified in the intelligent detection network, specifically: Preprocessing the activated sludge microscopic image to obtain a plurality of image blocks; The image block is input into the feature extraction subnetwork to extract the features of the image block and obtain the feature mapping matrix; The activated sludge microscopic image and feature mapping matrix are input into the microbial information analysis subnetwork, the microbial type and microbial position are analyzed, and the number of microorganisms is obtained by counting the number of detection frames to generate prediction results of the number, type and position of microorganisms; Specifically: The feature mapping matrix is ​​input into the microbial information extraction module to generate the analysis features of the microbial information: the microbial information extraction module includes two multi-layer perceptrons, L-level high-order feature extraction modules, and L-level low-order feature extraction modules, where L is a configurable parameter; the feature mapping matrix is ​​input into two multi-layer perceptrons, wherein the first multi-layer perceptron maps the feature mapping matrix to The high-order feature extraction modules are sequentially cascaded after the first multi-layer perceptron; The second multilayer perceptron maps the feature map matrix to To match the number of feature channels c, the second multilayer perceptron is sequentially cascaded with the low-order feature extraction modules; the first-level high-order feature extraction module merges the high-order features from the l-1th-level high-order feature extraction module and the low-order features from the l-1th-level low-order feature extraction module; the first-level high-order feature extraction module reshapes the feature maps output from the first multilayer perceptron and the second multilayer perceptron; The analysis features of the microbial information and the activated sludge microscopic image are transmitted to the feature extraction module integrating the global information for feature extraction to generate the analysis features of the global information; The analysis features of the global information are simultaneously transmitted to the microorganism identification module and the microorganism positioning module. The analysis features of the global information are mapped to confidence through the microorganism identification module and mapped to point coordinates through the microorganism positioning module to generate microorganism type and location information prediction results including microorganism type and microorganism location.

2. The method for intelligent detection of activated sludge microorganisms under a microscope according to claim 1, characterized in that: The feature extraction module for fusing global information includes L layers of feature extraction modules, where L is a configurable parameter. Each layer of feature extraction module includes a self-attention module, a cross-attention layer and a feedforward network, and performs feature extraction on microbial image blocks and then performs feature fusion.

3. The method for intelligent detection of activated sludge microorganisms under a microscope according to claim 1, characterized in that: The loss function of the intelligent detection network is: L MA =L c +L l , where L c is the classification loss, L l For the localization loss, the distance between the matched predicted coordinates and the corresponding true coordinates is measured.

4. An intelligent detection system for microorganisms under an activated sludge microscope, characterized in that: It includes an image receiving module, a processing module and a storage module. The image receiving module is used to receive an activated sludge microscopic image containing microorganisms and send it to the processing module. The processing module is communicatively connected to the storage module. The storage module is used to store at least one executable instruction. The executable instruction enables the processing module to perform an operation corresponding to the activated sludge microorganism intelligent detection method under a microscopic view as described in any one of claims 1 to 3 according to the image it receives, so as to identify the activated sludge microorganisms.

Citation Information

Patent Citations

  • Image target detection method and device, equipment and storage medium

    CN113936256A

  • Fine-grained video-text retrieval method based on context Transform network

    CN114282060A

  • Cystoscope image classification method based on local feature and global feature fusion

    CN116188436A

  • SAR image ship target detection method based on multistage feature fusion and mixed attention

    CN116469002A

  • Target object identification method and device based on image segmentation

    CN117274901A