A blood tumor cell morphological feature extraction and recognition method based on morphological perception feature modeling
By combining the Mamba cytology module, morphology perception module, and Mamba context hybrid module in the hierarchical backbone network with convolutional embedding layers and Transformer self-attention mechanism, the problems of local detail loss, insufficient anisotropy modeling, and weak global context association in the morphological assessment of blood cells are solved, thereby improving the accuracy and robustness of morphological feature extraction and recognition of blood tumor cells.
Patent Information
- Application Number
- CN202610599670.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2026-04-30
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2046-04-30
AI Technical Summary
Existing image analysis algorithms suffer from problems such as loss of local detail features, insufficient anisotropic morphological modeling, and weak global contextual correlation in blood cell morphology assessment, resulting in inaccurate cell category differentiation and large inter-observer variability.
A morphology-based feature modeling approach is adopted, which uses the Mamba cytology module, morphology-based module and Mamba context hybrid module in the hierarchical backbone network, combined with convolutional embedding layer, state space mechanism and Transformer self-attention mechanism to extract and identify features of hematologic tumor cells.
This approach enables joint modeling of cytological details, anisotropic morphological structures, and global contextual dependencies, improving the accuracy and robustness of category prediction for blood cell micrographs and enhancing the model's interpretability and generalization ability across data domains.
Smart Images

Figure CN122473789B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of image recognition and processing technology, and in particular to a method for extracting and recognizing morphological features of hematologic tumor cells based on morphological perception feature modeling. Background Technology
[0002] In hematological pathology practice, morphological assessment of cells in bone marrow or peripheral blood smears is a crucial reference for the classification and prognosis of hematological malignancies. Taking indolent non-Hodgkin lymphoma (iNHL) as an example, its cellular morphological characteristics include various types such as follicular lymphoma cells, mantle cell lymphoma cells, marginal zone lymphoma cells, lymphoplasmacytic lymphoma cells, and hairy cell leukemia cells. Since the clinical intervention strategies and prognostic outcomes corresponding to different cell types differ significantly, accurate differentiation at the cytological level has significant clinical reference value. However, the assessment process based on manual microscopic examination of slides has inherent limitations. On the one hand, the morphological differences between different cell types are often extremely subtle, such as the irregularity of the nuclear outline, the coarseness of chromatin granules, or small protrusions at the cytoplasmic margin. This makes the assessment results susceptible to the influence of the observer's subjective experience and visual fatigue, resulting in significant inter-observer variability and affecting the consistency of cell type assessment. On the other hand, with the popularization of digital pathological imaging technology, the massive amounts of high-resolution cell image data have placed a heavy workload on pathologists. In recent years, deep learning-based image analysis algorithms, especially convolutional neural networks (CNNs) and Transformer architectures, have been attempted to be applied to the analysis of blood cell images. However, existing algorithm models still face the following technical challenges when applied to scenarios with subtle differences in cell morphology: (1) Local detail loss problem: Conventional CNN models are prone to losing the nucleus’s fine outline and chromatin texture information that are crucial for distinguishing different types of cells during downsampling; while the standard ViT architecture divides the image into fixed-size patches, which may sever the complete organelle structure.
[0003] (2) Insufficient anisotropic morphology modeling: Conventional isotropic convolution kernels are difficult to effectively capture the anisotropic structural features of the kernel morphology in a specific direction, such as elongation and twisting, which are key clues for distinguishing certain cell categories with highly similar morphology.
[0004] (3) Weak global context association: The receptive field of a simple CNN is limited, making it difficult to establish a long-range dependency between chromatin distribution patterns and nuclear morphology across the entire cell region.
[0005] Therefore, there is an urgent need for an image feature extraction and recognition method that can take into account the preservation of local cellular details, the perception of anisotropic morphological structures, and global context modeling, in order to improve the accuracy and robustness of fine category prediction for blood cell microscopic images. Summary of the Invention
[0006] The purpose of this invention is to provide a method for extracting and identifying morphological features of hematologic tumor cells based on morphological perception feature modeling, so as to solve the problems mentioned in the background art.
[0007] This invention is achieved through the following technical solution: A method for extracting and identifying morphological features of hematologic tumor cells based on morphological perception feature modeling, wherein the method is a computer-executed image analysis method, comprising the following steps: Step S1: Obtain microscopic images of blood cells to be processed obtained in vitro, and convert the blood cell microscopic images into visual marker sequences using a convolutional embedding layer; Step S2: Construct a hierarchical backbone network consisting of multiple feature extraction stages, wherein each feature extraction stage includes a sequentially connected Mamba cytology module, morphology perception module, and Mamba contextualization module; Step S3: In the early and mid-stage feature extraction phases of the hierarchical backbone network, the visual marker sequence is modeled using a state-space mechanism based on the Mamba cytology module to preserve local cytological details such as cell nuclear contour, chromatin texture, and staining intensity. Step S4: The morphological perception module is used to refine the features output by the Mamba cytology module. The orientation-dependent nuclear structure anisotropy features and chromatin density change features are captured by the two-dimensional state space operator to obtain the refined intermediate feature representation. Step S5: In the non-highest feature extraction stage of the hierarchical backbone network, the Mamba context mixing module is used to perform context modeling on the intermediate feature representation through a state space recursive mechanism; in the highest feature extraction stage of the hierarchical backbone network, the Mamba context mixing module is used to perform global context modeling on the intermediate feature representation through a Transformer self-attention mechanism to obtain the final context feature representation. Step S6: Based on the final context feature representation, use a classification network to generate a prediction result of the cell morphology category to which the blood cell micrograph belongs.
[0008] Compared with the prior art, the beneficial effects achieved by the present invention are as follows: 1. High Feature Extraction Accuracy: This invention integrates the Mamba cytology module, morphology perception module, and Mamba contextual hybrid module to achieve joint modeling of cytological detail features, anisotropic morphological structures, and global contextual dependencies. On a dataset containing microscopic images of various blood cell types, the method achieved a class prediction accuracy of 86.25%, significantly outperforming mainstream CNN, Transformer, and state-space models, especially in distinguishing cell types with highly overlapping morphologies. This prediction result can serve as supplementary information, helping pathologists improve the consistency of slide interpretation.
[0009] 2. Strong robustness: By introducing random noise terms into the Mamba cytology module and applying training strategies such as Mixup and label smoothing, this invention can effectively address the common problems of staining depth differences, impurity interference, and class data imbalance in the slide preparation process, ensuring the stability and generalization ability of the model in actual image analysis applications.
[0010] 3. High visualization interpretability: The present invention demonstrates through Grad-CAM visualization analysis that the progressive integration of MCB, MAB and MCM modules can guide the model's attention to gradually focus on the nuclear region and chromatin heterogeneity region with class distinction significance, thereby improving the interpretability of the model's prediction results and helping to provide pathologists with intuitive visual reference for slide reading.
[0011] 4. Strong cross-data domain generalization ability: Experimental results on publicly available peripheral blood B-ALL image datasets and lymphoma histopathological image datasets show that the method of this invention still maintains leading class prediction performance under different sample types and imaging modes, proving that the extracted morphological perception features have good robustness and cross-data domain transfer ability. Attached Figure Description
[0012] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only preferred embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0013] Figure 1 This is a schematic diagram of the overall process of a method for extracting and recognizing morphological features of hematologic tumor cells based on morphological perception feature modeling, provided in an embodiment of the present invention.
[0014] Figure 2The data preparation process and overall architecture of the hybrid Mamba-Transformer framework provided in the embodiments of the present invention are shown in the figure. Among them, (a) is the sample preparation and digital imaging process of bone marrow smear, (b) is the process of automatically extracting single cells from representative regions of interest, and (c) is the overall network architecture and multi-cell category prediction diagram integrating the Mamba Cytology Module (MCB), the Morphology Awareness Module (MAB) and the Mamba Context Mixer (MCM).
[0015] Figure 3 The figure shows the overall quantitative performance of the framework proposed in this embodiment of the invention on five different cell morphology categories; where (a) is the normalized confusion matrix, (b) is the visualization of the t-SNE feature distribution, (c) is the receiver operating characteristic (ROC) curve, and (d) is the precision-recall (PR) curve.
[0016] Figure 4 The images show a comparison of Grad-CAM visualization results under progressive ablation settings in this embodiment of the invention. From left to right, they are: the original input image, the baseline model, the model containing MCB, the model containing MCB and MAB, and the complete model integrating MCB, MAB, and MCM. Detailed Implementation
[0017] To make the objectives, technical solutions, and advantages of the present invention more apparent, exemplary embodiments according to the present invention will be described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are merely a part of the embodiments of the present invention, and not all of the embodiments of the present invention. It should be understood that the present invention is not limited to the exemplary embodiments described herein. Based on the embodiments of the present invention described herein, all other embodiments obtained by those skilled in the art without inventive effort should fall within the protection scope of the present invention.
[0018] In the following description, numerous specific details are set forth in order to provide a more thorough understanding of the invention. However, it will be apparent to those skilled in the art that the invention can be practiced without one or more of these details. In other instances, certain technical features well-known in the art have not been described in order to avoid obscuring the invention.
[0019] It should be understood that the invention can be embodied in various forms and should not be construed as being limited to the embodiments set forth herein. Rather, providing these embodiments will make the disclosure thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
[0020] The terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the invention. When used herein, the singular forms “a,” “an,” and “the” are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the terms “comprising” and / or “including,” when used in this specification, identify the presence of the stated features, integers, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups. When used herein, the term “and / or” includes any and all combinations of the associated listed items.
[0021] To fully understand this invention, a detailed structure will be presented in the following description to illustrate the technical solution proposed by this invention. Optional embodiments of the invention are described in detail below; however, in addition to these detailed descriptions, the invention may have other embodiments.
[0022] See Figure 1-4 A method for extracting and recognizing morphological features of hematologic tumor cells based on morphological perception feature modeling, wherein the method is a computer-executed image analysis method, comprising the following steps: Step S1: Obtain microscopic images of blood cells to be processed obtained in vitro, and convert the blood cell microscopic images into visual marker sequences using a convolutional embedding layer; Step S2: Construct a hierarchical backbone network consisting of multiple feature extraction stages, wherein each feature extraction stage includes a sequentially connected Mamba cytology module, morphology perception module, and Mamba contextualization module; Step S3: In the early and mid-stage feature extraction phases of the hierarchical backbone network, the visual marker sequence is modeled using a state-space mechanism based on the Mamba cytology module to preserve local cytological details such as cell nuclear contour, chromatin texture, and staining intensity. Step S4: The morphological perception module is used to refine the features output by the Mamba cytology module. The orientation-dependent nuclear structure anisotropy features and chromatin density change features are captured by the two-dimensional state space operator to obtain the refined intermediate feature representation. Step S5: In the non-highest feature extraction stage of the hierarchical backbone network, the Mamba context mixing module is used to perform context modeling on the intermediate feature representation through a state space recursive mechanism; in the highest feature extraction stage of the hierarchical backbone network, the Mamba context mixing module is used to perform global context modeling on the intermediate feature representation through a Transformer self-attention mechanism to obtain the final context feature representation. Step S6: Based on the final context feature representation, use a classification network to generate a prediction result of the cell morphology category to which the blood cell micrograph belongs.
[0023] In step S3, the Mamba cytology module processes the input features in accordance with the following relationship:
[0024]
[0025] in, for The hidden state at all times for Input characteristics at time step and The projection matrix is learnable. For random noise, The SiLU activation function is used. This represents element-wise multiplication. This is a 3×3 convolution operation. for Output characteristics at any given time.
[0026] In step S4, the morphological perception module processes the input features in accordance with the following relationship:
[0027]
[0028] in, For input features, Representation layer normalization, This represents a two-dimensional state-space operator implemented using depthwise separable convolution. and For learnable parameters, This represents tensor contraction across feature channels. and It is a nonlinear transformation function. For multilayer perceptrons, This represents the refined intermediate features.
[0029] In step S5, the process of performing context modeling on the intermediate feature representation through a state-space recursive mechanism satisfies the following relationship:
[0030]
[0031] in, The intermediate feature representation sequence is the input. , , , For a trainable parameter matrix, A term for controlling the decay dynamics of state evolution. for The hidden state at all times for Input feature labels at time step for Output at any given moment.
[0032] In step S5, the process of performing global context modeling on the intermediate feature representation using the Transformer self-attention mechanism satisfies the following relationship:
[0033]
[0034] in, The intermediate feature representation sequence is the input. , , It is a linear projection matrix. These are the query matrix, key matrix, and value matrix, respectively. Scaling factor This is the calculated self-attention output.
[0035] The method further includes a step of training the hierarchical backbone network, during which: The input images are uniformly adjusted to the preset size, and data augmentation operations, including random horizontal flipping, are applied. The Adam optimizer was used for supervised training with a preset initial learning rate and cross-entropy loss function. Mixup data augmentation and label smoothing strategies are employed to mitigate class imbalance. The training process is monitored based on accuracy metrics on the validation set, and the weights of the best-performing model are saved for final evaluation. The Mixup data augmentation strategy satisfies the following relationship:
[0036]
[0037] in,( , )and( , ( ) represents two samples randomly selected from the training data and their corresponding labels. From The mixing coefficients obtained by sampling from the distribution and for Hyperparameters of the distribution This is the new sample generated after mixing. For the corresponding mixed tags; The cross-entropy loss function used under the label smoothing strategy satisfies the following relationship:
[0038] in, The total number of the stated cell morphology categories. For the first The category's actual label, with a value of 0 or 1. The model predicts the first The probability value of the category, This is a preset smoothing factor used to suppress the model's overconfidence in the training labels.
[0039] Each feature extraction stage in the hierarchical backbone network is implemented using a unified block structure, which includes layer normalization, residual connections, and a feedforward network for enhancing feature representation capabilities. The feedforward network processes the input features in accordance with the following relationship:
[0040] in, The feature vector is input to the feedforward network. and The weight matrix is a learnable matrix. and For learnable bias terms, The activation function for the Gaussian error linear unit; The residual connection satisfies the following relationship:
[0041] in, For the input features of the sub-layer, This represents a function mapping of any sublayer in the block structure, including the Mamba cytology module, the morphology-aware module, the Mamba context mixing module, or the feedforward network. This represents the final output feature of the residual connection.
[0042] The cell morphology categories include at least the categories corresponding to the following cell morphology images: follicular lymphoma cell morphology images, mantle cell lymphoma cell morphology images, marginal zone lymphoma cell morphology images, lymphoplasmacytic lymphoma cell morphology images, and hairy cell leukemia cell morphology images, and the method is configured to distinguish subtle cytological differences between the cell morphology categories by jointly capturing fine cell morphological features and broader morphological patterns.
[0043] The blood cell microscopic images to be processed are bone marrow smear microscopic images or peripheral blood smear microscopic images. The method further includes: using a multi-target blood cell detection network to automatically identify and crop out single-cell regions of interest from the high-resolution microscopic images, and constructing them into an image dataset to be analyzed after manual review and confirmation.
[0044] The method also includes using gradient-weighted class activation mapping technology to visualize and analyze the prediction results generated by the hierarchical backbone network, so as to show how the progressive integration of the Mamba cytology module, the morphology perception module and the Mamba contextualization module guides the model to focus its attention on the nuclear contour, chromatin texture and morphological heterogeneity regions. The gradient-weighted class activation mapping technique generates a class activation heatmap in a manner that satisfies the following relationship:
[0045]
[0046] in, For the hierarchical backbone network for the target category The predicted score, before softmax activation. The output of the last convolutional layer of the hierarchical backbone network is the first... Each feature map For this feature map at location Pixel value at that location, For feature map The total number of pixels is used to calculate the global average pooling coefficient. For the predicted score Regarding feature map pixels gradient, For the calculated, corresponding to the first Each feature map for category The importance weights of neurons, A linear rectified function, used to retain only the class. Activation regions that contribute positively For the final generated, corresponding to the target category Heat map.
[0047] For example, the image data preparation and preprocessing in this embodiment are as follows: 1. Sample collection and imaging High-resolution bone marrow smear images were retrospectively collected from 1303 patients with clinically and pathologically confirmed indolent non-Hodgkin lymphoma (iNHL) admitted to Zhongnan Hospital of Wuhan University between February 2019 and February 2024. Image acquisition followed the guidelines of the International Committee for Standardization in Hematology (ICSH) and was performed using an Olympus BX53 microscope equipped with a digital imaging system. Experienced pathologists selected representative regions of interest (ROIs) under 10x objectives, followed by high-magnification imaging using 100x oil immersion to obtain digital images with a resolution of 5440 × 3648 pixels, ensuring clear representation of nuclear morphology, chromatin distribution, and cytoplasmic details.
[0048] 2. Expert annotations and consensus At least two senior pathologists independently categorized the cells in the images according to the World Health Organization (WHO) Fifth Edition Classification of Hematologic Lymphomas. The morphological categories of the labeled cells included: follicular lymphoma cells, mantle cell lymphoma cells, marginal zone lymphoma cells, lymphoplasmacytic lymphoma cells, and hairy cell leukemia cells. For any discrepancies in the categorization, a third expert reviewed the data, and a consensus was reached through collective discussion to establish the gold standard label for the cell images.
[0049] 3. Single-cell extraction and dataset partitioning A previously reported multi-target blood cell detection network was used to automatically identify and crop single-cell regions from full-field bone marrow smear images, generating 4891 single-cell images. All images were reviewed and confirmed by pathologists. To prevent data leakage during model training, the image dataset was randomly divided into training, validation, and test sets in a 3:1:1 ratio according to patient level. The output of the method described in this invention is a morphological category prediction result for the single-cell images, intended to provide reference information for pathologists' evaluation, rather than a direct disease diagnosis conclusion.
[0050] The network architecture and workflow of this embodiment are as follows: The specific implementation of the hybrid Mamba-Transformer framework proposed in this invention is as follows: Step S1: Image Input and Convolutional Embedding The cropped single-cell image (uniformly scaled to 256×256 pixels in this embodiment) is input into the network. First, a convolutional embedding layer converts the input image into a series of visual label sequences, which serve as the input to the subsequent hierarchical backbone network.
[0051] Step S2: Construction of Hierarchical Backbone Network A hierarchical backbone network consisting of multiple stages is constructed, with the feature dimension increasing progressively in each stage. Each stage contains a unified basic block structure, which sequentially connects the Mamba cytology module (MCB), the morphology perception module (MAB), and the Mamba context mixing module (MCM), supplemented by layer normalization, residual connections, and feedforward networks (FFN).
[0052] Step S3: Mamba Cytology Module (MCB) Feature Preservation In the early and mid-stages of the network (such as stages 1 and 2), visually labeled sequences enter the MCB. The MCB employs a feature evolution mechanism based on a state-space model, and its hidden state update follows the formula:
[0053] The output calculation follows the formula:
[0054] By introducing a random noise term into the feature evolution This enhances the model's robustness to variations in staining intensity and minor perturbations during the collection process. MCB aims to preserve local details of different cell types, such as the degree of nuclear contour irregularity and the size of chromatin granules within the nucleus.
[0055] In the hierarchical backbone network constructed in this invention, each feature extraction stage adopts a uniform block structure. In addition to the sequentially connected Mamba cytology module (MCB), morphology-aware module (MAB), and Mamba contextual mixing module (MCM), each module is followed by layer normalization, residual connections, and a feed-forward network (FFN) to enhance feature representation capabilities. This standardized design ensures the stability of network training and the smoothness of feature propagation.
[0056] Specifically, feedforward networks ( ) Input features The processing follows the following relationship:
[0057] in, The feature vector input to the feedforward network (usually the output after normalization by the aforementioned modules and layers). and The weight matrix is a learnable matrix. and This corresponds to the bias term. In this embodiment, the intermediate layer dimension... Typically set as the input dimension Four times, for example =2048 (when =512). The activation function uses Gaussian error linear units. Compared to traditional ReLU, it can provide a smoother nonlinear mapping, which is beneficial for maintaining the gradient fluidity of cellular detail features.
[0058] Residual connections are a standard component of each sublayer (including MCB, MAB, MCM, and FFN), and their mathematical expression is as follows:
[0059] Here, For the input features of the sub-layer, This represents the function mapping of the current sublayer (such as the MCB module). The output features are those obtained after residual connections. This structure directly superimposes the input onto the sub-layer output through identity mapping, effectively mitigating the gradient vanishing problem in deep networks. This ensures that local cellular details such as cell nuclear contours and chromatin textures preserved in the early and mid-stage feature extraction phases can be smoothly transferred to higher layers of the network, thereby supporting subsequent morphological perception and global context modeling.
[0060] Step S4: Refinement of the Morphological Perception Module (MAB) Structure The feature map output by MCB is fed into MAB. MAB processes the feature map using the following formula:
[0061]
[0062] Its core component is a two-dimensional state-space operator, SS2D, implemented using depthwise separable convolution. This operator can capture direction-dependent morphological features that are difficult to obtain with standard isotropic convolution, such as the direction angle of nuclear elongation and the density variation trend of chromatin along a specific direction. This is particularly crucial for distinguishing cell types with highly similar morphologies.
[0063] Step S5: Global Modeling of Mamba Context Hybrid Module (MCM) The refined features output by MAB are fed into MCM. In non-peak stages (such as stage 3), MCM is instantiated as a state-space recursive form, according to the formula: Or its equivalent parallel form performs context feature evolution, efficiently capturing short- to medium-range dependencies within feature maps. In the highest stage of the network (e.g., stage 4), MCM is instantiated as the standard Transformer self-attention mechanism, according to the formula:
[0064]
[0065] Explicitly compute pairwise interactions between all visual markers to capture global contextual connections across the entire cellular region that are crucial for distinguishing cell categories.
[0066] Step S6: Category Prediction Output The resulting contextual feature representations are then processed by global average pooling and fed into a classification network consisting of fully connected layers, which outputs a predicted probability vector for the morphological category of the input single-cell image.
[0067] The specific model training and evaluation configuration in this embodiment is as follows: In this embodiment, model training uses the PyTorch framework and is performed on a single NVIDIA RTX A6000 GPU (48GB VRAM). The training configuration is as follows: Input images are uniformly scaled to 256×256 pixels.
[0068] Data augmentation: Apply random horizontal flipping with a probability of 0.5 during training.
[0069] Optimizer: Adam optimizer, initial learning rate
[0070] Loss function: Cross-entropy loss function.
[0071] Training strategy: Use Mixup data augmentation Label smoothing (smoothing factor 0.1) is used to alleviate the problem of imbalanced class data.
[0072] Training duration: 300 epochs, batch size: 32.
[0073] Model selection: After each epoch, the classification accuracy is monitored on the validation set, and the weights of the model with the best validation performance are saved for final test evaluation.
[0074] Evaluation metrics include: accuracy, precision, recall, F1 score, area under the receiver operating characteristic curve (AUC), and mean precision (AP).
[0075] In one specific embodiment of the present invention, in order to enhance the generalization ability of the model and alleviate the class imbalance problem that may exist in the training data, the Mixup data augmentation strategy and the label smoothing strategy are adopted during the training process.
[0076] Mixup data augmentation constructs virtual training samples using linear interpolation. Specifically, for two sample-label pairs randomly selected from the training data (…),… , )and( , Generate new training samples according to the following formula. :
[0077]
[0078] Among them, the mixing coefficient from Sampled from the distribution, i.e. In this embodiment, hyperparameters are set according to the configurations of the ablation experiments in Table 4 and the comparative experiments in Table 1. =0.8, =0.8. This strategy forces the model to learn a smoother decision boundary between the two categories, thereby effectively reducing the risk of overfitting and improving the model's robustness to changes in staining intensity and subtle variations in cell morphology in microscope images.
[0079] Label smoothing is used to suppress the model's overconfidence in the training labels, further enhancing generalization ability. This embodiment employs a smoothing factor in addition to the standard cross-entropy loss. The true label distribution is corrected. The corrected loss function is in the form of:
[0080] in, The total number of cell morphology categories to be classified (in this example) =5, corresponding to follicular lymphoma cells, mantle cell lymphoma cells, marginal zone lymphoma cells, lymphoplasmacytic lymphoma cells, and hairy cell leukemia cells. For the first The actual label of the category (value is 0 or 1). The model predicts the first [number]th ... The probability value of the category. This embodiment sets a smoothing factor. =0.1. This strategy uses hard labels Replace with soft tags This effectively prevents the model from generating overly sharp prediction distributions for a small number of training samples, thereby improving the model's classification accuracy and robustness on the test set (see Table 1, the accuracy of this invention reaches 86.25%, which is significantly better than the baseline model that does not use the smoothing strategy).
[0081] Performance verification and effect comparison in this embodiment 1. Comparative experiments with mainstream methods To verify the advancement of the method of this invention, it was compared with several representative baseline models under the same dataset and evaluation scheme, including Lsnet, Shvit, InceptionNext, Vmamba, LocalMamba, GroupMamba, VCmamba, and Dinov3. The results are shown in Table 1. Table 1. Comparison with mainstream methods in the classification of non-Hodgkin's lymphoma subtypes.
[0082]
[0083] The method of this invention achieves optimal results in terms of accuracy, recall, and F1 score, with an accuracy of 86.25% and an F1 score of 86.23%, significantly outperforming the suboptimal model. This indicates that the hybrid architecture proposed in this invention can more effectively extract key morphological features that distinguish different cell types.
[0084] 2. Validation of generalization ability To evaluate the model's generalization ability across different data domains, it was tested on publicly available peripheral blood smear image datasets for B-cell acute lymphoblastic leukemia (B-ALL) and histopathological image datasets for three types of lymphoma, and compared with baseline models such as GroupMamba, Dinov3, and VCmamba. The results are shown in Tables 2 and 3.
[0085] Table 2. Cross-dataset generalization results based on the publicly available B-ALL dataset.
[0086]
[0087] Table 3. Cross-dataset generalization results based on publicly available three-category lymphoma datasets.
[0088]
[0089] The method of this invention maintains leading performance in two cross-data domain tasks, demonstrating that the extracted morphological features have good robustness and cross-data domain transferability.
[0090] 3. Ablation experiments and visualization analysis To verify the specific contribution of each module to improving feature extraction capabilities, an ablation study was conducted. As shown in Table 4, Table 4 Ablation studies within the proposed framework.
[0091]
[0092] Starting with a baseline model containing only basic blocks, MCB, MAB, and MCM were added sequentially, gradually improving the model's classification accuracy from below 86.25%. Meanwhile, as... Figure 4 As shown, to enhance the interpretability of the model's prediction results, this embodiment employs Gradient Weighted Class Activation Mapping (Grad-CAM) technology to visualize and analyze the key image regions of interest to the hierarchical backbone network. By calculating the gradient of the feature map output by the last convolutional layer of the model relative to the predicted score of the target class, a class activation heatmap is generated, thereby intuitively displaying the cell nuclear contour, chromatin texture, and morphological heterogeneity regions that the model focuses on when performing cell morphology classification.
[0093] The specific calculation process is as follows: Let... For hierarchical backbone networks, the target morphological category The predicted score (i.e., the logit value before the softmax activation function). The output of the last convolutional layer of the network Each feature map For the spatial location of this feature map The pixel value at that location. First, calculate the prediction score. Regarding feature map pixels The gradient is calculated and average pooling is performed globally to obtain the first... Each feature map for category Neuron importance weights :
[0094] in, It is a feature map The total number of pixels (i.e., height multiplied by width). This weight Reflects the feature map Category The weighted feature maps are then linearly combined and processed by a Rectified Linear Unified Array (ReLU) function to filter out negative values, retaining only those that contribute to the classification. Regions with positive activation contributions are used to generate the final Grad-CAM heatmap:
[0095] In this embodiment, we select the output of the last convolutional layer before the highest feature extraction stage of the hierarchical backbone network (i.e., the stage where the Transformer self-attention mechanism is applied) as the output. .like Figure 4 As shown, from left to right, the images are the original input image, the baseline model, the model containing the MCB, the model containing both the MCB and MAB, and the Grad-CAM visualization of the complete model (MCB+MAB+MCM). It is evident that the baseline model's heatmap shows a diffuse focus area and lacks medical interpretability; with the addition of the MCB, the model's attention begins to concentrate on the nucleus; further addition of the MAB results in a heatmap that more accurately matches the irregular contours of the nucleus and areas of chromatin concentration; and the complete model (including the MCM) allows the model's attention to be stably focused on the most morphologically significant areas of nuclear atypia (such as nuclear indentation and abnormal chromatin aggregation). This process quantitatively verifies the effectiveness of each module of the present invention in guiding the model to focus on the correct morphological features and provides pathologists with an intuitive visual reference for slide evaluation.
[0096] The image regions of interest for the model were visualized using Grad-CAM technology. The results showed that the baseline model's regions of interest were diffuse and disordered; after adding the MCB, the focus shifted towards the cell nucleus; after adding the MAB, the regions of interest better matched the specific contours and internal texture of the cell nucleus; the complete model (including the MCB) had more consistent and stable regions of interest, accurately covering the most morphologically significant areas of nuclear atypia. This demonstrates the necessity and effectiveness of each component of the invention from both quantitative and qualitative perspectives.
[0097] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. A method for extracting and identifying morphological features of hematologic tumor cells based on morphological perception feature modeling, characterized in that, The method is a computer-executed image analysis method, including the following steps: Step S1: Obtain microscopic images of blood cells to be processed obtained in vitro, and convert the blood cell microscopic images into visual marker sequences using a convolutional embedding layer; Step S2: Construct a hierarchical backbone network consisting of multiple feature extraction stages, which are connected in series from low to high level, including an early feature extraction stage, a mid-stage feature extraction stage, and a highest feature extraction stage; the early and mid-stage feature extraction stages are not the highest feature extraction stages, and the highest feature extraction stage is the last feature extraction stage; each feature extraction stage includes a sequentially connected Mamba cytology module, a morphology perception module, and a Mamba context mixing module; within the same feature extraction stage, the Mamba cytology module, the morphology perception module, and the Mamba context mixing module are connected sequentially according to the order of steps S3, S4, and S5; Step S3: In the early and mid-stage feature extraction phases of the hierarchical backbone network, the Mamba cytology module is used to perform state-space-based feature modeling on the visual marker sequence to preserve local cytological details such as cell nuclear contours, chromatin texture, and staining intensity. The Mamba cytology module's processing of input features satisfies the following relationship: in, for The hidden state at all times for Input characteristics at time step and For a learnable projection matrix, For random noise, The SiLU activation function is used. This represents element-wise multiplication. This is a 3×3 convolution operation. for Output characteristics at any given time; Step S4: The morphological perception module refines the features output by the Mamba cytology module. A two-dimensional state-space operator captures orientation-dependent nuclear structural anisotropy features and chromatin density variation features to obtain a refined intermediate feature representation. The morphological perception module's processing of the input features satisfies the following relationship: in, As input features, Representation layer normalization, This represents a two-dimensional state-space operator implemented using depthwise separable convolution. and For learnable parameters, This represents tensor contraction across feature channels. and It is a nonlinear transformation function. For multilayer perceptrons, The refined intermediate feature representation Step S5: In the non-highest feature extraction stage of the hierarchical backbone network, the Mamba context mixing module is used to perform context modeling on the intermediate feature representation through a state-space recursive mechanism; in the highest feature extraction stage of the hierarchical backbone network, the Mamba context mixing module is used to perform global context modeling on the intermediate feature representation through a Transformer self-attention mechanism to obtain the final context feature representation, wherein the process of performing context modeling on the intermediate feature representation through a state-space recursive mechanism satisfies the following relationship: in, The intermediate feature representation sequence is the input. , , , For a trainable parameter matrix, A term for controlling the decay dynamics of state evolution. for The hidden state at all times for Input feature labels at time step for Output at any moment; The process of performing global context modeling of the intermediate feature representation using the Transformer self-attention mechanism satisfies the following relationship: in, The intermediate feature representation sequence is the input. , , It is a linear projection matrix. These are the query matrix, key matrix, and value matrix, respectively. Scaling factor The calculated self-attention output; Step S6: Based on the final context feature representation, use a classification network to generate a prediction result of the cell morphology category to which the blood cell micrograph belongs.
2. The method according to claim 1, characterized in that, The method further includes a step of training the hierarchical backbone network, during which: The input images are uniformly adjusted to the preset size, and data augmentation operations, including random horizontal flipping, are applied. The Adam optimizer was used for supervised training with a preset initial learning rate and cross-entropy loss function. Mixup data augmentation and label smoothing strategies are employed to mitigate class imbalance. The training process is monitored based on accuracy metrics on the validation set, and the weights of the best-performing model are saved for final evaluation. The Mixup data augmentation strategy satisfies the following relationship: in,( , )and( , ( ) represents two samples randomly selected from the training data and their corresponding labels. From The mixing coefficients obtained by sampling from the distribution and for Hyperparameters of the distribution This is the new sample generated after mixing. For the corresponding mixed tags; The cross-entropy loss function used under the label smoothing strategy satisfies the following relationship: in, The total number of the stated cell morphology categories. For the first The category's actual label, which takes a value of 0 or 1. The model predicts the first The probability value of the category, This is a preset smoothing factor used to suppress the model's overconfidence in the training labels.
3. The method according to claim 1, characterized in that, Each feature extraction stage in the hierarchical backbone network is implemented using a unified block structure, which includes layer normalization, residual connections, and a feedforward network for enhancing feature representation capabilities. The feedforward network processes the input features in accordance with the following relationship: in, The feature vector is input to the feedforward network. and The weight matrix is a learnable matrix. and For learnable bias terms, The activation function for the Gaussian error linear unit; The residual connection satisfies the following relationship: in, For the input features of the sub-layer, This represents a function mapping of any sublayer in the block structure, including the Mamba cytology module, the morphology-aware module, the Mamba context mixing module, or the feedforward network. This represents the final output feature of the residual connection.
4. The method according to claim 1, characterized in that, The cell morphology categories include at least the categories corresponding to the following cell morphology images: follicular lymphoma cell morphology images, mantle cell lymphoma cell morphology images, marginal zone lymphoma cell morphology images, lymphoplasmacytic lymphoma cell morphology images, and hairy cell leukemia cell morphology images, and the method is configured to distinguish subtle cytological differences between the cell morphology categories by jointly capturing fine cell morphological features and broader morphological patterns.
5. The method according to claim 1, characterized in that, The blood cell microscopic images to be processed are bone marrow smear microscopic images or peripheral blood smear microscopic images. The method further includes: using a multi-target blood cell detection network to automatically identify and crop out single-cell regions of interest from the high-resolution microscopic images, and constructing them into an image dataset to be analyzed after manual review and confirmation.
6. The method according to claim 1, characterized in that, The method also includes using gradient-weighted class activation mapping technology to visualize and analyze the prediction results generated by the hierarchical backbone network, so as to show how the progressive integration of the Mamba cytology module, the morphology perception module and the Mamba contextualization module guides the model to focus its attention on the nuclear contour, chromatin texture and morphological heterogeneity regions. The gradient-weighted class activation mapping technique generates a class activation heatmap in a manner that satisfies the following relationship: in, For the hierarchical backbone network for the target category The predicted score, before softmax activation. The output of the last convolutional layer of the hierarchical backbone network is the first... Each feature map For this feature map at location Pixel value at that location, For feature map The total number of pixels is used to calculate the global average pooling coefficient. For the predicted score Regarding feature map pixels gradient, For the calculated, corresponding to the first Each feature map for category The importance weights of neurons, A linear rectified function, used to retain only the class. Activation regions that contribute positively For the final generated, corresponding to the target category Heat map.
Citation Information
Patent Citations
Remote sensing image semantic segmentation method based on Mama and Transform architecture fusion
CN119206227A
Histopathological image automatic classification method based on diffusion and Mama fusion network
CN120355981A
