Cell segmentation method and device and electronic equipment

By introducing the attention mechanism and nuclear segmentation detection model into the decoder, the problem of accuracy and efficiency of cell contour segmentation in tissue FISH images is solved, accurate segmentation of fluorescence in situ hybridization images is achieved, and recognition accuracy and efficiency are improved. .

CN118570225APending Publication Date: 2024-08-30GUANGDONG MEDICAL UNIV +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410565416.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-09
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

Existing image recognition methods are difficult to achieve accurate cell contour segmentation in tissue FISH images, and often under-segmentation or over-segmentation occurs, resulting in low recognition accuracy and low efficiency, especially due to the influence of cell shape differences, overlap and background impurities. .

Method used

Add an attention mechanism to the decoder to build a nuclear segmentation detection model, extract image features through the encoder and use the attention processing layer to upsample and filter the features to enhance the model's focus on useful features, thereby realizing fluorescence in situ hybridization Precise segmentation of cell outlines in images.

Benefits of technology

It effectively avoids under-segmentation and over-segmentation, improves the accuracy and efficiency of cell contour recognition, and improves the performance of fluorescence in situ hybridization image segmentation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118570225A
    Figure CN118570225A
Patent Text Reader

Abstract

The invention relates to a cell segmentation method and device and electronic equipment, and belongs to the technical field of computer vision. The method comprises the following steps: firstly, constructing a nucleus segmentation detection model, and identifying a cell detection area and a cell contour in a fluorescence in-situ hybridization image by using the nucleus segmentation detection model; and then mapping the cell detection area and the cell contour to a fluorescence in-situ hybridization image, and performing cell segmentation on the fluorescence in-situ hybridization image. According to the cell segmentation method provided by the invention, under-segmentation and over-segmentation can be avoided, so that the accuracy of cell segmentation is effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image recognition technology, and more specifically to a cell segmentation method, device and electronic equipment. Background Art

[0002] Fluorescence in situ hybridization (FISH) is a technique used to detect and locate specific DNA or RNA sequences, and tissue FISH is an application of fluorescence in situ hybridization (FISH) in histological research. By using a fluorescence microscope to observe tissue sections, the expression and location of the target sequence can be determined based on the fluorescence signal. Based on the intensity, quantity and location of the fluorescence signal, the expression level of the target DNA or RNA and the location distribution in the cell can be determined, thereby determining whether gene fusion, breakage, etc. have occurred.

[0003] Usually, for FISH positive and negative discrimination, it is necessary to individually count the fluorescence signals in each cell. Therefore, image segmentation of its DAPI (diamidino-phenyl-indole) channel becomes an indispensable image processing step in positive and negative judgment image processing.

[0004] However, for tissue FISH, due to the large differences in cell shape and nuclear size, the overlapping of cells in tissue samples, and the interference of background impurities, the segmentation accuracy of existing image recognition methods, such as the watershed algorithm, is related to the selection of foreground seed points. Impurities in tissue FISH images and imaging differences of some samples will affect their segmentation accuracy, making it difficult to achieve accurate segmentation of cell contours in tissue FISH images (fluorescence in situ hybridization images). Under-segmentation or over-segmentation often occurs, resulting in low accuracy and low efficiency in cell contour recognition of tissue FISH images.

[0005] As for the traditional encoder and decoder segmentation model, due to the limitations of the sample data set and model architecture, when faced with some cell images with a large number of adhesions, it will also be affected by irrelevant image features, resulting in under-segmentation and over-segmentation in segmentation.

[0006] Therefore, in order to solve this problem, this application adds an attention mechanism in the decoder to make the model pay more attention to useful features in the image, thereby improving its segmentation performance. Summary of the invention

[0007] In view of this, in order to solve at least one of the technical problems existing in the above-mentioned related technologies, the embodiments of the present application provide a cell segmentation method, device and electronic device, which can avoid under-segmentation and over-segmentation, thereby achieving accurate segmentation of cell contours in fluorescence in situ hybridization images, and improving the accuracy and efficiency of cell contour recognition in fluorescence in situ hybridization images.

[0008] In order to achieve the above object, the present invention adopts the following technical solution:

[0009] In one aspect, the present invention discloses a cell segmentation method, comprising the following steps:

[0010] S1, obtaining fluorescence in situ hybridization images and performing preprocessing;

[0011] S2. Constructing a nuclear segmentation detection model, and using the nuclear segmentation detection model to identify cell detection areas and cell contours in fluorescent in situ hybridization images; the nuclear segmentation detection model includes an encoder and a decoder;

[0012] The encoder is used to extract image features of fluorescence in situ hybridization processed images;

[0013] The decoder is used to perform fusion upsampling of image features based on attention;

[0014] S3. Map the cell detection area and the cell outline to the fluorescence in situ hybridization image, and perform cell segmentation on the fluorescence in situ hybridization image according to the mapping result.

[0015] Furthermore, the preprocessing includes:

[0016] Adaptive enhancement of fluorescence in situ hybridization images.

[0017] Adjust the size of the enhanced image by downsampling;

[0018] And normalize the adjusted image.

[0019] Furthermore, there are n encoders and n-1 decoders, and the step of fusing and upsampling image features based on attention by the decoder includes:

[0020] S1, filtering the first image feature extracted by the nth encoder based on attention;

[0021] S2, the first decoder performs fusion upsampling according to the filtered first image features and the second image features extracted by the n-1th encoder;

[0022] S3, filtering the sampling results of the first decoder based on attention;

[0023] S4, the second decoder performs fusion up-sampling according to the filtered sampling result of the first decoder and the third image feature extracted by the n-2 encoder;

[0024] S5. According to steps S3-S4, the sampling results of the second decoder to the n-2 decoder are filtered and fused up-sampled in sequence until the n-1 decoder outputs the final up-sampling result.

[0025] Furthermore, the step of filtering the image features / sampling results based on attention includes:

[0026] After upsampling the image features / sampling results to be filtered, they enter the attention processing layer together with the image features to be fused for filtering;

[0027] The attention processing layer includes a first feature extraction unit and a second feature extraction unit with the same structure, the first feature extraction unit and the second feature extraction unit are connected to a feature fusion unit, and the output end of the feature fusion unit is connected to a feature filtering unit and a feature point multiplication unit in sequence;

[0028] The feature point multiplication unit is used to perform a point multiplication operation on the output result of the feature filtering unit and the upsampled image feature / sampling result, and use the point multiplication result as the attention-based filtering result.

[0029] Furthermore, the first feature extraction unit / the second feature extraction unit sequentially comprises a two-dimensional convolution layer and a batch normalization layer;

[0030] The feature fusion unit realizes feature fusion by performing an Add operation;

[0031] The feature filtering unit performs feature filtering through the ReLU function, and outputs the filtering result through a two-dimensional convolution layer, a batch normalization layer, and a Sigmoid function in sequence.

[0032] Furthermore, the encoder includes multiple Stages, each Stage includes multiple MBConvs, and the MBConvs include, from input to output, a first 1x1 convolution, a k*k DWConv convolution, a SE module, a second 1x1 convolution, and a Dropout layer.

[0033] Furthermore, step S3 also includes setting a cell area threshold, and filtering the mapped cell detection area based on the threshold.

[0034] Furthermore, in step S3, cell segmentation is achieved by performing an image XOR operation on the mapped cell detection area and the cell outline.

[0035] In another aspect, the present invention discloses a cell segmentation device, comprising:

[0036] An image acquisition module is used to acquire fluorescence in situ hybridization images and perform preprocessing;

[0037] A cell recognition module is used to construct a nuclear segmentation detection model, and use the nuclear segmentation detection model to identify the cell detection area and cell outline in the fluorescent in situ hybridization image; the nuclear segmentation detection model includes an encoder and a decoder;

[0038] The encoder is used to extract image features of fluorescence in situ hybridization processed images;

[0039] The decoder is used to perform fusion upsampling of image features based on attention;

[0040] The cell segmentation module is used to map the cell detection area and the cell outline to the fluorescence in situ hybridization image, and to perform cell segmentation on the fluorescence in situ hybridization image according to the mapping result.

[0041] On the other hand, the present invention provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the cell segmentation method as described in any one of the above items when executing the computer program.

[0042] On the other hand, the present invention provides a computer-readable storage medium storing a computer program, wherein the computer program implements the cell segmentation method as described in any one of the above items when executed by a processor.

[0043] It can be seen from the above technical solutions that the present invention discloses a cell segmentation method, device and electronic device. Compared with the prior art, the present invention first constructs a nuclear segmentation detection model, and uses the nuclear segmentation detection model to identify the cell detection area and cell contour in the fluorescence in situ hybridization image; then the cell detection area and cell contour are mapped to the fluorescence in situ hybridization image, and the fluorescence in situ hybridization image is subjected to cell segmentation.

[0044] The present application adds an attention mechanism in the decoder to focus more on useful features in the image when automatically identifying and processing fluorescence in situ hybridization images, thereby achieving accurate segmentation of cell contours in fluorescence in situ hybridization images, solving the problems of under-segmentation and over-segmentation in traditional algorithms, and improving the accuracy and efficiency of cell contour recognition in fluorescence in situ hybridization images. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0046] Figure 1 is a flow chart of the cell segmentation method in the present application;

[0047] Figure 2 It is a schematic diagram of the structure of the encoder in this application;

[0048] Figure 3 It is a schematic diagram of the structure of a nuclear segmentation detection model in this application;

[0049] Figure 4 This is an example diagram of the process of fusing and upsampling image features in this application;

[0050] Figure 5 is a schematic diagram of the structure of the attention processing layer in this application;

[0051] Figure 6 It is a schematic diagram of a preferred decoder structure in this application;

[0052] Figure 7 is a schematic diagram of a fluorescence in situ hybridization image in this application;

[0053] Figure 8 is a schematic diagram of a fluorescence in situ hybridization processing image in this application;

[0054] Fig. 9 is a schematic diagram of the cell detection area result image in this application;

[0055] Fig.10 is a schematic diagram of the cell outline result image in this application;

[0056] Fig.11 It is a schematic diagram of the structure of the cell segmentation device in this application;

[0057] Fig.12 It is a schematic diagram of the hardware structure of an electronic device in this application. DETAILED DESCRIPTION

[0058] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0059] It should be noted that, although the functional modules are divided in the device schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart. The terms "first", "second", etc. in the specification, claims and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0060] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0061] Embodiment 1

[0062] The present invention discloses a cell segmentation method. Figure 1 , including but not limited to the following steps S1-S3:

[0063] S1, obtaining fluorescence in situ hybridization images and performing preprocessing;

[0064] S2. Constructing a nuclear segmentation detection model, and using the nuclear segmentation detection model to identify cell detection areas and cell contours in fluorescent in situ hybridization images; the nuclear segmentation detection model includes an encoder and a decoder;

[0065] The encoder is used to extract image features of fluorescence in situ hybridization processed images;

[0066] The decoder is used to perform fusion upsampling of image features based on attention;

[0067] S3. Map the cell detection area and cell outline to the fluorescence in situ hybridization image, and perform cell segmentation on the fluorescence in situ hybridization image.

[0068] In order to further optimize the above technical solution,

[0069] In step S1, image preprocessing includes image adaptive enhancement, image size adjustment and image normalization. Step S1 may include but is not limited to the following steps:

[0070] Adopting an adaptive enhancement algorithm to adaptively enhance the fluorescence in situ hybridization image to obtain a first processed image;

[0071] Performing downsampling processing on the first processed image to adjust the first processed image to a given image size to obtain a second processed image;

[0072] The second processed image is subjected to image normalization processing to obtain a fluorescent in situ hybridization processed image.

[0073] In some embodiments, first, the fluorescence in situ hybridization image is processed using an adaptive enhancement algorithm, and then the fluorescence in situ hybridization image after adaptive enhancement is downsampled to a preset image size, and finally the fluorescence in situ hybridization image after size adjustment is normalized and its corresponding pixel value is scaled to between 0 and 1, and finally, the normalized image is used as input to the nuclear segmentation detection model.

[0074] In step S2, the constructed nuclear segmentation detection model includes an encoder and a decoder. The encoder is used to extract the image features of the fluorescence in situ hybridization processed image; the image features are input into the decoder, and the attention module in the decoder is used to perform image feature fusion upsampling processing to determine the cell detection area and cell contour prediction results.

[0075] The present invention uses the encoder in the nuclear segmentation detection model to extract image features from the above-mentioned fluorescent in situ hybridization processed image, and then inputs the extracted image features into the decoder in the nuclear segmentation detection model for feature fusion upsampling. Compared with the traditional decoder, the embodiment of the present application adds an attention module to the decoder, which can filter some irrelevant image features. By using the attention processing layer to assist the model in extracting key feature information of the image, the learning performance of the nuclear segmentation detection model for cell contours can be improved.

[0076] In this embodiment, there are n encoders and n-1 decoders;

[0077] In a preferred embodiment, referring to Figure 2 , Figure 2 This is a schematic diagram of an optional encoder structure of a nuclear segmentation detection model in an embodiment of the present application, wherein the encoder is used to extract image features, including multiple Stages, each Stage containing multiple MBConvs, and the MBConv structure includes, from input to output, the following in sequence:

[0078] The first 1x1 convolution (for dimensionality increase, including BN and Swish), k*k DWConv convolution, SE module, the second 1x1 convolution (for dimensionality reduction, including BN), and Dropout layer.

[0079] Furthermore, the decoder performs the steps of fusing and upsampling the image features based on attention, including:

[0080] S1, filtering the first image feature extracted by the nth encoder based on attention;

[0081] S2, the first decoder performs fusion upsampling according to the filtered first image features and the second image features extracted by the n-1th encoder;

[0082] S3, filtering the sampling results of the first decoder based on attention;

[0083] S4, the second decoder performs fusion up-sampling according to the filtered sampling result of the first decoder and the third image feature extracted by the n-2 encoder;

[0084] S5. According to steps S3-S4, the sampling results of the second decoder to the n-2 decoder are filtered and fused up-sampled in sequence until the n-1 decoder outputs the final up-sampling result.

[0085] The filtering of the image features / sampling results based on attention includes: after upsampling the image features / sampling results to be filtered, the image features / sampling results to be filtered are filtered together with the image features to be fused in the attention processing layer;

[0086] In an exemplary embodiment, Figure 3 As shown in FIG. 1 , the encoder is set to 4 and the decoder is set to 3. When performing fusion upsampling, the image features of encoder 4 are first upsampled to make the image feature size consistent with the feature size of encoder 3. Then, the upsampling result of encoder 4 and the image features of encoder 3 are used as input to enter the attention processing layer for feature filtering and extraction. Then, referring to Figure 4 , the result of the attention processing layer is concatenated with the image features extracted by encoder 3, and finally the concatenated features are further processed using a convolutional layer;

[0087] Secondly, the upsampling result of decoder 1 is filtered according to the above process, and is concatenated and fused with the features extracted by encoder 2 for upsampling.

[0088] Further, refer to Figure 5 In this embodiment, the attention processing layer includes a first feature extraction unit and a second feature extraction unit with the same structure. The first feature extraction unit and the second feature extraction unit are connected to a feature fusion unit. The output end of the feature fusion unit is connected to a feature filtering unit and a feature point multiplication unit in sequence.

[0089] The feature point multiplication unit is used to perform a point multiplication operation on the output result of the feature filtering unit and the upsampled image feature / sampling result, and use the point multiplication result as the attention-based filtering result.

[0090] In one embodiment, the structure of the decoder is as follows Figure 6 As shown, the first feature extraction unit / the second feature extraction unit sequentially includes a two-dimensional convolution layer and a batch normalization layer;

[0091] The feature fusion unit realizes feature fusion by performing Add operation;

[0092] The feature filtering unit performs feature filtering through the ReLU function, and outputs the filtering results through the two-dimensional convolution layer, batch normalization layer, and Sigmoid function in sequence;

[0093] In an exemplary embodiment, two input image features input1 and input2 need to be subjected to feature upsampling fusion, wherein input1 is an image feature that has been upsampled to have the same size as input2, i.e., a feature to be filtered, wherein the feature input of encoder layer 4 is used as input1, and the feature input of encoder layer 3 is used as input2; the features obtained by respectively performing conv2d and batchnorm2d operations on input1 and input2 are subjected to an Add fusion operation, and then filtered through ReLU, and Conv2d, BatchNorm2d, and Sigmoid operations are performed in sequence to extract key features from the image features, and the obtained output is further subjected to a dot product operation with input1; finally, the dot product result is fused and upsampled with input2, and the feature splicing result is further extracted and processed to enhance the segmentation performance, thereby obtaining the cell detection area and cell outline in the fluorescence in situ hybridization image.

[0094] Preferably, after the nuclear segmentation detection model is constructed, a sample image dataset is obtained first (the sample image dataset includes a large number of medical clinical fluorescence in situ hybridization sample images), and the nuclear segmentation detection model is trained using the sample image dataset.

[0095] Furthermore, in step S3, the cell detection area and the cell outline are mapped to the fluorescence in situ hybridization image, and the fluorescence in situ hybridization image is segmented into cells.

[0096] In this embodiment, the Sigmoid function is used to map the cell detection area and cell contour prediction results output by the nuclear segmentation detection model, so that the results are mapped between [0,1]. At the same time, a mapping threshold is set to obtain the final cell detection area or cell contour according to the mapping threshold. Optionally, the preset threshold is 0.5. When the mapping result value corresponding to the pixel point is greater than 0.5, the pixel point is determined to be a cell detection area or a cell contour.

[0097] In a preferred embodiment, step S3 further includes setting a cell area threshold, filtering the mapped cell detection area based on the threshold, and performing gene sequence analysis using the cell detection image.

[0098] Finally, cell segmentation is achieved by performing image XOR operation on the mapped cell detection area and cell contour.

[0099] In some embodiments, reference Figure 7 , Figure 7It is an optional schematic diagram of the fluorescence in situ hybridization image in the embodiment of the present application. The tumor area is found under a microscope, and then the camera gain and exposure values ​​are manually adjusted until the field of view is clear, and then the image capture is clicked to collect the fluorescence in situ hybridization image.

[0100] Reference Figure 8 , Figure 8 is an optional schematic diagram of a fluorescent in situ hybridization processing image in the embodiment of the present application. Figure 7 The fluorescence in situ hybridization image collected in the process is subjected to image adaptive enhancement, image size adjustment and image normalization in sequence to obtain the fluorescence in situ hybridization processed image.

[0101] Reference Fig. 9 , Fig. 9 is an optional schematic diagram of the cell detection region result image in the embodiment of the present application, using the nuclear segmentation detection model to Figure 8 The fluorescent in situ hybridization processed image is used to detect the cell area, and then a Sigmoid operation is performed to obtain the result image of the cell detection area.

[0102] Reference Fig.10 , Fig.10 is an optional schematic diagram of the cell outline result image in the embodiment of the present application, using the nuclear segmentation detection model to Figure 8 The fluorescence in situ hybridization processed image is used to detect the cell contour, and then a Sigmoid operation is performed to obtain the cell contour result image.

[0103] Embodiment 2

[0104] This embodiment discloses a cell segmentation device, such as Fig.11 ,include:

[0105] An image acquisition module is used to acquire fluorescence in situ hybridization images and perform preprocessing;

[0106] A cell recognition module is used to construct a nuclear segmentation detection model, and use the nuclear segmentation detection model to identify the cell detection area and cell outline in the fluorescent in situ hybridization image; the nuclear segmentation detection model includes an encoder and a decoder;

[0107] The encoder is used to extract image features of fluorescence in situ hybridization processed images;

[0108] The decoder is used to perform fusion upsampling of image features based on attention;

[0109] The cell segmentation module is used to map the cell detection area and the cell outline to the fluorescence in situ hybridization image, and to perform cell segmentation on the fluorescence in situ hybridization image according to the mapping result.

[0110] The specific implementation of the fluorescence in situ hybridization image processing device is basically the same as the specific embodiment of the fluorescence in situ hybridization image processing method described above, and will not be described in detail here.

[0111] In addition, the present invention also provides an electronic device, the electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements any of the above cell segmentation methods when executing the computer program. The electronic device can be any intelligent terminal including a tablet computer, a car computer, etc.

[0112] Specific reference Fig.12 , Fig.12 The hardware structure of an electronic device of another embodiment is illustrated, and the electronic device includes:

[0113] The processor 901 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;

[0114] The memory 902 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 902 can store an operating system and other application programs. When the technical solution provided in the embodiments of this specification is implemented by software or firmware, the relevant program code is stored in the memory 902, and the processor 901 calls and executes the cell segmentation method of the embodiment of the present application;

[0115] Input / output interface 903, used to implement information input and output;

[0116] Communication interface 904, used to realize communication interaction between the device and other devices, which can be realized by wired mode (such as USB, network cable, etc.) or wireless mode (such as mobile network, WIFI, Bluetooth, etc.);

[0117] A bus 905 that transmits information between the various components of the device (e.g., the processor 901, the memory 902, the input / output interface 903, and the communication interface 904);

[0118] The processor 901 , the memory 902 , the input / output interface 903 and the communication interface 904 are connected to each other in communication within the device via a bus 905 .

[0119] In addition, the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, wherein the computer program implements the cell segmentation method as described in any one of the above items when executed by a processor.

[0120] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0121] The cell segmentation method disclosed in the present application can automatically identify and process fluorescence in situ hybridization images, achieve accurate segmentation of cell contours in fluorescence in situ hybridization images, thereby solving the under-segmentation and over-segmentation problems that occur in traditional algorithms, and improve the accuracy and efficiency of cell contour recognition in fluorescence in situ hybridization images.

[0122] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0123] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A cell segmentation method, characterized in that: include: S1, obtaining fluorescence in situ hybridization images and performing preprocessing; S2. Constructing a nuclear segmentation detection model, and using the nuclear segmentation detection model to identify cell detection areas and cell contours in fluorescent in situ hybridization images; the nuclear segmentation detection model includes an encoder and a decoder; The encoder is used to extract image features of fluorescence in situ hybridization processed images; The decoder is used to perform fusion upsampling of image features based on attention; S3. Map the cell detection area and the cell outline to the fluorescence in situ hybridization image, and segment the cells in the fluorescence in situ hybridization image according to the mapping result.

2. A cell segmentation method according to claim 1, characterized in that: The pre-processing comprises: Adaptive enhancement of fluorescence in situ hybridization images. Adjust the size of the enhanced image by downsampling; And normalize the adjusted image.

3. A cell segmentation method according to claim 1, characterized in that: The encoders have n, the decoders have n-1, and the decoders perform fusion upsampling of image features based on attention, including: S1, filtering the first image feature extracted by the nth encoder based on attention; S2, the first decoder performs fusion upsampling according to the filtered first image features and the second image features extracted by the n-1th encoder; S3, filtering the sampling results of the first decoder based on attention; S4, the second decoder performs fusion up-sampling according to the filtered sampling result of the first decoder and the third image feature extracted by the n-2 encoder; S5. According to steps S3-S4, the sampling results of the second decoder to the n-2 decoder are filtered and fused up-sampled in sequence until the n-1 decoder outputs the final up-sampling result.

4. A cell segmentation method according to claim 3, characterized in that: The steps of filtering image features / sampling results based on attention include: After upsampling the image features / sampling results to be filtered, they enter the attention processing layer together with the image features to be fused for filtering; The attention processing layer includes a first feature extraction unit and a second feature extraction unit with the same structure, the first feature extraction unit and the second feature extraction unit are connected to a feature fusion unit, and the output end of the feature fusion unit is connected to a feature filtering unit and a feature point multiplication unit in sequence; The feature point multiplication unit is used to perform a point multiplication operation on the output result of the feature filtering unit and the upsampled image feature / sampling result.

5. A cell segmentation method according to claim 4, characterized in that: The first feature extraction unit / the second feature extraction unit sequentially comprises a two-dimensional convolution layer and a batch normalization layer; The feature fusion unit realizes feature fusion by performing an Add operation; The feature filtering unit performs feature filtering through the ReLU function, and outputs the filtering result through a two-dimensional convolution layer, a batch normalization layer, and a Sigmoid function in sequence.

6. A cell segmentation method according to claim 3, characterized in that: The encoder includes multiple Stages, each Stage includes multiple MBConvs, and the MBConvs include, from input to output, a first 1x1 convolution, a k*k DWConv convolution, a SE module, a second 1x1 convolution, and a Dropout layer.

7. A cell segmentation method according to claim 1, characterized in that: Step S3 also includes setting a cell area threshold and filtering the mapped cell detection area based on the threshold.

8. A cell segmentation method according to claim 1, characterized in that: In step S3, cell segmentation is achieved by performing an image XOR operation on the mapped cell detection area and the cell outline.

9. A cell segmentation device, characterized in that: include: An image acquisition module is used to acquire fluorescence in situ hybridization images and perform preprocessing; A cell recognition module, used to identify the cell detection area and cell outline in the fluorescence in situ hybridization image using a nuclear segmentation detection model; the nuclear segmentation detection model includes an encoder and a decoder; The encoder is used to extract image features of fluorescence in situ hybridization processed images; The decoder is used to perform fusion upsampling of image features based on attention; The cell segmentation module is used to map the cell detection area and the cell outline to the fluorescence in situ hybridization image, and to perform cell segmentation on the fluorescence in situ hybridization image according to the mapping result.

10. An electronic device, characterized in that: The electronic device comprises a memory and a processor, the memory stores a computer program, and the processor implements the cell segmentation method according to any one of claims 1 to 8 when executing the computer program.