Signal detection method and device for optical sensing image, equipment and storage medium
The sliding window method and deep learning model YOLOv5 are used to automatically detect microscopic optical sensing images, which solves the problem of low signal detection efficiency and accuracy in the existing technology, achieves fast and accurate signal identification and positioning, and reduces manual labor. Time consumption of work.
Patent Information
- Application Number
- CN202310253369.2
- 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 signal detection methods for microscopic optical sensing images in the prior art are inefficient, low in accuracy, and cumbersome to operate, resulting in poor signal counting stability and consistency, and increased sample analysis time.
The sliding window method is used to segment the optical sensing images, and the labelme tool is used for manual annotation to generate a data set for training. The deep learning model YOLOv5 is used for target detection to achieve automated signal detection.
It improves the efficiency and accuracy of signal detection, reduces manual intervention, makes detection faster, visualizes the results intuitively, reduces time consumption and uncertainty, and provides a more convenient detection solution.
Smart Images

Figure CN118629034A
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 a digital optical biosensor, the sensing area has a large number of arrayed spatially spaced micro-detection areas. When there is a target object in the detection area, an optical signal can be generated, and a microscopic optical sensing image can be captured under a microscope. The target signal on the optical sensing image 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] Collecting optical sensing images of detection targets;
[0009] Segmenting the optical sensor image using a sliding window method to obtain a set number of image blocks, annotating the image blocks with or without signals, and generating a data set for training a model;
[0010] Inputting the data set into a deep learning model for training to obtain a trained target detection model;
[0011] The target detection model is used to perform signal detection on the optical sensing image to be detected.
[0012] The technical solution adopted by the embodiment of the present application also includes: the optical sensor image of the target object is collected and detected specifically:
[0013] A digital optical biosensor is constructed under an optical microscope, and the optical microscope is used to collect an optical sensing image of a detection target object.
[0014] The technical solution adopted by the embodiment of the present application also includes: after collecting the optical sensor image of the detection target object, it also includes:
[0015] The optical sensing images are screened out from the optical sensing images, the optical sensing images having the complete micro detection area.
[0016] The technical solution adopted by the embodiment of the present application also includes: before the optical sensor image is segmented by the sliding window method, it also includes:
[0017] The screened optical sensing image is manually annotated using the labelme tool, so that the manually annotated annotation box includes the entire micro-detection area.
[0018] The technical solution adopted by the embodiment of the present application also includes: after the optical sensor image is segmented by the sliding window method to obtain a set number of image blocks, it also includes:
[0019] The image patches containing the annotation box are collected from all the image patches.
[0020] The technical solution adopted by the embodiment of the present application also includes: the image block is marked with presence or absence and signal, and the data set generated for training the model is specifically:
[0021] Modifying the position of the annotation box in the collected image block according to the size of the image block to generate a re-annotated image block;
[0022] A dataset is created based on the re-labeled image patches.
[0023] The technical solution adopted by the embodiment of the present application also includes: the signal detection of the optical sensor image to be detected by using the target detection model is specifically as follows:
[0024] Performing sliding window processing on the optical sensor image to be predicted by using a sliding window method to generate n image blocks;
[0025] Inputting the n image blocks into the target detection model in sequence for signal detection, and outputting the signal detection result of each image block through the target detection model;
[0026] The signal detection results of the n image blocks are combined to obtain the signal detection result of the entire optical sensing image to be predicted, and the signal detection result is visualized.
[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 acquire optical sensing images of detection targets;
[0029] Image segmentation module: used to segment the optical sensor image using a sliding window method to obtain a set number of image blocks, annotate the image blocks with or without signals, and generate a data set for training the model;
[0030] Model training module: used to input the data set into the deep learning model for training to obtain a trained target detection model;
[0031] Signal detection module: used to perform signal detection on the optical sensing image to be detected using the target detection model.
[0032] 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:
[0033] The memory stores program instructions for implementing the signal detection method of the optical sensing image;
[0034] The processor is used to execute the program instructions stored in the memory to control signal detection of the optical sensing image.
[0035] 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.
[0036] 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, uses the labelme tool to manually annotate the screened optical sensor image, uses the sliding window method to segment the manually annotated optical sensor image according to the set window size, generates a data set for model training, trains the prepared data set to obtain a target detection model, and uses the target detection model to perform signal detection on the predicted optical sensor image. The embodiment of the present application, based on the idea of target detection, combines the sliding window method and the YOLOv5 target detection model based on deep learning to quickly identify and locate the discrete optical sensor image generated by the digital optical biosensor 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, reduces the time consumption and uncertainty caused by manual work, and provides a more convenient solution for signal detection of optical sensor images. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] 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;
[0038] 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;
[0039] Figure 3 A schematic diagram of the YOLOv5 model structure of an embodiment of the present application;
[0040] Figure 4 A schematic diagram showing the visual display of the signal detection results of an embodiment of the present application;
[0041] Figure 5 A schematic diagram of a precision-recall curve for model evaluation in an embodiment of the present application;
[0042] Figure 6 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;
[0043] Figure 7 A schematic diagram of the device structure of an embodiment of the present application;
[0044] Figure 8 A schematic diagram of the structure of a storage medium according to an embodiment of the present application. DETAILED DESCRIPTION
[0045] 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.
[0046] 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.
[0047] 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.
[0048] 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:
[0049] S100: Acquiring an optical sensing image of a detection target object;
[0050] S110: Segmenting the optical sensor image using a sliding window method to obtain a set number of image blocks, annotating the image blocks with or without signals, and generating a data set for training a model;
[0051] S120: Inputting the data set into a deep learning model for training to obtain a trained object detection model;
[0052] S130: Perform signal detection on the optical sensing image to be detected using the target detection model.
[0053] 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:
[0054] 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;
[0055] 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 the original 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.
[0056] S210: manually annotating the screened optical sensing image using the labelme tool so that the manually annotated annotation box includes the entire micro-detection area, and calibrating the annotation result;
[0057] In this step, labelme is a graphic image annotation tool written in Python, which can be used for image polygon, rectangle, circle, polyline, line segment, point form annotation or flag form annotation, etc. In the embodiment of the present application, the labelme tool is used to mark the presence or absence of signal in the micro-detection area in the optical sensor image, and the corresponding label is added to obtain a sample image with signal and a sample image without signal. After the optical sensor image is manually annotated by the labelme tool, the annotation result can be manually calibrated by the experimenter to reduce the error caused by naked eye observation.
[0058] Furthermore, since each optical microscope field of view contains a large number of micro-detection areas, the area of each micro-detection area is very small, the optical signal generated is smaller, and the position of the optical signal generated is random relative to the micro-detection area. Therefore, when the labelme tool is used to manually annotate the optical sensor image, each micro-detection area is annotated. In order to ensure that the position of each micro-detection area that generates an optical signal can be detected during signal detection, the embodiment of the present application makes the manually annotated annotation box as completely as possible including the entire micro-detection area during manual annotation, for example, the edge of the manually annotated annotation box is tangent to the edge of the micro-detection area, thereby ensuring that each signal detection can obtain a more accurate position.
[0059] S220: using a sliding window method to segment the manually annotated optical sensor image according to a set window size to obtain a certain number of image blocks, and collecting image blocks containing annotated boxes from all the image blocks, modifying the position and size of the annotated boxes according to the sizes of the collected image blocks, and generating re-annotated image blocks;
[0060] In this step, since the original optical sensor image is 1024*2048 in size, it cannot be directly put into the model for training, and since the number of collected optical sensor images is small, it cannot meet the sample requirements of model training. Therefore, the embodiment of the present application adopts the sliding window method to segment the manually annotated optical sensor image according to the set window size, and collects the image blocks containing the manually annotated annotation boxes from the segmented image blocks. Since the manually annotated annotation boxes are determined according to the position information of the optical sensor image of 1024*2048 size, in the process of image segmentation using the sliding window method, it is also necessary to modify the position of the annotation box according to the size of the segmented image block to obtain the re-annotated image block, thereby greatly expanding the number of samples in the data set. In the embodiment of the present application, the window size of the sliding window method is set to 512*512, and the step size is 128, which can be set specifically according to the actual application scenario.
[0061] S230: Creating a data set for model training based on the re-labeled image blocks;
[0062] In this step, it is assumed that there are 537 optical sensor images that are manually annotated using the labelme tool. After these annotated images are segmented and re-annotated using the sliding window method according to a window size of 512*512, a total of 4192 annotated image blocks are obtained as the data set for model training, and the data set is divided into a training set and a test set in a ratio of 8:2. It can be understood that the above values can be set according to the actual application scenario.
[0063] S240: Input the data set into the deep learning model for training, obtain a trained target detection model, and output a prediction result;
[0064] In this step, the deep learning model used in the embodiment of the present application is the YOLOv5 model. Figure 3 The figure shows a schematic diagram of the YOLOv5 model structure of an embodiment of the present application. The YOLOv5 model is an end-to-end deep learning model for object detection. It detects objects in an image through a network and predicts the location and category of the object. The YOLOv5 model is based on the PyTorch framework and uses efficient architectures such as CSP+PANet. It can directly output prediction results based on the image without any additional preprocessing steps, and has high detection accuracy and speed.
[0065] In the embodiment of the present application, the target detection model divides the prediction results into four categories: TP (True Positive), FP (False Positive), TN (True Negative) and FN (False Negative), wherein the true positive class refers to the actual positive class being classified as the positive class by the model, the false positive class refers to the actual negative class being classified as the positive class by the model, the true negative class refers to the actual negative class being classified as the negative class by the model, and the false negative class refers to the actual positive class being classified as the negative class by the model. Specifically, the three indicators of precision (Precision), recall (Recall) and average precision (Average Precision, AP) are calculated respectively according to the four types of prediction results to evaluate the prediction results of the target detection model. Among them, the precision rate represents the proportion of correctly predicted positives to all predicted positives, and the recall rate represents the proportion of correctly predicted positives to all positive samples. The calculation formulas of each indicator are as follows:
[0066]
[0067]
[0068]
[0069] S250: Inputting the optical sensing image to be predicted into the trained target detection model for signal detection;
[0070] In this step, when the optical sensor image to be predicted is input, the sliding window method is first used to perform sliding window processing on the optical sensor image to be predicted to generate n image blocks, and then the n image blocks are sequentially input into the target detection model for signal detection, and the signal detection result of each image block is output through the target detection model. Finally, the signal detection results of the n image blocks are merged to obtain the signal detection result of the entire optical sensor image to be predicted, and the signal detection result is visualized, so that the visual display of the final signal detection result is more intuitive. Specifically, Figure 4 As shown, it is a schematic diagram for visualizing the signal detection results of an embodiment of the present application, wherein the left side is an image manually annotated using the labelme tool, and the right side is the signal detection result output by the target detection model. By comparing the left and right images, it can be seen that the signal detection result output by the target detection model is consistent with the manually annotated signal. After the signal detection is completed, the concentration, particle size and other information of the detection target can be obtained based on the number of times the optical signal is generated in the optical sensing image obtained by a single shot and the overall shooting time. 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.
[0071] 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, uses the labelme tool to manually annotate the screened optical sensor image, uses the sliding window method to segment the manually annotated optical sensor image according to the set window size, generates a data set for model training, trains the prepared data set to obtain a target detection model, and uses the target detection model to perform signal detection on the predicted optical sensor image. The embodiment of the present application, based on the idea of target detection, combines the sliding window method and the YOLOv5 target detection model based on deep learning to quickly identify and locate the discrete optical sensor image generated by the digital optical biosensor, 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, reduces the time consumption and uncertainty caused by manual work, and provides a more convenient solution for signal detection of optical sensor images.
[0072] 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 for optical sensor images. After collecting 537 optical sensor images and manually annotating them, the sliding window method was used to segment the annotated images using a window size of 512*512 to obtain 4192 annotated images as a data set, and the data set was divided into a training set and a test set according to a division ratio of 8:2 and model training was performed. When the threshold value is 0.5, the average precision AP reaches 0.965. The specific experimental results are as follows Figure 5 , which is a schematic diagram of the precision-recall curve of the model evaluation of the embodiment of the present application.
[0073] See also Figure 6 , 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:
[0074] Image acquisition module 41: used to acquire optical sensing images of detection targets; wherein, the image acquisition module 41 acquires optical sensing images of detection targets specifically including: building a digital optical biosensor under an optical microscope, and then using the optical microscope to acquire optical sensing images of detection targets, and screening out optical sensing images with complete micro-detection areas from all optical sensing images. In a 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 the original 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.
[0075] Image segmentation module 42: used to segment the optical sensor image using a sliding window method to obtain a set number of image blocks, annotate the image blocks with presence or absence and signals, and generate a data set for training the model; the image segmentation module 42 segment the optical sensor image specifically including: firstly, manually annotate the screened optical sensor image using the labelme tool, so that the manually annotated annotation box includes the entire micro-detection area, and calibrate the annotation result; then, segment the manually annotated optical sensor image according to the set window size using the sliding window method to obtain a certain number of image blocks, and collect image blocks containing annotation boxes from all image blocks, modify the position of the annotation boxes therein according to the size of the collected image blocks, and generate re-annotated image blocks. Among them, labelme is a graphic image annotation tool written in Python, which can be used for image polygon, rectangle, circle, polyline, line segment, point form annotation or flag form annotation, etc. The embodiment of the present application uses the labelme tool to mark the presence or absence of signals in the micro-detection area in the optical sensor image, and labels the corresponding labels to obtain a sample image with a signal and a sample image without a signal. After the optical sensor image is manually marked using the labelme tool, the marking result can be manually calibrated by the experimenter, which can reduce the error caused by naked eye observation. However, since the original optical sensor image is 1024*2048 in size, it cannot be directly put into the model for training, and since the number of collected optical sensor images is small, it cannot meet the sample requirements of model training. Therefore, the embodiment of the present application uses the sliding window method to segment the optical sensor image after manual marking according to the set window size, and collects the image blocks containing the manually marked annotation box from the segmented image blocks. Since the manually marked annotation box is based on the position information determined by the optical sensor image of 1024*2048 size, therefore, in the process of image segmentation using the sliding window method, it is also necessary to modify the position of the annotation box according to the size of the segmented image block to obtain the re-annotated image block, thereby greatly expanding the number of samples in the data set. In the embodiment of the present application, the window size of the sliding window method is set to 512*512, and the step size is 128, which can be specifically set according to the actual application scenario.
[0076] Model training module 43: used to input the data set into the deep learning model for training to obtain a trained target detection model; wherein, the deep learning model used in the embodiment of the present application is the YOLOv5 model. YOLO is an end-to-end deep learning model for object detection, which detects objects in an image through a network and predicts the location and category of the object. The YOLOv5 model is based on the PyTorch framework and uses efficient architectures such as CSP+PANet. It can directly output prediction results based on the image without any additional preprocessing steps, and has high detection accuracy and speed.
[0077] In the embodiment of the present application, the target detection model divides the prediction results into four categories: TP (True Positive), FP (False Positive), TN (True Negative) and FN (False Negative). According to the four types of prediction results, the three indicators of precision (Precision), recall (Recall) and average precision (Average Precision, AP) are calculated respectively to evaluate the prediction results of the target detection model. Among them, the precision rate represents the proportion of correct predictions to all positive predictions, and the recall rate represents the proportion of correct predictions to all positive samples. The calculation formulas of each indicator are as follows:
[0078]
[0079]
[0080]
[0081] Signal detection module 44: used to perform signal detection on the optical sensor image to be detected using the target detection model; wherein, when the optical sensor image to be predicted is input, the sliding window method is first used to perform sliding window processing on the optical sensor image to be predicted to generate n image blocks, and then the n image blocks are sequentially input into the target detection model for signal detection, and the signal detection result of each image block is output through the target detection model, and finally the signal detection results of the n image blocks are merged to obtain the signal detection result of the entire optical sensor image to be predicted, and the signal detection result is visualized, so that the final signal detection result visual display is more intuitive. After the signal detection is completed, the concentration, particle size and other information of the detection target can be obtained based on the number of times the optical signal is generated in the optical sensor image obtained by a single shot and the overall shooting time. The embodiment of the present application can also be applied to the signal statistics and detection and recognition of signals generated by chemiluminescent molecules, fluorescent molecules, quantum dots, viruses and other nanoparticles.
[0082] 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, uses the labelme tool to manually annotate the screened optical sensor image, uses the sliding window method to segment the manually annotated optical sensor image according to the set window size, generates a data set for model training, trains the prepared data set to obtain a target detection model, and uses the target detection model to perform signal detection on the predicted optical sensor image. The embodiment of the present application, based on the idea of target detection, combines the sliding window method and the YOLOv5 target detection model based on deep learning to quickly identify and locate the discrete optical sensor image generated by the digital optical biosensor, 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, reduces the time consumption and uncertainty caused by manual work, and provides a more convenient solution for signal detection of optical sensor images.
[0083] See also Figure 7 , is a schematic diagram of the device structure of an embodiment of the present application. The device 50 includes:
[0084] A memory 51 storing executable program instructions;
[0085] A processor 52 connected to the memory 51;
[0086] The processor 52 is used to call the executable program instructions stored in the memory 51 and execute the following steps: collect an optical sensor image of the detection target; use a sliding window method to segment the optical sensor image to obtain a set number of image blocks, mark the image blocks with presence or absence and signals, and generate a data set for training the model; input the data set into a deep learning model for training to obtain a trained target detection model; use the target detection model to perform signal detection on the optical sensor image to be detected.
[0087] 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.
[0088] See also Figure 8 , Figure 8Schematic 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 a program instruction 61 that can implement the following steps: collect the optical sensor image of the detection target; segment the optical sensor image using the sliding window method to obtain a set number of image blocks, annotate the image blocks with or without signals, and generate a data set for training the model; input the data set into the deep learning model for training to obtain a trained target detection model; use the target detection model to perform signal detection on 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 (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, and tablets. Among them, the server can be an independent server or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), as well as big data and artificial intelligence platforms.
[0089] 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.
[0090] 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: Collecting optical sensing images of detection targets; Segmenting the optical sensor image using a sliding window method to obtain a set number of image blocks, annotating the image blocks with or without signals, and generating a data set for training a model; Inputting the data set into a deep learning model for training to obtain a trained target detection model; The target detection model is used to perform signal detection on the optical sensing image to be detected.
2. The signal detection method of optical sensing image according to claim 1, characterized in that: The optical sensing image of the target object is collected and detected as follows: A digital optical biosensor is constructed under an optical microscope, and the optical microscope is used to collect an optical sensing image of a detection target object.
3. The signal detection method of optical sensing image according to claim 2, characterized in that: After acquiring the optical sensor image of the detection target object, the method further includes: The optical sensing images are screened out from the optical sensing images, the optical sensing images having the complete micro detection area.
4. The signal detection method of optical sensing image according to claim 3, characterized in that: Before the optical sensor image is segmented by the sliding window method, the method further includes: The screened optical sensing image is manually annotated using the labelme tool, so that the manually annotated annotation box includes the entire micro-detection area.
5. The signal detection method of optical sensing image according to claim 4, characterized in that: After the optical sensor image is segmented by the sliding window method to obtain a set number of image blocks, the method further includes: The image patches containing the annotation box are collected from all the image patches.
6. The signal detection method of optical sensing image according to claim 5, characterized in that: The step of marking the image blocks with or without signals to generate a data set for training the model is as follows: Modifying the position of the annotation box in the collected image block according to the size of the image block to generate a re-annotated image block; A dataset is created based on the re-labeled image patches.
7. The signal detection method of optical sensing image according to any one of claims 1 to 6, characterized in that: The use of the target detection model to perform signal detection on the optical sensor image to be detected is specifically as follows: Performing sliding window processing on the optical sensor image to be predicted by using a sliding window method to generate n image blocks; Inputting the n image blocks into the target detection model in sequence for signal detection, and outputting the signal detection result of each image block through the target detection model; The signal detection results of the n image blocks are combined to obtain the signal detection result of the entire optical sensing image to be predicted, and the signal detection result is visualized.
8. A signal detection device for optical sensing images, characterized in that: include: Image acquisition module: used to acquire optical sensing images of detection targets; Image segmentation module: used to segment the optical sensor image using a sliding window method to obtain a set number of image blocks, annotate the image blocks with or without signals, and generate a data set for training the model; Model training module: used to input the data set into the deep learning model for training to obtain a trained target detection model; Signal detection module: used to perform signal detection on the optical sensing image to be detected using the target detection model.
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 7; 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 7.
Citation Information
Patent Citations
Dense stacking target detection method based on automatic labeling and transfer learning
CN110866476A
Target protein rapid identification and quantification method
CN114463745A
Behavior detection method and device, equipment and storage medium
CN114596532A
