Signal detection method and device for optical sensing image, equipment and storage medium
By detecting the contour information of the micro-detection area of the microscopic optical sensing image and training the classification model, the problem of low signal detection efficiency and accuracy in the existing technology is solved, fast and accurate signal positioning and identification are achieved, and convenient Testing plan.
Patent Information
- Application Number
- CN202310271670.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-09
- Publication Date
- 2024-09-10
AI Technical Summary
The existing micro-optical sensing image signal detection methods have low efficiency, low accuracy, and cumbersome operations, resulting in deviations and inconsistencies in signal counting results.
Use the findcontours function to detect the contour information of the micro-detection area in the optical sensing image, cut it into a single sample image of a set size, extract the feature vector through grayscale histogram equalization and directional gradient histogram, train the classification model for signal detection, and generate Signal detection results.
It improves the efficiency and accuracy of signal detection, reduces manual intervention, enables more convenient signal positioning and identification, faster detection, and more intuitive visualization of results.
Smart Images

Figure CN118629035A
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of optical sensing image processing, and in particular, relates to a signal detection method, device, equipment and storage medium for optical sensing images. Background Art
[0002] In digital optical biosensors, the sensing area has a large number of arrayed spatially spaced micro-detection areas. When there are target molecules in the detection area, optical signals can be generated, and microscopic optical sensing images can be captured under a microscope. The target signals on the optical sensing images can be detected and applied to medical fields such as early screening of diseases, auxiliary diagnosis, and disease detection. At present, there are several signal detection (recognition) methods for microscopic optical sensing images:
[0003] 1. Manual counting: relying on manual experience or using Image J software to assist, repeatedly comparing and confirming images and counting signals; this method can be convenient and fast for signal detection for images with clear and uniform targets, but due to differences in image quality and target size and the subjective consciousness of operators, the final statistical results are biased. In addition, this method has a slow counting efficiency, increases the time for sample analysis, and reduces the stability and consistency of signal counting to a certain extent.
[0004] 2. Cell counting based on image processing method: This method first binarizes the microscopic optical sensor image, presets the cell area parameters, identifies the cell area of the binary image, and finally counts the number of fluorescent images based on the cell area. Although this method can process microscopic optical sensor images in batches, it has poor robustness and weak noise resistance. It needs to adjust the appropriate threshold for different signals to obtain reasonable results. The counting efficiency and accuracy are low, and the operation is cumbersome. Summary of the invention
[0005] The present application provides a signal detection method, device, equipment and storage medium for optical sensing images, aiming to solve at least one of the above-mentioned technical problems in the prior art to a certain extent.
[0006] In order to solve the above problems, this application provides the following technical solutions:
[0007] A signal detection method for an optical sensing image, comprising:
[0008] Build a digital optical biosensor under an optical microscope, and use the optical microscope to collect optical sensing images of the detection target;
[0009] Use the findcontours function to detect contour information of the micro-detection area in the optical sensing image, crop the micro-detection area according to the contour information to obtain a single sample image of a set size, and mark the sample image as having or not having a signal to obtain a sample data set for training the model;
[0010] Extracting a feature vector of each sample image from the sample data set, inputting the feature vector into a classification model for training, and obtaining a trained classification model;
[0011] The trained classification model is used to classify the optical sensor image to be detected, and the position and the presence or absence of signals of the micro-detection area in the optical sensor image to be detected are marked based on the classification result of the classification model to generate the signal detection result of the optical sensor image to be detected.
[0012] The technical solution adopted by the embodiment of the present application also includes: the optical sensing image of the detection target object collected by using an optical microscope also includes:
[0013] The optical sensing images are screened out from the optical sensing images, the optical sensing images having the complete micro detection area.
[0014] The technical solution adopted by the embodiment of the present application also includes: before using the findcontours function to detect contour information of the micro-detection area in the optical sensing image, it also includes:
[0015] Converting the optical sensing image into a grayscale image;
[0016] Calculating the image gradient of the grayscale image to obtain an image gradient image;
[0017] The image gradient map is subjected to binarization processing in OTSU mode to obtain a binarized image that only retains edge information and background noise point information of the micro-detection area.
[0018] The technical solution adopted in the embodiment of the present application also includes: using the findcontours function to detect contour information of the micro-detection area in the optical sensor image, and cutting the micro-detection area according to the contour information to obtain a single sample image of a set size is specifically:
[0019] Use the findcontours function to detect the contour information in each binary image and remove the contour information whose area is smaller than the set threshold;
[0020] Calculating the center point of the contour information of each binary image respectively, and removing the overlapping contour information according to the center point, so that only one contour information is retained in the micro-detection area in each binary image;
[0021] The optical sensing image is segmented according to the center point of the contour information to obtain a single sample image of a set size.
[0022] The technical solution adopted by the embodiment of the present application also includes: the feature vector of each sample image extracted from the sample data set is specifically:
[0023] Performing grayscale histogram equalization processing on the sample data set;
[0024] A directional gradient histogram is extracted from each sample image after the grayscale histogram equalization process, and the directional gradient histogram is used as a feature vector of each sample image.
[0025] The technical solution adopted by the embodiment of the present application also includes: the position and the presence or absence of signal of the micro-detection area in the optical sensor image to be detected are marked on the classification result of the classification model, and the signal detection result of the optical sensor image to be detected is generated specifically as follows:
[0026] The micro detection area in the optical sensing image is positioned according to the center point of the contour information, and the position and the presence or absence of a signal of the micro detection area are marked according to the positioning result to generate a visual signal detection result of the optical sensing image.
[0027] Another technical solution adopted by the embodiment of the present application is: a signal detection device for optical sensing images, comprising:
[0028] Image acquisition module: used to build a digital optical biosensor under an optical microscope, and use the optical microscope to collect optical sensing images of the detection target object;
[0029] Image segmentation module: used to detect contour information of the micro-detection area in the optical sensing image using the findcontours function, crop the micro-detection area according to the contour information to obtain a single sample image of a set size, and mark the sample image with or without a signal to obtain a sample data set for training the model;
[0030] Feature extraction module: used to extract the feature vector of each sample image from the sample data set, input the feature vector into the classification model for training, and obtain a trained classification model;
[0031] Image detection module: used to classify the optical sensor image to be detected using the trained classification model, and mark the position and the presence or absence of signals of the micro-detection area in the optical sensor image to be detected based on the classification result of the classification model, so as to generate the signal detection result of the optical sensor image to be detected.
[0032] The technical solution adopted by the embodiment of the present application also includes: the feature extraction module extracts the feature vector of each sample image from the sample data set specifically:
[0033] Grayscale histogram equalization is performed on the sample data set, directional gradient histogram is extracted from each sample image after the grayscale histogram equalization, and the directional gradient histogram is used as a feature vector of each sample image.
[0034] Another technical solution adopted by the embodiment of the present application is: a device, the device includes a processor and a memory coupled to the processor, wherein:
[0035] The memory stores program instructions for implementing the signal detection method of the optical sensing image;
[0036] The processor is used to execute the program instructions stored in the memory to control signal detection of the optical sensing image.
[0037] Another technical solution adopted by the embodiment of the present application is: a storage medium storing program instructions executable by a processor, wherein the program instructions are used to execute the signal detection method of the optical sensing image.
[0038] Compared with the prior art, the beneficial effects of the embodiments of the present application are as follows: the signal detection method, device, equipment and storage medium of the optical sensor image of the embodiment of the present application obtains a high-resolution optical sensor image of the detection target through an optical microscope, and obtains the contour information of each micro-detection area in the image, and then uses the contour information to cut the optical sensor image into a single sample image of a set size, annotates and proofreads all sample images, generates a data set for model training, puts the prepared data set into a classification model for classification, and adds position information to the classification result to generate the effect of signal detection of the optical sensor image. The embodiment of the present application, based on the idea of target detection, uses an image analysis method to quickly locate and identify the optical sensor image without relying on additional hardware facilities and manual intervention, solves the technical problems of low signal counting efficiency and accuracy and cumbersome operation in the prior art, has strong repeatability, faster detection speed, and more intuitive visual display, and does not need to correspond the position information and the image again, providing a more convenient solution for signal detection of optical sensor images. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 is a flow chart of a signal detection method of an optical sensing image according to a first embodiment of the present application;
[0040] Figure 2 is a flow chart of a signal detection method of an optical sensing image according to a second embodiment of the present application;
[0041] Figure 3 A schematic diagram showing the visualization of signal counting in an embodiment of the present application;
[0042] Figure 4 A schematic diagram of experimental results of a signal detection method for an optical sensing image according to an embodiment of the present application;
[0043] Figure 5 This is a schematic diagram of the structure of a signal detection device for an optical sensing image according to an embodiment of the present application;
[0044] Figure 6 A schematic diagram of the device structure of an embodiment of the present application;
[0045] Figure 7 A schematic diagram of the structure of a storage medium according to an embodiment of the present application. DETAILED DESCRIPTION
[0046] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0047] The terms "first", "second", "third" in this application are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, the features defined as "first", "second", "third" can expressly or implicitly include at least one of the features. In the description of this application, the meaning of "multiple" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined. In the embodiments of this application, all directional indications (such as up, down, left, right, front, back...) are only used to explain the relative position relationship, movement, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication also changes accordingly. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the steps or units listed, but optionally also includes steps or units that are not listed, or optionally also includes other steps or units inherent to these processes, methods, products or devices.
[0048] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0049] Specifically, see Figure 1 , is a flow chart of the optical sensor image signal detection method of the first embodiment of the present application. The optical sensor image signal detection method of the first embodiment of the present application comprises the following steps:
[0050] S100: Build a digital optical biosensor under an optical microscope and use the optical microscope to collect optical sensing images of the target object;
[0051] S110: using the findcontours function to detect contour information of the micro-detection area in the optical sensing image, cropping the micro-detection area according to the contour information to obtain a single sample image of a set size, and marking the sample image with or without a signal to obtain a sample data set for training a model;
[0052] S120: extracting a feature vector of each sample image from the sample data set, inputting the feature vector into a classification model for training, and obtaining a trained classification model;
[0053] S130: Classify the optical sensor image to be detected by using the trained classification model, and mark the position and the presence or absence of signals of the micro-detection area in the optical sensor image to be detected based on the classification result of the classification model, so as to generate a signal detection result of the optical sensor image to be detected.
[0054] See also Figure 2 , is a flow chart of a signal detection method for an optical sensing image according to a second embodiment of the present application. The signal detection method for an optical sensing image according to the second embodiment of the present application comprises the following steps:
[0055] S200: Building a digital optical biosensor under an optical microscope, then using the optical microscope to collect optical sensing images of the detection target object, and screening out optical sensing images with complete micro-detection areas from all optical sensing images;
[0056] In this step, in the digital optical biosensor, the sensing area has a large number of arrayed spatially spaced micro-detection areas. When there is a detection target in the micro-detection area, an optical signal can be generated, and an optical sensing image of the detection target can be captured under an optical microscope. It can be understood that the embodiments of the present application are not limited to optical sensing images, but are also applicable to other microscopic images.
[0057] S210: converting the optical sensing image into a grayscale image;
[0058] In this step, the grayscale image conversion algorithm includes but is not limited to the weighted method, the mean method or the maximum method, wherein the weighted method is: GRAY==0.3*R+0.59*G+0.11*B, the mean method is: GRAY==(R+G+B) / 3, and the maximum value is: max(R,G,B).
[0059] S220: Calculating the image gradient of the grayscale image to obtain an image gradient map, and performing binarization processing on the image gradient map in the OTSU mode to obtain a binarized image that only retains edge information of the micro-detection area and background noise point information;
[0060] In this step, the image gradient represents the speed of change of the image grayscale value. For an image, the grayscale values on both sides of the edge are quite different, and the gradient value is also large. Therefore, calculating the image gradient of the grayscale image can highlight the edge information of the image. Specifically, the grayscale image can be regarded as a two-dimensional discrete function. Calculating the image gradient of the grayscale image is to derive the two-dimensional discrete function:
[0061] Image gradient:
[0062] G(x,y)=dx(i,j)+dy(i,j);
[0063] dx(i,j)=I(i+1,j)-I(i,j);
[0064] dy(i,j)=I(i,j+1)-I(i,j);
[0065] Where I is the value of the image pixel and (i, j) is the coordinate of the pixel.
[0066] It can be understood that the embodiment of the present application only takes the above algorithm as an example, and other gradient algorithms can also be used for calculation, such as the median difference algorithm.
[0067] S230: using findcontours function to detect contour information in each binary image, and removing contour information with an area smaller than a set threshold;
[0068] In this step, the findcontours function is a function that implements contour detection in OpenCV. It uses an image processing algorithm to find the contour of an object in an image. It accepts a single-channel binary image as input and returns a series of contour information, each of which is represented in the form of a point. In the embodiment of the present application, the findcontours function is first used to detect all the contour information in the binary image, and a certain number of interfering contours exist in the contour information at this time; because the size of the micro-detection area obtained by shooting is relatively fixed within a range under a fixed objective lens multiple, and the contour information with an area smaller than the range is considered to be an interfering contour, therefore, by setting the area threshold of the contour information, all contour information is filtered using the area threshold, and contour information smaller than the area threshold is removed, thereby removing the background noise while removing the interfering contours generated in the micro-detection area.
[0069] S240: calculating the center point of the contour information of each binary image respectively, and removing the overlapping contour information according to the center point, so that only one contour information is retained in the micro-detection area in each binary image;
[0070] In this step, the center point of the contour information is calculated as follows:
[0071]
[0072] Among them, x 1 ,y 1 are the horizontal and vertical coordinates of the upper left corner point of each contour information, respectively, and w and h are the width and height of each contour information, respectively. The distance between the center points of the two contour information is calculated mutually. If the distance is less than half of its own width or height, it is determined that the two contour information share the same center point, and the smaller of the two contour information is removed as overlapping contour information, so that only one contour information is retained within the range of one center point. This cycle is repeated, and eventually only one contour information is retained in the micro-detection area of each binary image, and this contour information contains the entire micro-detection area of each binary image. The image gradient map of the embodiment of the present application extracts contour information, and locates the micro-detection area based on the contour information, which can improve the positioning accuracy of the micro-detection area.
[0073] S250: segmenting the optical sensor image according to the center point of the contour information to obtain a single sample image of a set size, and annotating and proofreading all the sample images to obtain a sample data set for training the model;
[0074] In this step, first, the position information of each micro-detection area in the optical sensor image is obtained according to the center point of the contour information, and the micro-detection area is cropped into a single image of size 40*40 (the specific image size can be set according to the actual application scenario) based on the position information. It is marked whether there is a signal above the micro-detection area, and the corresponding label is added to obtain sample images with signal and sample images without signal, and a sample data set for model training is produced.
[0075] S260: performing grayscale histogram equalization processing on the sample data set, and performing HOG (Histogram of Oriented Gradient, directional gradient histogram) extraction on each sample image after the grayscale histogram equalization processing, and using the extracted HOG as a feature vector;
[0076] In this step, before extracting the HOG feature vector, grayscale histogram equalization processing is performed on each sample image in the sample data set, which can reduce the impact of different brightness on the sample image when shooting with an optical microscope.
[0077] S270: Input the extracted HOG feature vector into the classification model for training, obtain a trained classification model, and output the classification result;
[0078] In this step, the embodiment of the present application adopts a support vector machine as a classification model, and uses the extracted HOG feature vector as training data to train the classification model. After the training is completed, the trained classification model can be directly used to quickly classify the input image, and the classification results output by the classification model include two types: signal and no signal. It can be understood that the embodiment of the present application is not limited to the use of a support vector machine as a classification model, and other classification models such as decision trees, random forests, and restricted discriminant analysis can also be used. The classification model can also be trained using other features such as Haar (Haar features) or LBP (Local Binary Pattern, local binary features), which can be specifically set according to the actual application scenario.
[0079] S280: Based on the classification result output by the classification model, the micro-detection area in the optical sensor image is located according to the center point of the contour information, and the position and the presence or absence of the signal of the micro-detection area are marked according to the positioning result, so as to generate a visual signal detection result of the optical sensor image;
[0080] In this step, for the same group of optical sensor images of the detection target object taken once within a period of time under an optical microscope, the position of the micro-detection area of the detection target object remains unchanged. Therefore, the contour information of the micro-detection area can also be determined based on the first frame of the optical sensor images in the same group. The micro-detection area of the group of optical sensor images is positioned based on the contour information, and at the same time, it is determined whether a signal is generated above the micro-detection area at the same position in the group of optical sensor images, so as to obtain the number of signal generation times in the same micro-detection area within a period of time, thereby calculating the concentration information of the detection target object, and at the same time, quantifying the signal intensity of the micro-detection area that generates the signal, and statistically analyzing the signal intensity distribution law, so as to calculate the particle size and other information of the detection target object, so that the final signal detection result visual display is more intuitive without the need to match the position information and the image again. Specifically, Figure 3 The figure is a schematic diagram of signal counting visualization display of the embodiment of the present application. The embodiment of the present application can also be applied to signal statistics and detection and identification of signals generated by chemiluminescent molecules, fluorescent molecules, quantum dots, viruses and other nanoparticles.
[0081] Based on the above, the signal detection method of the optical sensor image of the second embodiment of the present application obtains a high-resolution optical sensor image of the detection target through an optical microscope, and after obtaining the contour information of each micro-detection area in the image, the optical sensor image is cut into a single sample image of a set size using the contour information, and all sample images are annotated and proofread to generate a data set for model training, and the prepared data set is put into the classification model for classification, and the position information is added to the classification result to generate the signal detection effect of the optical sensor image. The embodiment of the present application, based on the idea of target detection, uses an image analysis method to quickly locate and identify optical sensor images without relying on additional hardware facilities and manual intervention, solves the technical problems of low signal counting efficiency and accuracy and cumbersome operation in the prior art, has strong repeatability, faster detection speed, and more intuitive visual display, and does not need to correspond the position information and the image again, providing a more convenient solution for signal detection of optical sensor images.
[0082] In order to verify the feasibility and effectiveness of the embodiments of the present application, the following embodiments experimented with the above-mentioned signal detection method of optical sensing images. A total of 1290 images of 40*40 micro-detection areas were collected, the training test set ratio was 9:1, and a linear kernel function was selected. When the penalty coefficient C = 1.0, a classification accuracy of 0.934 can be obtained by cross-validation, and the AUC (area under the curve) reaches 0.98. The specific experimental results are as follows: Figure 4 shown.
[0083] See also Figure 5, is a schematic diagram of the structure of the optical sensor image signal detection device of the embodiment of the present application. The optical sensor image signal detection device 40 of the embodiment of the present application includes:
[0084] Image acquisition module 41: used to build a digital optical biosensor under an optical microscope, and use the optical microscope to acquire an optical sensing image of a detection target object;
[0085] Image segmentation module 42: used to detect contour information of the micro-detection area in the optical sensing image using the findcontours function, crop the micro-detection area according to the contour information to obtain a single sample image of a set size, and mark the sample image with or without a signal to obtain a sample data set for training the model;
[0086] Feature extraction module 43: used to extract feature vectors of each sample image from the sample data set, input the feature vectors into a classification model for training, and obtain a trained classification model;
[0087] Image detection module 44: used to classify the optical sensor image to be detected using the trained classification model, and mark the position and signal presence or absence of the micro-detection area in the optical sensor image to be detected based on the classification result of the classification model, so as to generate the signal detection result of the optical sensor image to be detected.
[0088] Based on the above, the signal detection device of the optical sensor image of the embodiment of the present application obtains a high-resolution optical sensor image of the detection target through an optical microscope, and after obtaining the contour information of each micro-detection area in the image, the optical sensor image is cut into a single sample image of a set size using the contour information, and all sample images are annotated and proofread to generate a data set for model training, and the prepared data set is put into the classification model for classification, and the position information is added to the classification result to generate the effect of signal detection of the optical sensor image. Without relying on additional hardware facilities and manual intervention, the embodiment of the present application adopts the image analysis method to quickly locate and identify the optical sensor image based on the idea of target detection, which solves the technical problems of low signal counting efficiency and accuracy and cumbersome operation in the prior art, has strong repeatability, faster detection speed, and more intuitive visual display, and does not need to correspond the position information and the image again, providing a more convenient solution for signal detection of optical sensor images.
[0089] See also Figure 6 , is a schematic diagram of the device structure of an embodiment of the present application. The device 50 includes:
[0090] A memory 51 storing executable program instructions;
[0091] A processor 52 connected to the memory 51;
[0092] The processor 52 is used to call the executable program instructions stored in the memory 51 and perform the following steps: build a digital optical biosensor under an optical microscope, and use the optical microscope to collect an optical sensing image of the detection target; use the findcontours function to detect the contour information of the micro-detection area in the optical sensing image, crop the micro-detection area according to the contour information, obtain a single sample image of a set size, and mark the sample image with or without a signal to obtain a sample data set for training the model; extract the feature vector of each sample image from the sample data set, input the feature vector into the classification model for training, and obtain a trained classification model; use the trained classification model to classify the optical sensing image to be detected, and mark the position and the presence or absence of the signal of the micro-detection area in the optical sensing image to be detected based on the classification result of the classification model to generate a signal detection result of the optical sensing image to be detected.
[0093] The processor 52 may also be referred to as a CPU (Central Processing Unit). The processor 52 may be an integrated circuit chip having signal processing capabilities. The processor 52 may also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0094] See also Figure 7 , Figure 7The present invention is a schematic diagram of the structure of the storage medium of the embodiment of the present application. The storage medium of the embodiment of the present application stores program instructions 61 that can implement the following steps: build a digital optical biosensor under an optical microscope, and use the optical microscope to collect an optical sensor image of a detection target; use the findcontours function to detect the contour information of the micro-detection area in the optical sensor image, cut the micro-detection area according to the contour information, obtain a single sample image of a set size, and mark the sample image with or without a signal to obtain a sample data set for training a model; extract the feature vector of each sample image from the sample data set, input the feature vector into a classification model for training, and obtain a trained classification model; use the trained classification model to classify the optical sensor image to be detected, and mark the position and the presence or absence of a signal of the micro-detection area in the optical sensor image to be detected on the classification result of the classification model to generate a signal detection result of the optical sensor image to be detected. Among them, the program instruction 61 can be stored in the above-mentioned storage medium in the form of a software product, including several instructions to enable a device (which can be a personal computer, server, or network device, etc.) or a processor to execute all or part of the steps of each implementation method of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program instructions, or terminal devices such as computers, servers, mobile phones, tablets, etc. Among them, the server can be an independent server, or it can be a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), and basic cloud computing services such as big data and artificial intelligence platforms.
[0095] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the system embodiments described above are only schematic. For example, the division of 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 an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0096] In addition, each functional unit in each embodiment of the present application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of software functional units. The above is only an implementation method of the present application, and does not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made by using the description and drawings of this application, or directly or indirectly used in other related technical fields, is also included in the patent protection scope of the present application.
Claims
1. A signal detection method for an optical sensing image, characterized in that: include: Build a digital optical biosensor under an optical microscope, and use the optical microscope to collect optical sensing images of the detection target; Use the findcontours function to detect contour information of the micro-detection area in the optical sensing image, crop the micro-detection area according to the contour information to obtain a single sample image of a set size, and mark the sample image as having or not having a signal to obtain a sample data set for training the model; Extracting a feature vector of each sample image from the sample data set, inputting the feature vector into a classification model for training, and obtaining a trained classification model; The trained classification model is used to classify the optical sensor image to be detected, and the position and the presence or absence of signals of the micro-detection area in the optical sensor image to be detected are marked based on the classification result of the classification model to generate the signal detection result of the optical sensor image to be detected.
2. The signal detection method of optical sensing image according to claim 1, characterized in that: The method of collecting an optical sensing image of the detection target object using an optical microscope also includes: The optical sensing images are screened out from the optical sensing images, the optical sensing images having the complete micro detection area.
3. The signal detection method of optical sensing image according to claim 2, characterized in that: Before using the findcontours function to detect contour information of the micro-detection area in the optical sensing image, the method further includes: Converting the optical sensing image into a grayscale image; Calculating the image gradient of the grayscale image to obtain an image gradient image; The image gradient map is subjected to binarization processing in OTSU mode to obtain a binarized image that only retains edge information and background noise point information of the micro-detection area.
4. The signal detection method of optical sensing image according to claim 3, characterized in that: The use of the findcontours function to detect contour information of the micro-detection area in the optical sensing image, and the clipping of the micro-detection area according to the contour information to obtain a single sample image of a set size is specifically: Use the findcontours function to detect the contour information in each binary image and remove the contour information whose area is smaller than the set threshold; Calculating the center point of the contour information of each binary image respectively, and removing the overlapping contour information according to the center point, so that only one contour information is retained in the micro-detection area in each binary image; The optical sensing image is segmented according to the center point of the contour information to obtain a single sample image of a set size.
5. The signal detection method of optical sensing image according to any one of claims 1 to 4, characterized in that: The feature vector of each sample image extracted from the sample data set is specifically: Performing grayscale histogram equalization processing on the sample data set; A directional gradient histogram is extracted from each sample image after the grayscale histogram equalization process, and the directional gradient histogram is used as a feature vector of each sample image.
6. The signal detection method of optical sensing image according to claim 4, characterized in that: The position and signal presence / absence marking of the micro-detection area in the optical sensor image to be detected are performed based on the classification result of the classification model to generate the signal detection result of the optical sensor image to be detected, specifically: The micro detection area in the optical sensing image is positioned according to the center point of the contour information, and the position and the presence or absence of a signal of the micro detection area are marked according to the positioning result to generate a visual signal detection result of the optical sensing image.
7. A signal detection device for optical sensing images, characterized in that: include: Image acquisition module: used to build a digital optical biosensor under an optical microscope, and use the optical microscope to collect optical sensing images of the detection target object; Image segmentation module: used to detect contour information of the micro-detection area in the optical sensing image using the findcontours function, crop the micro-detection area according to the contour information to obtain a single sample image of a set size, and mark the sample image with or without a signal to obtain a sample data set for training the model; Feature extraction module: used to extract the feature vector of each sample image from the sample data set, input the feature vector into the classification model for training, and obtain a trained classification model; Image detection module: used to classify the optical sensor image to be detected using the trained classification model, and mark the position and the presence or absence of signals of the micro-detection area in the optical sensor image to be detected based on the classification result of the classification model, so as to generate the signal detection result of the optical sensor image to be detected.
8. The optical sensing image signal detection device according to claim 7, characterized in that: The feature extraction module extracts the feature vector of each sample image from the sample data set as follows: Grayscale histogram equalization is performed on the sample data set, directional gradient histogram is extracted from each sample image after the grayscale histogram equalization, and the directional gradient histogram is used as a feature vector of each sample image.
9. A device, characterized in that: The device comprises a processor and a memory coupled to the processor, wherein: The memory stores program instructions for implementing the signal detection method of the optical sensing image according to any one of claims 1 to 6; The processor is used to execute the program instructions stored in the memory to control signal detection of the optical sensing image.
10. A storage medium, characterized in that: The device stores program instructions executable by a processor, wherein the program instructions are used to execute the signal detection method of the optical sensing image according to any one of claims 1 to 6.
Citation Information
Patent Citations
Method for detecting bacilli in leucorrhea automatically on the basis of HOG feature
CN106980839A
Biochip detection method, device and equipment
CN113462760A
Methods, systems, and media for detecting the presence of an analyte
US20190108421A1
