A cutting method for R-banded chromosomes

By using deep learning algorithms combined with shape priors, dynamic RoI Align and adaptive feature fusion modules in R-banded chromosome analysis, the problems of manual dependence and insufficient data in the existing technology are solved, and high-precision, automated chromosome cutting is achieved. , which improves the level of analysis intelligence and model performance.

CN118379733BActive Publication Date: 2024-10-22HANGZHOU DIAGENS BIOTECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410804776.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-21
Publication Date
2024-10-22
Estimated Expiration
2044-06-21

AI Technical Summary

Technical Problem

The existing technology is manual-dependent, time-consuming, and has poor accuracy in R-banded chromosome analysis, and the deep learning algorithm performs poorly with a small amount of data, making it difficult to train a high-precision cutting model.

Method used

It adopts an instance segmentation algorithm based on deep learning, combined with the shape prior guidance module of auxiliary tokens, the boundary alignment module of dynamic RoI Align and the adaptive feature fusion module of attention guidance to improve the performance of the model under a small amount of data and achieve automation and accuracy. Chromosome cutting.

Benefits of technology

It significantly improves the intelligence level of R-banded chromosome analysis, reduces the workload of cytogenetic personnel, and improves cutting accuracy, robustness and generalization ability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118379733B_ABST
    Figure CN118379733B_ABST
Patent Text Reader

Abstract

The present invention proposes a cutting method for R-banded chromosomes. Based on a general deep learning instance segmentation algorithm, the data characteristics of R-banded chromosomes are fully combined, and innovative technologies such as a shape priori guidance module based on auxiliary tokens, a boundary alignment module of dynamic RoI Align, and an adaptive feature fusion module guided by attention are proposed. Automatic and accurate cutting of R-banded chromosomes can be achieved under the condition of a small amount of training data. The beneficial effects of the present invention are: the present invention solves the problem of "difficult training" of the deep learning instance segmentation algorithm under a small amount of R-banded chromosome data, improves the intelligent level of R-banded chromosome analysis, and reduces the workload of cytogenetic personnel.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of chromosome cutting, and mainly relates to a cutting method for R-banded chromosomes. Background Art

[0002] Chromosomes are complexes of nucleic acids and proteins that carry genetic information in organisms. The analysis of chromosomes is of great significance in the diagnosis of genetic diseases and the detection of tumor cells. At present, a commonly used chromosome analysis method in clinical practice is the R-banding technique, which can make the ends of chromosomes very dark, which is very helpful for determining chromosome length, structural changes in the terminal region, and studying deletions or other chromosome rearrangements.

[0003] Traditional R-banding chromosome analysis relies on experienced cytogenetic professionals to obtain the precise region of each chromosome through microscopic observation and manual cutting, and then perform karyotype analysis and diagnosis. This manual analysis method is time-consuming, labor-intensive, and easily affected by human factors, resulting in misjudgment and missed diagnosis.

[0004] In addition, some traditional cutting algorithms based on thresholds, regions, and edges are also used in the industry. However, such methods are easily affected by interference factors such as background and noise, and have poor accuracy, generalization, and robustness, especially when R-banded chromosomes are short and severely adhered. The cutting results require a lot of manpower to correct. Therefore, it is necessary to develop an efficient, accurate, and automated R-banded chromosome cutting method.

[0005] In recent years, with the rapid development of artificial intelligence technology, many breakthroughs have been made in the application of deep learning algorithms in the field of medical image analysis. Among them, the instance segmentation method based on deep learning can realize the automatic detection and segmentation of different target instances in the image, providing a new solution for chromosome cutting. Unlike semantic segmentation, instance segmentation can not only distinguish between foreground and background, but also distinguish between different foreground targets, so it is more suitable for chromosome cutting tasks with multiple independent individuals.

[0006] However, deep learning algorithms usually require a large amount of high-quality training data to achieve a relatively satisfactory performance. The collection of R-banded chromosome data is difficult and the quantity is small, which has become the main bottleneck limiting the performance of deep learning algorithms. In addition, the production levels of different hospitals vary greatly. Directly applying the general deep learning instance segmentation algorithm to the R-banded chromosome cutting task is not enough to support the training of a cutting model with outstanding performance.

[0007] Therefore, the main challenge is how to use a small amount of data to train a high-precision, robust, and generalizable R-banded chromosome cutting model. Summary of the invention

[0008] The purpose of the present invention is to overcome the shortcomings of the prior art and provide a cutting method for R-banded chromosomes. Based on a general deep learning instance segmentation algorithm and fully combining the data characteristics of R-banded chromosomes, innovative technologies such as a shape priori guidance module based on auxiliary tokens, a boundary alignment module of dynamic RoI Align and an adaptive feature fusion module guided by attention are proposed. Automatic and accurate cutting of R-banded chromosomes can be achieved under the condition of a small amount of training data, which improves the intelligent level of R-banded chromosome analysis and greatly reduces the workload of cytogenetic personnel.

[0009] The object of the present invention is achieved by the following technical solution: A method for cutting R-banded chromosomes, comprising the following steps:

[0010] S1. Chromosome image acquisition: Take photos of chromosome specimens to obtain high-resolution R-banded chromosome karyotype images;

[0011] S2, data annotation: annotate the chromosome image, draw a polygonal outline for each chromosome, and assign a unique instance number;

[0012] S3, image preprocessing: perform a series of preprocessing operations on the original image to improve the image quality and highlight the banding characteristics of the chromosome;

[0013] S4. Slicing model training: The preprocessed image is input into the deployed deep learning model to perform instance segmentation operations to segment individual chromosome instances. The model is trained end-to-end using the labeled instance masks as supervision information.

[0014] Among them, in step S4, the following two modules are used to achieve algorithm performance enhancement;

[0015] Based on the shape prior guidance module of auxiliary tokens, learnable auxiliary tokens are added as implicit representations of chromosome shapes on the basis of the Transformer architecture, guiding the model to extract high-dimensional representations that are more consistent with the chromosome shape priors, thereby generating more reasonable segmentation masks;

[0016] The boundary alignment module of dynamic RoI Align,designs the dynamic RoI Align layer, which adaptively adjusts the grid division method,according to the shape and size of the candidate region, and generates an,irregular grid that matches it.

[0017] Furthermore, an adaptive feature fusion module is designed based on the features extracted from the backbone network. The adaptive feature fusion module introduces an attention mechanism, performs weighted fusion on feature maps of different scales according to the learned attention weights, adaptively adjusts the importance of features at different layers, highlights the significant areas related to chromosomes at different layers, and generates a more discriminative hierarchical representation.

[0018] Furthermore, after step S4, redundant mask merging, edge refinement, and morphological optimization related post-processing are performed according to the segmentation results output by the model; the post-processed segmentation results are visualized and displayed to the user through the client, and a download function is provided.

[0019] Furthermore, the R-banded chromosome karyotype map in the shape prior guidance module based on auxiliary tokens is taken as input, and the karyotype map is divided into n patches through graph blocking technology. Each patch generates a corresponding block embedding vector representation through a multi-layer perceptron, which is input into the Transformer encoder as a sequence together with the additional auxiliary tokens and superimposed position information encoding. When outputting the feature map, the output Embeddings of the corresponding positions of the auxiliary tokens are discarded.

[0020] Furthermore, in the boundary alignment module of dynamic RoI Align, the RoI area extracted by the RPN module is used as input, and the size and number of grids are dynamically determined according to the specific size and shape of each RoI; an average pooling operation is performed inside each dynamically generated grid to compress the features within the grid into a single feature value; and finally, the pooling results of all grids are spliced ​​into a feature vector of fixed length for subsequent classification or segmentation tasks.

[0021] The beneficial effects of the present invention are as follows: the present invention solves the "difficult training" problem of deep learning instance segmentation algorithms under a small amount of R-banded chromosome data (the "difficult training" problem here refers to the inability to train a model with outstanding performance under a small amount of data, and the performance includes multiple aspects such as model cutting accuracy, generalization ability, and robustness, and is systematic and multi-faceted), improves the intelligence level of R-banded chromosome analysis, and reduces the workload of cytogenetic personnel. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0023] Figure 1 Schematic diagram of the shape prior guidance module based on auxiliary tokens in the present invention.

[0024] Figure 2 Schematic diagram of the boundary alignment module of dynamic RoI Align in the present invention.

[0025] Figure 3 Schematic diagram of the attention-guided adaptive feature fusion module in the present invention.

[0026] Figure 4 Schematic diagram of the R-banded chromosome cutting model architecture in the present invention. DETAILED DESCRIPTION

[0027] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work belong to the protection scope of the present invention.

[0028] This paper optimizes the SCNet framework of the general deep learning instance segmentation algorithm and combines the characteristics of chromosome data to create an instance segmentation algorithm for R-banded chromosomes. The algorithm performance increase is mainly achieved through the following three modules:

[0029] 1. Shape prior guidance module based on auxiliary tokens

[0030] Chromosomes have certain shape characteristics, such as length, thickness, posture, etc. In order to make full use of this prior knowledge, a shape prior guidance module is designed. Based on the Transformer architecture, learnable auxiliary tokens are added as implicit representations of chromosome shapes to guide the model to extract high-dimensional representations that are more consistent with chromosome shape priors, thereby generating more reasonable segmentation masks.

[0031] Specifically, as attached Figure 1 As shown in the figure, the chromosome karyotype diagram is taken as input, and the karyotype diagram is divided into n patches through Patch Partition (graph partitioning technology). Each patch is serialized into a block through Linear Embedding (multi-layer perceptron) to generate a corresponding Patch Embedding (block embedding vector) representation, which is input into the Transformer Encoder Block (Transformer encoder) together with the additional auxiliary tokens (Aux Tokens, auxiliary sequence) and superimposed with Pos Embedding (position information encoding). When outputting the feature map, the output Embeddings (embedding vectors) of the corresponding positions of the auxiliary tokens (AuxTokens) are discarded.

[0032] Add learnable auxiliary tokens as implicit representation of chromosome shape, as prior guidance information and karyotype Figure 1 With the same input model, the model's ability to learn the shape of each chromosome monomer is strengthened, thereby enhancing the cutting performance of local chromosome adhesions (local areas) in the karyotype.

[0033] 2. Boundary alignment module of dynamic RoI Align

[0034] The standard RoI Pooling and RoI Align techniques use a fixed-size grid to divide the candidate regions, ignoring the diversity of RoI shapes and sizes. Using the same-size grid for all RoIs may lead to inaccurate feature extraction. To address this problem, a dynamic RoI Align layer is designed to adaptively adjust the grid division method according to the shape and size of the candidate region and generate an irregular grid that matches it. Dynamic RoI Align can increase the flexibility of the model to handle different targets, thereby better preserving the shape and boundary information of the chromosome region and improving segmentation accuracy.

[0035] Specifically, as attached Figure 2 As shown in the figure, the RoI region (region of interest) extracted by the RPN module is used as input. According to the specific size and shape of each RoI, the size and number of grids are dynamically determined to better preserve the characteristics of the target. For example, for larger RoIs, more grids may be generated; for RoIs with special aspect ratios, the shape of the grid will also be adjusted accordingly. An average pooling operation is performed inside each dynamically generated grid to compress the features within the grid into a single feature value. Finally, the pooling results of all grids are spliced ​​into a fixed-length feature vector for subsequent classification or segmentation tasks.

[0036] by RoI size, output feature vector length For example, the generated dynamic grid size is , and the corresponding number of grids is ,in

[0037] ;

[0038] ;

[0039] Taking the upper left corner of RoI as the base point, the floating point features are represented by bilinear interpolation. The size is Perform average pooling operation in the grid to obtain the feature vector representation of each grid , in order to further obtain the output of fixed length The characteristic vector of The feature dimension needs to be scaled down to .when Feature dimension is greater than When , random sampling method is used to obtain , otherwise it is obtained by interpolation . Each feature The concatenation is done in order of distance from the base point, and the feature dimensions that exceed T after the concatenation are deleted at the last digit.

[0040] ;

[0041] Floor() means rounding down, ceil() means rounding up, and dim() means the feature dimension.

[0042] Optimizing the fixed RoI Align to a dynamic one can better adapt to various situations such as chromosomes of different lengths, thicknesses, and postures, reduce the alignment deviation of the model's RoI features, make the RoI feature representation more precise and accurate, and thus enhance the model's cutting performance on the boundaries of each chromosome's monomer mask.

[0043] 3. Attention-guided Adaptive Feature Fusion Module

[0044] Based on the features extracted by the backbone network, an adaptive feature fusion module is designed, and the attention mechanism is introduced. The feature maps of different scales are weighted and fused according to the learned attention weights, and the importance of features at different layers is adaptively adjusted to highlight the significant regions related to chromosomes at different layers, thus generating a more discriminative hierarchical representation. The attention-guided adaptive feature fusion can better extract and utilize the feature information related to chromosome instances and improve segmentation accuracy.

[0045] Specifically, as attached Figure 3 As shown in the figure, with Swin Transformer - FPN as the backbone network, the three scale features C3, C4, and C5 outputted are adaptively fused through Adaptive Fusion C3, Adaptive Fusion C4, and AdaptiveFusion C5 (C3 aggregation operator, C4 aggregation operator, and C5 aggregation operator). The overall architecture of AdaptiveFusion C3 - Adaptive Fusion C5 is the same, and the difference is mainly reflected in the processing of scales and channels of feature maps at different levels to ensure consistent output alignment.

[0046] By adding an attention-guided adaptive feature fusion module to the backbone network, the model can adaptively adjust the importance of features at different layers, highlight the significant regions and important features related to chromosomes, and thus enhance the model's ability to extract features from chromosome karyotypes.

[0047] Combining the above three technical points, the present invention provides a cutting method for R-banded chromosomes. The overall structure of the model is shown in the attached figure. Figure 4 As shown in the figure, the model training process can be briefly described as the following steps:

[0048] 1. Chromosome image acquisition: Use a high-power microscopy scanning system to take pictures of chromosome specimens and obtain high-resolution R-banded chromosome karyotype images.

[0049] 2. Data annotation: Cytogenetic experts annotate chromosome images, draw polygonal outlines for each chromosome, and assign unique instance numbers. Vectorized annotation formats, such as COCO format, are used to record the category, location, boundary, and other information of each instance.

[0050] 3. Image preprocessing: Perform a series of preprocessing operations on the original image, including normalization, denoising, CLAHE, etc., to improve the image quality and highlight the banding characteristics of the chromosome.

[0051] 4. Online data enhancement: Through data enhancement methods such as random rotation, random flipping, random scaling, random color change, etc., the training data set is expanded online to improve the generalization ability of the model.

[0052] 5. Cutting model training: The preprocessed chromosome image is used as input, and the annotated instance mask is used as supervision information to train the model end-to-end. The model consists of three main parts: feature extraction backbone network, region proposal network (RPN) and region of interest (RoI) head. The backbone network is based on Swin Transformer-FPN (feature pyramid) and integrates shape prior guidance module and adaptive feature fusion module. RPN generates candidate target regions based on feature maps. RoI head classifies, regresses bounding boxes and predicts masks for candidate regions. Simultaneous detection and segmentation of target instances are achieved by jointly optimizing multi-task loss functions. The loss function includes classification loss, bounding box regression loss and mask segmentation loss, and uses cross entropy function and Smooth L1 function. The optimization strategy uses AdamW, and sets the learning rate warm-up and decay mechanism. The specific parameter settings are as shown in the following table:

[0053] parameter Numeric Batch Size 2 Learning Rate 0.0001 Beta1 0.9 Beta2 0.999 Weight Decay 0.05 Learning rate warmup 1000 iterations Learning rate decay mechanism Step LR ;

[0054] 6. Inference and post-processing: Use the trained model to infer the new chromosome image and generate the category, bounding box and segmentation mask of each chromosome instance. Post-process the prediction results, including non-maximum suppression (NMS) to remove redundant detections, threshold filtering of low-confidence targets, and mask image storage. Each chromosome mask is represented by a different color or number to facilitate subsequent analysis.

[0055] 7. Performance evaluation: The performance of the cutting model is evaluated on the test set, using standard detection indicators such as Average Precision (AP) and Average Recall (AR), as well as segmentation indicators such as Mask IoU (Intersection over Union) to comprehensively measure the accuracy and completeness of chromosome instance cutting.

[0056] 8. Model optimization: Analyze the error samples of the cutting model, summarize the rules, optimize and improve the data preprocessing, network structure, loss function, etc., to improve the performance of chromosome instance cutting.

[0057] In summary, the present invention provides an R-banded chromosome instance segmentation method based on deep learning, which fully combines the characteristics of R-banded chromosome data, proposes technical innovations such as a shape prior guidance module based on auxiliary tokens, a boundary alignment module of dynamic RoI Align, and an adaptive feature fusion module guided by attention, which can significantly improve the accuracy, robustness and generalization of chromosome instance cutting. Compared with the existing methods, the present invention makes full use of the data characteristics of R-banded chromosomes, better handles the scale and shape changes of chromosome regions, improves the accuracy and completeness of cutting results, can significantly improve the automation of chromosome karyotype analysis, reduce manual labor intensity, and provide strong support for clinical applications such as genetic disease diagnosis and tumor screening. Example 1

[0058] This example illustrates the deployment and reasoning process of the cutting method for R-banded chromosomes, as well as how to effectively use the proposed deep learning model to automatically cut and analyze chromosome images in practical applications.

[0059] 1. System environment and dependency configuration

[0060] Server configuration: CPU is Intel Xeon E5-2620 v4, GPU is NVIDIA Tesla V100, memory is 64GB, and operating system is Ubuntu 18.04.

[0061] Software environment: Python 3.7, PyTorch 1.7.0, CUDA 10.2, and other dependent libraries such as NumPy, OpenCV, etc.

[0062] 2. Model Deployment

[0063] Model conversion: Convert the trained model to ONNX (Open Neural Network Exchange Format) using PyTorch to support deployment on different platforms.

[0064] Server deployment: Configure a deep learning inference engine (such as TensorRT) on the server, load the converted model, and set up the API interface to support client requests.

[0065] Client-side design: Develop a user interface that allows users to upload R-banded chromosome images to be analyzed and displays the segmentation results.

[0066] 3. Model Reasoning

[0067] Image upload: Users upload R-banded chromosome karyotype images through the client.

[0068] Preprocessing: After receiving the image, the server performs preprocessing operations such as adaptive enhancement and spatial correction on the image.

[0069] Model reasoning: The preprocessed image is input into the deployed deep learning model for instance segmentation to segment individual chromosome instances.

[0070] Post-processing: Perform post-processing such as redundant mask merging, edge refinement, and morphological optimization based on the segmentation results output by the model to improve segmentation accuracy.

[0071] Result display: The segmentation results (including chromosome boundaries, labels and other information) are displayed to users through the client, and a download function is provided.

[0072] 4. Application Scenarios

[0073] It can be applied to biomedical research, genetic disease diagnosis, tumor cell detection and other fields, providing researchers and doctors with efficient and accurate chromosome analysis tools to assist in the interpretation of genetic information and early diagnosis of diseases.

[0074] This embodiment provides a complete deployment and reasoning process of an R-banded chromosome segmentation method based on deep learning, from system configuration, model training optimization to each step of actual deployment and application, demonstrating how to apply advanced algorithm models to actual chromosome image segmentation tasks to improve the efficiency and accuracy of chromosome research and related medical applications.

[0075] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.

Claims

1. A method for cutting R-banded chromosomes, Features: The steps include: S1. Chromosome image acquisition: Take photos of chromosome specimens to obtain high-resolution R-banded chromosome karyotype images; S2, data annotation: annotate the chromosome image, draw a polygonal outline for each chromosome, and assign a unique instance number; S3, image preprocessing: preprocess the original image to highlight the banding characteristics of chromosomes; S4. Slicing model training: The preprocessed image is input into the deployed deep learning model to perform instance segmentation operations to segment individual chromosome instances. The model is trained end-to-end using the labeled instance masks as supervision information. Among them, in step S4, the following two modules are used to achieve algorithm performance enhancement; Based on the shape prior guidance module of auxiliary tokens, learnable auxiliary tokens are added as implicit representations of chromosome shapes on the basis of the Transformer architecture, guiding the model to extract high-dimensional representations that are more consistent with the chromosome shape priors, thereby generating more reasonable segmentation masks; The boundary alignment module of dynamic RoI Align designs a dynamic RoI Align layer to adaptively adjust the grid division method according to the shape and size of the candidate region and generate an irregular grid that matches it; The R-banded chromosome karyotype map in the shape prior guidance module based on auxiliary tokens is used as input, and the karyotype map is divided into n patches through the graph blocking technology. Each patch generates a corresponding block embedding vector representation through a multi-layer perceptron, which is input into the Transformer encoder together with the additional auxiliary tokens and superimposed with the position information encoding as a sequence. When outputting the feature map, the output embedding vector Embeddings of the corresponding position of the auxiliary tokens are discarded.

2. The method for cutting an R-banded chromosome according to claim 1, Features: An adaptive feature fusion module is designed based on the features extracted from the backbone network. The adaptive feature fusion module introduces an attention mechanism, performs weighted fusion on feature maps of different scales according to the learned attention weights, adaptively adjusts the importance of features at different layers, highlights the significant areas related to chromosomes at different layers, and generates a more discriminative hierarchical representation.

3. The method for cutting an R-banded chromosome according to claim 2, Features: After step S4, redundant mask merging, edge refinement, and morphological optimization are performed based on the segmentation results output by the model. The post-processed segmentation results are visualized and displayed to the user through the client, and a download function is provided.

4. The method for cutting an R-banded chromosome according to claim 3, Features: In the boundary alignment module of dynamic RoI Align, the RoI area extracted by the RPN module is used as input, and the size and number of grids are dynamically determined according to the specific size and shape of each RoI; an average pooling operation is performed inside each dynamically generated grid to compress the features within the grid into a single feature value; finally, the pooling results of all grids are spliced ​​into a feature vector of fixed length for subsequent classification or segmentation tasks.

5. The method for cutting an R-banded chromosome according to claim 4, Features: In the boundary alignment module of dynamic RoI Align, set the RoI size of M×N and the output feature vector length of T, and the generated dynamic grid size is L M ×L N , the corresponding number of grids is m×n, where Taking the upper left corner of RoI as the base point, the floating point features are represented by bilinear interpolation, and the m×n size L M ×L N The average pooling operation is performed in the grid to obtain the feature vector representation V of each grid G , each V G Scale the feature dimension to V′ G , the output is a feature vector of fixed length T; when V G Feature dimension is greater than V′ G When V′ is obtained by random sampling G , otherwise V′ is obtained by interpolation G ; Each feature V′ G The concatenation is done in order of distance from the base point, and the feature dimensions that exceed T after the concatenation are deleted at the last digit; Floor() means rounding down, ceil() means rounding up, and dim() means the feature dimension.