A method for identifying the number of R-banded chromosomes
Through the feature extraction network based on the zoom mechanism, combined with the multi-level intra-class and intra-class difference maximization loss function and adversarial loss, the problem of low accuracy and large cross-hospital differences in R-banded chromosome number identification is solved, and fine-grained classification and pan-scale classification are improved. ization ability.
Patent Information
- Application Number
- CN202410791314.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-19
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-06-19
AI Technical Summary
The existing technology has low accuracy in identifying R-banded chromosome numbers, especially due to the small amount of chromosome information, high noise, and large differences in production in different hospitals, resulting in poor classification accuracy and prone to misclassification problems.
A feature extraction network based on the zoom mechanism is used, combined with the global network and local network, to maximize the loss function and adversarial loss through multi-level internal and external class differences to improve the model's fine-grained classification and cross-hospital generalization capabilities.
It improves the accuracy and generalization performance of R-banded chromosome number identification, reduces the differences between different hospitals, and reduces significant errors in number identification.
Smart Images

Figure CN118366155B
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of chromosome identification, and mainly relates to a numbering identification method for R-banded chromosomes. Background Art
[0002] In conventional deep learning chromosome recognition methods, the input image is only the global image of the chromosome, and chromosome number recognition mainly relies on local band features at different positions for recognition, so the overall recognition accuracy is low.
[0003] R-banded bone marrow chromosome bands are usually <300, and the amount of information contained in single chromosomes is relatively small. At the same time, the differences between chromosomes in the same cell are relatively small, that is, a fine-grained classification problem. The differences within the class are small, while the differences between classes are large. Misclassification between different groups often occurs, which is manifested in that the chromosome number recognition results are prone to significant errors, such as number 1 being identified as number 10.
[0004] Compared with peripheral blood chromosomes and G-banded bone marrow chromosomes, the number of R-banded bone marrow chromosomes is small, and the film production effects vary greatly among different hospitals, which is manifested in unclear chromosome bands and high noise levels. This leads to poor generalization of R-banded chromosome number recognition and large performance differences among different hospitals. Summary of the invention
[0005] The purpose of the present invention is to overcome the shortcomings of the prior art and provide a numbering identification method for R-banded chromosomes.
[0006] The purpose of the present invention is achieved through the following technical solutions. A method for identifying the number of R-banded chromosomes, using a feature extraction network based on a zoom mechanism, the network includes a global network G-Net and a local network L-Net; the input image of the global network G-Net is the global image of the chromosome, the global features are obtained by G-Net feature extraction, and then through the MLP positioning layer, the coordinates (x, y) and width and height (w, h) of the upper left corner of N groups of positioning areas are obtained, the original global image is partially enlarged according to the positioning area, a local image of the same resolution is obtained, and the local network L-Net is input to obtain N groups of local features, and finally the combined features are obtained by combining the global features and the N groups of local features, and the final MLP classification layer is input to obtain the chromosome number.
[0007] Furthermore, the feature extraction network based on the zoom mechanism uses a loss function in the network model training process, including a multi-level intra-class and extra-class difference maximization loss function, and the specific calculation method is as follows:
[0008] (1) The training set is ,in is the feature vector of the i-th sample, is the corresponding chromosome number, and the chromosome numbers are divided into group A (1-3), group B (4-5), group C (6-12, 23), group D (13-15), group E (16-18), group F (19-20) and group G (21-22, 24) according to the medical definition of similar chromosomes, recorded as ;definition For the model to sample The feature representation of
[0009] (2) The multi-level intra-class and extra-class difference maximization loss function consists of two parts:
[0010] Difference in loss between groups: ;
[0011] Where g refers to g A or B or┄org G , m is a marginal parameter used to control the distance between different groups. This loss function encourages samples between different groups to be as far away as possible in the feature space;
[0012] Within-group difference loss: ;
[0013] This loss function encourages samples in the same group to be aggregated as much as possible in the feature space;
[0014] (3) The final loss function MLMOD is: During the training process, the goal is to minimize the loss function MLMOD. By optimizing this loss function, we can learn feature representations that can perform well on fine-grained chromosome classification and chromosome group partitioning tasks.
[0015] Furthermore, the feature extraction network based on the zoom mechanism adopts a cross-sample and cross-hospital generalization capability enhancement method based on adversarial loss during the network model training process; domain adaptation technology is used to model and reduce the distribution differences between the source domain and the target domain to improve the generalization ability of the model between different hospitals; the source domain refers to the hospital where the training data is located, and the target domain refers to the new hospital; at the same time, a small amount of target domain annotated data is introduced for fine-tuning to further optimize the adaptability of the model to the target domain data.
[0016] Furthermore, the cross-sample and cross-hospital generalization ability enhancement method based on adversarial loss is calculated as follows:
[0017] (1) Assume the source domain is , the target domain is ,in and denotes the i-th sample in the source domain and the target domain respectively, and and is the corresponding label; represents the number of samples in the source domain, Represents the number of samples in the target domain; the model consists of two parts: feature extractor and classifier ; In addition, a domain discriminator D is introduced to distinguish whether the feature comes from the source domain or the target domain;
[0018] (2) The training objectives of the model include the following three aspects:
[0019] ① Classification loss: Use the cross entropy loss function to minimize the classification error in the source domain;
[0020] ;
[0021] Where C is the number of categories, For sample The true label belongs to category c;
[0022] ② Adversarial loss: By minimizing the distribution difference between the source domain and the target domain, the feature extractor Generate domain-invariant features;
[0023] ;
[0024] The goal of the domain discriminator D is to maximize this loss, while the feature extractor The goal is to minimize this loss;
[0025] ③ Target domain fine-tuning loss: Use a small amount of target domain labeled data to fine-tune the model to improve its performance in the target domain;
[0026] ;
[0027] in, For sample The true label belongs to category c;
[0028] (3) Combining the above three loss functions, the overall goal of the model is:
[0029] ;
[0030] in, is the hyperparameter of the adversarial loss, Fine-tune the loss hyperparameters for the target domain and the hyperparameters for balancing different loss terms;
[0031] During training, alternately optimize the feature extractor , Classifier The domain discriminator D model can learn domain-invariant feature representations and improve the performance on the target domain.
[0032] The beneficial effects of the present invention are:
[0033] 1. Improve the accuracy of R-banded bone marrow chromosome number recognition. By proposing a feature extraction network based on a zoom mechanism, the local position can be automatically focused according to the global image of the chromosome, thereby integrating the global features and local banding features of the chromosome for comprehensive recognition;
[0034] 2. For the fine-grained classification problem where the differences between R-banded chromosomes are small but the differences between classes are large, this paper adopts a metric learning-based method to design a multi-level MLMOD loss function. This function not only encourages the model to maximize the distance between different classes, but also strengthens the aggregation effect of samples within the same class at different levels, thereby effectively improving the accuracy of chromosome fine-grained classification and the accuracy of chromosome group-level division, thereby reducing the problem of significant errors in number recognition;
[0035] 3. A cross-sample and cross-hospital generalization ability enhancement method based on adversarial loss is proposed to improve the generalization performance of R-band bone marrow chromosome number recognition for different hospitals and reduce the differences in analysis and recognition accuracy between different hospitals with different production levels. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] 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.
[0037] Figure 1 It is a block diagram of the process flow of the present invention. DETAILED DESCRIPTION
[0038] 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.
[0039] This paper proposes a zoom network that combines global and local features of chromosomes for R-banded samples, as well as a fine-grained classification and in-class and out-of-class difference maximization strategy:
[0040] 1. Feature extraction network based on zoom mechanism:
[0041] The network (such as Figure 1 As shown in the figure, it includes a global network G-Net and a local network L-Net. G-Net extracts overall features and detects finer local features. The zoom mechanism is used to magnify the local area and extract local features through L-Net, so that the model can learn the global morphological features and local detail features of chromosomes at the same time, and enhance the model's recognition ability for the overall shape of chromosomes and local banding features.
[0042] Specifically, the input image of G-Net is the global image of the chromosome. The global features are obtained through G-Net feature extraction, and then through the MLP positioning layer to obtain the coordinates (x, y) and width and height (w, h) of the upper left corner of the N groups of positioning areas. The original global image is enlarged locally according to the positioning area to obtain a local image with the same resolution, and then input into L-Net to obtain N groups of local features. Finally, the combined features are obtained by combining the global features and the N groups of local features, and input into the final MLP classification layer to obtain the chromosome number.
[0043] Specifically, for the input R-banded bone marrow chromosome global image to be classified, firstly, the global feature vector *1 (dimension is
[1024] ) is obtained through the G-Net feature extraction network (such as ResNet50), and then the global feature vector is input into the MLP positioning layer to obtain the upper left corner coordinates (x, y) and width and height (w, h) of the focus area in the global image corresponding to N groups of positioning regions (x, y, w, h). According to the N groups of positioning regions, the R-banded bone marrow chromosome global image is focused and magnified to obtain N local images, which are then input into the L-Net feature extraction network (such as ResNet50) in turn to obtain the local feature vector *N (dimension is
[1024] ). After combining with the global feature, the combined feature [N+1,1024] is obtained and input into the MLP classification layer to obtain the final predicted chromosome number.
[0044] The loss functions used in the model training process of the above zoom network include, in addition to conventional classification losses (cross entropy function, etc.), "multi-level in-class and out-class difference maximization loss function" and "adversarial loss".
[0045] 2. Multi-level class internal and external difference maximization loss function
[0046] In order to solve the problem of fine-grained classification where the differences between R-banded chromosomes are small but the differences between classes are large, this paper adopts a metric learning-based method to design a multi-level MLMOD loss function. This function not only encourages the model to maximize the distance between different classes, but also strengthens the aggregation effect of samples within the same class at different levels, thereby effectively improving the accuracy of chromosome fine-grained classification and the accuracy of chromosome group level division.
[0047] Specifically, for the fine-grained classification problem of R-banded chromosomes, a multi-level maximum intra- and extra-class difference (MLMOD) loss function is proposed. The specific calculation method is as follows:
[0048] The training set is ,in is the feature vector of the i-th sample, is the corresponding chromosome number. According to the ISCN2020 standard, the chromosome numbers (1-22, 23 (X), 24 (Y)) are divided into group A (1-3), group B (4-5), group C (6-12, 23), group D (13-15), group E (16-18), group F (19-20) and group G (21-22, 24) according to the medical definition of similar chromosomes, denoted as , different groups do not overlap. Definition For the model to sample The feature representation of .
[0049] The loss function of MLMOD consists of two parts:
[0050] Difference in loss between groups: ;
[0051] Where g refers to g A or B or┄org G , m is a margin parameter used to control the distance between different groups. This loss function encourages samples between different groups to be as far away as possible in the feature space.
[0052] Within-group difference loss: ;
[0053] This loss function encourages samples in the same group to be as aggregated as possible in the feature space.
[0054] The final MLMOD loss function is: ,During the training process, the goal is to minimize the MLMOD loss function.,By optimizing this loss function, we can learn feature representations that can perform well on,fine-grained chromosome classification and chromosome group partitioning tasks.
[0055] 3. A method to enhance cross-sample and cross-hospital generalization ability based on adversarial loss
[0056] In order to solve the problem that the film production effects of different hospitals vary greatly (manifested in unclear chromosome banding and high noise level, etc.), this solution uses domain adaptation technology to model and reduce the distribution differences between the source domain (hospital where the training data is located) and the target domain (new hospital), thereby improving the generalization ability of the model between different hospitals. At the same time, a small amount of target domain annotated data is introduced for fine-tuning to further optimize the adaptability of the model to the target domain data.
[0057] Specifically, adversarial neural networks are used, in which one network is responsible for generating domain-invariant features from the source domain and the target domain, and the other network tries to distinguish which domain these features come from. Through adversarial training, the features generated by the first network are made as indistinguishable as possible between the two domains, thereby achieving domain invariance of the features. Combined with traditional classification losses, additional domain adaptability losses (such as adversarial losses) are added so that the model optimizes the feature distribution differences between the source domain and the target domain while learning the main task. Through the above strategies, the cross-domain adaptive module can effectively reduce the negative impact of the differences in chromosome image quality between different hospitals on model performance, and promote the adaptability and generalization ability of the model on different data sets. This not only improves the practical value in various practical application scenarios, but also provides new ideas and methods for future cross-domain medical image analysis research.
[0058] Specifically, let the source domain (the hospital where the training data is located) be , the target domain (new hospital) is ,in and denotes the i-th sample in the source domain and the target domain respectively, and and is the corresponding label; represents the number of samples in the source domain, Represents the number of samples in the target domain. The model consists of two parts: feature extractor and classifier In addition, a domain discriminator D is introduced to distinguish whether the feature comes from the source domain or the target domain.
[0059] The training objectives of the model include the following three aspects:
[0060] ① Classification loss: Use the cross entropy loss function to minimize the classification error on the source domain.
[0061] ;
[0062] Where C is the number of categories, is the number of source domain samples, For sample The true label belongs to category c.
[0063] ② Adversarial loss: By minimizing the distribution difference between the source domain and the target domain, the feature extractor Generate domain invariant features.
[0064] ;
[0065] The goal of the domain discriminator D is to maximize this loss, while the feature extractor The goal is to minimize this loss.
[0066] ③ Target domain fine-tuning loss: Use a small amount of target domain labeled data to fine-tune the model to improve its performance in the target domain.
[0067] ;
[0068] in, For sample The true label belongs to category c;
[0069] Combining the above three loss functions, the overall goal of the model is:
[0070] ;
[0071] in, is the hyperparameter (coefficient) of the adversarial loss, Fine-tune the hyperparameters (coefficients) of the loss for the target domain. The specific values need to be adjusted manually according to the experimental settings to balance the different loss terms. The overall goal of the model is to balance the hyperparameters of different loss terms.
[0072] During training, alternately optimize the feature extractor , Classifier The domain discriminator D model can learn domain-invariant feature representations and achieve good performance in the target domain. This cross-sample and cross-hospital generalization ability enhancement method based on adversarial loss can effectively reduce the impact of chromosome image quality differences between different hospitals on model performance and improve the adaptability and generalization ability of the model.
[0073] 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 numbering and identifying R-banded chromosomes, characterized in that: A feature extraction network based on zoom mechanism is adopted, which includes a global network G-Net and a local network L-Net. The input image of the global network G-Net is the global image of the chromosome. The global features are obtained by G-Net feature extraction, and then the coordinates and width and height of the upper left corner of N groups of positioning areas are obtained through the MLP positioning layer. The original global image is partially enlarged according to the positioning area to obtain a local image with the same resolution, and then input into the local network L-Net to obtain N groups of local features. Finally, the combined features are obtained by combining the global features and N groups of local features, and then input into the final MLP classification layer to obtain the chromosome number. The feature extraction network based on the zoom mechanism uses a loss function in the model training process of the network, including a multi-level intra-class and extra-class difference maximization loss function. The specific calculation method is as follows: (1) The training set is where x i is the feature vector of the i-th sample, y i ∈{1,2,...,24} is the corresponding chromosome number. The chromosome numbers are divided into group A (1-3), group B (4-5), group C (6-12, 23), group D (13-15), group E (16-18), group F (19-20) and group G (21-22, 24) according to the medical definition of similar chromosomes, denoted as Φ = {g A ,g B ,...,g G }; define f(x i ) is the model for sample x i The feature representation of (2) The multi-level intra-class and extra-class difference maximization loss function consists of two parts: Difference in loss between groups: Where g refers to g A or B or┄org G , m is a marginal parameter used to control the distance between different groups. This loss function encourages samples between different groups to be as far away as possible in the feature space; Within-group difference loss: This loss function encourages samples in the same group to be aggregated as much as possible in the feature space; (3) The final multi-level class internal and external difference maximization loss function is: L MLMOD =L inter +L intra ,During the training process, the goal is to minimize the loss function.,By optimizing this loss function, we can learn feature representations that can perform well on,fine-grained chromosome classification and chromosome group partitioning tasks.
2. The method for numbering and identifying R-banded chromosomes according to claim 1, characterized in that: The feature extraction network based on the zoom mechanism adopts a cross-sample and cross-hospital generalization ability enhancement method based on adversarial loss during the network model training process; domain adaptation technology is used to improve the generalization ability of the model between different hospitals by modeling and reducing the distribution differences between the source domain and the target domain; the source domain refers to the hospital where the training data is located, and the target domain refers to the new hospital; at the same time, a small amount of target domain annotated data is introduced for fine-tuning to further optimize the adaptability of the model to the target domain data.
3. The method for numbering and identifying R-banded chromosomes according to claim 2, characterized in that: The cross-sample and cross-hospital generalization ability enhancement method based on adversarial loss is calculated as follows: (1) Let the source domain be The target domain is in and denotes the i-th sample in the source domain and the target domain respectively, and and is the corresponding label; N S Represents the number of samples in the source domain, N t Represents the number of samples in the target domain; the model consists of two parts: feature extractor G f and classifier G y ;Introduce a domain discriminator D to distinguish whether the feature comes from the source domain or the target domain; (2) The training objectives of the model include the following three aspects: ① Classification loss: Use the cross entropy loss function to minimize the classification error in the source domain; Where C is the number of categories, For sample The true label belongs to category c; ② Adversarial loss: By minimizing the distribution difference between the source domain and the target domain, the feature extractor G f Generate domain-invariant features; The goal of the domain discriminator D is to maximize the loss, while the feature extractor G f The goal is to minimize this loss; ③ Target domain fine-tuning loss: Use a small amount of target domain labeled data to fine-tune the model to improve its performance in the target domain; in, For sample The true label belongs to category c; (3) Combining the above three loss functions, the overall goal of the model is: minutes Gf,Gy max D L cls +λ adv L adv +λ ft L ft Among them, adv is the hyperparameter of the adversarial loss, λ ft Fine-tune the loss hyperparameters for the target domain and the hyperparameters for balancing different loss terms; During the training process, the feature extractor G is optimized alternately. f , classifier G y The domain discriminator D model can learn domain-invariant feature representations and improve the performance on the target domain.
