Stem cell quality evaluation method and system
Through technologies such as bilateral filtering, multi-level Otsu algorithm and deep neural network, the problem of noise and incomplete extraction of morphological features in stem cell images is solved, high-accuracy assessment of stem cell quality is achieved, and the accuracy and comprehensiveness of stem cell quality assessment are improved. sex.
Patent Information
- Application Number
- CN202411154707.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-22
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-08-22
AI Technical Summary
Existing stem cell quality assessment methods based on image analysis have problems such as incomplete capture of morphological features, large noise effects, and poor performance of traditional machine learning in high-dimensional nonlinear processing, making it difficult to achieve real-time, high-throughput accurate assessment.
Bilateral filtering, multi-level Otsu algorithm and local adaptive factors are used for image segmentation, combined with multi-directional Sobel operator and gradient covariance matrix analysis, to extract multi-dimensional morphological features, and through multi-branch deep neural network and Markov random field The model performs connectivity analysis and hierarchical clustering, integrates convolutional neural networks and multi-layer perceptrons, and integrates multi-modal features based on spatial and channel attention mechanisms.
Effectively remove stem cell image noise, improve the accuracy of morphological feature extraction, comprehensively capture directionality and texture information, improve the accuracy and comprehensiveness of stem cell quality evaluation, and achieve more accurate evaluation.
Smart Images

Figure CN118674716B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of cell image processing, and in particular to a method and system for evaluating stem cell quality. Background Art
[0002] Traditional stem cell quality assessment methods mainly rely on biochemical markers and gene expression analysis, which are often time-consuming, costly, and difficult to achieve real-time, high-throughput assessment. With the rapid development of computer vision and artificial intelligence technology, stem cell quality assessment methods based on image analysis have gradually attracted attention.
[0003] However, existing stem cell quality assessment methods based on image analysis still have some limitations. The morphological characteristics of stem cells are complex and diverse, and a single image processing algorithm is difficult to fully capture their morphological characteristics. Secondly, stem cell images are often affected by factors such as noise and uneven lighting, which affect the accuracy of feature extraction. In addition, traditional machine learning methods often perform poorly when dealing with high-dimensional, nonlinear stem cell morphological characteristics, making it difficult to accurately assess stem cell quality. Summary of the invention
[0004] The present invention provides a stem cell quality evaluation method and system for improving the accuracy of stem cell quality evaluation.
[0005] In a first aspect, the present invention provides a method for evaluating stem cell quality, the method comprising:
[0006] Acquiring a stem cell morphology image, and performing bilateral filtering on the stem cell morphology image to obtain a preprocessed image;
[0007] Performing threshold segmentation on the preprocessed image by using a multi-level Otsu algorithm and a local adaptive factor to obtain a threshold segmented image;
[0008] Performing multi-directional Sobel operator and gradient covariance matrix analysis on the threshold segmented image to obtain multi-dimensional morphological features;
[0009] Performing multi-scale non-maximum suppression and morphological feature description on the multi-dimensional morphological features to obtain a target feature point set;
[0010] Inputting the multi-dimensional morphological features and the target feature point set into a multi-branch deep neural network to perform stem cell quality evaluation to obtain an initial quality evaluation result;
[0011] Based on the Markov random field model, connectivity analysis and hierarchical clustering are performed on the initial quality evaluation results to obtain target quality evaluation results.
[0012] In a second aspect, the present invention provides a stem cell quality evaluation system, the stem cell quality evaluation system comprising:
[0013] An acquisition module is used to acquire stem cell morphology images and perform bilateral filtering on the stem cell morphology images to obtain preprocessed images;
[0014] A segmentation module, used for performing threshold segmentation on the preprocessed image by using a multi-level Otsu algorithm and a local adaptive factor to obtain a threshold segmented image;
[0015] An analysis module is used to perform multi-directional Sobel operator and gradient covariance matrix analysis on the threshold segmented image to obtain multi-dimensional morphological features;
[0016] A processing module, used for performing multi-scale non-maximum suppression and morphological feature description on the multi-dimensional morphological features to obtain a target feature point set;
[0017] An evaluation module, used for inputting the multi-dimensional morphological features and the target feature point set into a multi-branch deep neural network to evaluate the quality of stem cells and obtain an initial quality evaluation result;
[0018] The clustering module is used to perform connectivity analysis and hierarchical clustering on the initial quality evaluation results based on a Markov random field model to obtain target quality evaluation results.
[0019] The third aspect of the present invention provides a stem cell quality evaluation device, comprising: a memory and at least one processor, wherein the memory stores instructions; the at least one processor calls the instructions in the memory so that the stem cell quality evaluation device executes the above-mentioned stem cell quality evaluation method.
[0020] A fourth aspect of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, which, when executed on a computer, enable the computer to execute the above-mentioned stem cell quality assessment method.
[0021] In the technical solution provided by the present invention, by introducing an adaptive weight factor, the noise in the stem cell morphological image is effectively removed, while maintaining the integrity of the cell structure, achieving accurate segmentation of the stem cell image, being able to adapt to the grayscale characteristics of different regions, and improving the accuracy of subsequent morphological feature extraction. The directional characteristics and texture information of stem cells are fully captured, providing rich multi-dimensional morphological features, which helps to more accurately evaluate the quality of stem cells. Through adaptive line segment length and multi-scale analysis, a stable set of feature points is extracted, and descriptors such as local curvature and texture complexity are combined to comprehensively characterize the morphological characteristics of stem cells. By integrating convolutional neural networks and multi-layer perceptrons, based on spatial attention and channel attention mechanisms, effective integration of multimodal features is achieved, and the accuracy of quality assessment is improved. The spatial distribution characteristics of stem cells are taken into account, and the initial quality assessment results are optimized through connectivity analysis and morphological constraints. At the same time, classification, regression and feature consistency losses are considered, so that the model can learn multiple aspects of stem cell quality more comprehensively, improving the comprehensiveness of the evaluation results. This method improves the accuracy of stem cell quality evaluation.
[0022] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention are realized and obtained by the structures particularly pointed out in the description, claims and drawings.
[0023] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1 This is a schematic diagram of an embodiment of a method for evaluating stem cell quality in an embodiment of the present invention;
[0025] Figure 2 A schematic diagram of an embodiment of a stem cell quality evaluation system in an embodiment of the present invention;
[0026] Figure 3 FIG. 1 is a schematic diagram of an embodiment of a stem cell quality evaluation device in an embodiment of the present invention. DETAILED DESCRIPTION
[0027] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are 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 are within the scope of protection of the present invention.
[0028] The terms "including" and "having" and any variations thereof mentioned in the embodiments of the present invention are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device end including a series of steps or units is not limited to the listed steps or units, but may optionally include other steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or device ends.
[0029] To facilitate understanding of this embodiment, a stem cell quality evaluation method disclosed in an embodiment of the present invention is first described in detail. Figure 1 As shown, the method comprises the following steps:
[0030] 101. Collecting a stem cell morphology image, and performing bilateral filtering on the stem cell morphology image to obtain a preprocessed image;
[0031] It is understandable that the execution subject of the present invention may be a stem cell quality evaluation system, or a terminal or a server, which is not limited here. The embodiment of the present invention is described by taking a server as the execution subject as an example.
[0032] Specifically, high-resolution microscopic imaging of stem cell samples was performed to obtain clear stem cell morphological images. These morphological images can provide cell morphological information, such as the shape, size and internal structure of cells. The stem cell morphological images were grayed to convert the original images into grayscale morphological images. The image processing process was simplified, the amount of calculation was reduced, and the morphological features were highlighted. The adaptive weight factor was calculated based on the local variance and gradient information of the grayscale morphological image. The local variance and gradient information can reflect the detail changes and edge features in the image, and the adaptive weight factor is used to adjust the filter response to different image regions. The grayscale stem cell morphological image was processed by a 5×5 sliding window, and the pixel value at the center of the window and the spatial distance function between the pixel value and the surrounding pixel values were calculated pixel by pixel in the image. The spatial distance function reflects the distance between the central pixel and the neighboring pixels in space. The range distance function is based on the central pixel value and calculates the difference between it and other pixel values in the neighborhood. The spatial distance function and the range distance function were weighted based on the Gaussian function. The Gaussian function is often used for weighting in filtering processing, which can smoothly reduce the influence of pixels that are far away from the central pixel or have large differences. The weighted spatial distance function and the range distance function can better preserve the edge information of the image while reducing noise. A bilateral filtering function is constructed based on the adaptive weight factor, the weighted spatial distance function and the weighted range distance function. Bilateral filtering is an effective denoising method that can remove image noise while retaining important edge and detail information. The grayscale stem cell morphology image is filtered by the bilateral filtering function to obtain a preliminary filtering result. Edge preservation processing is performed on the preliminary filtering result to help enhance the edge of the image and make the boundary of the stem cell clearer. The edge-enhanced filtered image is contrast adjusted to improve the visual effect of the image to obtain a preprocessed image.
[0033] 102. Perform threshold segmentation on the preprocessed image by using a multi-level Otsu algorithm and a local adaptive factor to obtain a threshold segmented image;
[0034] Specifically, a histogram analysis is performed on the preprocessed image to obtain the grayscale distribution information of the image. The grayscale distribution information reflects the overall contrast and brightness change of the image by analyzing the brightness distribution of pixels in the image. Based on the obtained grayscale distribution information, a peak detection algorithm is used to determine the number of peaks N in the image. The number of peaks represents the number of significant areas of different grayscale levels in the image, which is the basis for subsequent area division. The grayscale range of the preprocessed image is divided into N+1 areas to obtain the initial area division result. In each divided area, the corresponding pixel ratio and average grayscale value are calculated. These two parameters reflect the proportion of the area in the overall image and its grayscale characteristics, respectively. Through parameter calculation, the average grayscale value of the entire preprocessed image is obtained. Based on the principle of maximizing inter-class variance, an objective function is constructed. Inter-class variance is an important criterion for measuring the difference in grayscale values between different regions. Maximizing inter-class variance means that the system can maximize the difference in grayscale features of different regions when dividing the region, thereby achieving the best image segmentation effect. In order to find the threshold that maximizes the inter-class variance, the dynamic programming method is used to optimize the objective function to obtain N global optimal thresholds. The global optimal threshold is used to segment the image into different grayscale regions. The local adaptive factor is calculated based on the local variance and entropy information of the preprocessed image. The factor takes into account the local characteristics of the image so that it can be adjusted according to the actual situation in different regions of the image. The adaptive threshold is obtained by locally adjusting the global optimal threshold. The preprocessed image is segmented at multiple levels according to the adaptive threshold to obtain the final threshold segmented image. By combining global and local information, the segmentation result can more accurately reflect the details and structural features in the image.
[0035] 103. Perform multi-directional Sobel operator and gradient covariance matrix analysis on the threshold segmentation image to obtain multi-dimensional morphological features;
[0036] Specifically, a 3×3 Sobel operator is constructed for the threshold segmentation image in four directions, which are usually horizontal, vertical and two diagonal directions. The Sobel operator is used to extract edge information in the image, and convolution operations are performed with the threshold segmentation image to generate gradient maps in four directions. Through the convolution operation, edge and contour information in different directions are detected. According to the generated gradient maps in four directions, the gradient amplitude of each pixel is calculated. The gradient amplitude reflects the drastic degree of brightness change in the image and is an important indicator for edge detection. At the same time, the gradient direction of each pixel is calculated according to the gradient maps in four directions, which helps to determine the specific direction and structure of the edge in the image. Based on these gradient maps, a gradient covariance matrix is constructed. The gradient covariance matrix can capture the distribution characteristics of the gradient in the image. By performing eigenvalue decomposition on the gradient covariance matrix, the eigenvalues and corresponding eigenvectors are obtained. The eigenvalue represents the intensity of the gradient distribution, while the eigenvector indicates the main direction of the gradient. Using these eigenvalues, the anisotropy index is calculated. The anisotropy index is used to measure the directionality and consistency of morphological features in the image, reflecting whether the structure in the image has obvious directional characteristics. The main direction of stem cell morphology is determined through the eigenvector, which is an important part of stem cell morphological characteristics. At the same time, the local direction consistency index is calculated based on the gradient amplitude and gradient direction. The local direction consistency index is used to measure the consistency of the gradient direction in the local area, so as to accurately describe the distribution of morphological characteristics. The gradient amplitude, gradient direction, anisotropy index, main direction and local direction consistency index are combined to obtain multi-dimensional morphological characteristics.
[0037] 104. Perform multi-scale non-maximum suppression and morphological feature description on the multi-dimensional morphological features to obtain a target feature point set;
[0038] Specifically, according to the gradient amplitude in the multi-dimensional morphological features, the adaptive line segment length S is calculated. The length S is adjusted according to the intensity of the gradient and the local features of the image to more accurately capture the morphological features. For each pixel, a vertical line segment of length S is taken in the gradient direction, and linear interpolation is performed to generate a gradient value sequence on the line segment. This sequence is used to detect the changes in the edges and feature points along the gradient direction. According to the gradient value sequence, a local maximum judgment is performed on each pixel to determine whether it is a local maximum. If a pixel is not a local maximum in the gradient direction, it will be suppressed to reduce noise and non-important features, and a preliminary non-maximum suppression result is obtained. A scale space is constructed, and multiple scales are selected in the scale space. Each scale represents a different level of observation, from details to the whole. For each selected scale, the non-maximum suppression process is repeated to obtain a multi-scale non-maximum suppression result. The multi-scale non-maximum suppression results are checked for inter-scale consistency, and those points that are non-maximum at multiple scales are retained to ensure that these points are true feature points, rather than accidental noise or pseudo-features. Through this process, a stable set of feature points is obtained. The local curvature is calculated for each point in the stable feature point set to reflect the shape and structural changes around the feature point. The local image block is extracted with each point in the stable feature point set as the center, and the texture complexity is calculated. This helps to capture the subtle structural features in the stem cell morphology, such as texture and surface details. The shape factor of the region is calculated for each point in the stable feature point set. This is an indicator that quantifies the shape characteristics and is used to describe the geometric characteristics of the region. The gradient amplitude, gradient direction, local curvature, texture complexity and shape factor are combined to form a feature descriptor. The feature descriptor is a multi-dimensional feature vector that can comprehensively describe the morphological characteristics of each feature point, thereby forming a target feature point set.
[0039] 105. Input the multi-dimensional morphological features and the target feature point set into a multi-branch deep neural network to evaluate the quality of stem cells and obtain an initial quality evaluation result;
[0040] Specifically, spatial pyramid pooling is performed on multi-dimensional morphological features. Spatial pyramid pooling helps capture feature information at different scales and form multi-scale feature maps. The multi-scale feature map is input into the convolutional neural network branch and processed through multiple layers of convolution, batch normalization and ReLU activation function to generate a convolutional feature map. The convolution layer extracts high-level features, batch normalization stabilizes network training, and the ReLU activation function introduces nonlinearity, enabling the network to learn complex patterns. Residual connections are applied to the convolutional feature map to construct residual blocks and obtain enhanced convolutional features. Residual connections alleviate the gradient vanishing problem and enhance feature representation capabilities by allowing the network to learn residual mapping. At the same time, the target feature point set is input into the multi-layer perceptron network branch and processed through fully connected layers and nonlinear activation functions to generate a point feature vector. This branch focuses on extracting deep features of the feature point set to provide support for subsequent feature fusion. A spatial attention mechanism is applied to the enhanced convolutional features. The spatial attention mechanism calculates the attention weight matrix to highlight important spatial features and obtain spatial weighted features. The channel attention mechanism is applied to process the spatial weighted features, calculate the channel weight vector, and obtain the channel weighted features. The channel attention mechanism helps to emphasize the importance of specific channels and improve the expressiveness of features. The channel weighted features and point feature vectors are fused to obtain multimodal fusion features. An adaptive weighted network is applied to the multimodal fusion features to learn feature weight coefficients and generate dynamic weighted features. The adaptive weighted network can better capture the importance of different features in quality evaluation by dynamically adjusting feature weights. The dynamic weighted features are input into the fully connected layer to obtain the stem cell quality score and classification probability. The stem cell quality score provides a quantitative quality assessment, while the classification probability reflects the classification of stem cells. Based on these outputs, the multi-task loss function L is calculated, and the formula is L=λ1Lclass+λ2Lregression+λ3*Lfeature, where Lclass is the classification loss, Lregression is the regression loss, Lfeature is the feature consistency loss, and λ1, λ2, and λ3 are balance coefficients. The multi-task loss function optimizes the overall performance of the network by comprehensively considering the losses of classification, regression, and feature consistency, and obtains the initial quality evaluation result.
[0041] 106. Based on the Markov random field model, connectivity analysis and hierarchical clustering are performed on the initial quality evaluation results to obtain the target quality evaluation results.
[0042] Specifically, a cell connectivity graph G is constructed based on the spatial position information of stem cells in the initial quality evaluation results. The construction of the connectivity graph G is based on the position of stem cells, and each stem cell is regarded as a node in the graph. For each pair of adjacent nodes in the cell connectivity graph G, the edge weights between them are calculated. The calculation of edge weights can be based on multiple factors, such as spatial distance and similarity of morphological features between cells, which help to evaluate the strength of the relationship between cells. The cell connectivity graph G is converted into a Markov random field and its energy function is defined. The energy function is used to quantify the "cost" of a specific state distribution, thereby guiding the optimization of quality labels. According to the initial quality evaluation results, the unit potential function is initialized to assign an initial quality label probability distribution to each node. Based on the morphological characteristics of the cells, pairwise potential functions are designed. Pairwise potential functions are used to describe the interactions and constraints between adjacent nodes, taking into account the mutual relationships between cells. These functions introduce morphological constraints in the model to ensure that cells with similar characteristics have a reasonable label distribution in space. The belief propagation algorithm is applied to the Markov random field to gradually update the label distribution of each node by iteratively calculating messages. This process helps the model converge to a stable state, in which the label distribution of each node reflects the tendency of the global optimal solution. Morphological constraints are designed and integrated into the cell potential function. These morphological constraints may include cell shape, size, or other morphological features that have a significant impact on cell quality. The updated cell potential function can better reflect the actual situation. The belief propagation algorithm is executed based on the updated potential function to obtain the optimized quality label assignment, which represents the position of each cell in the overall quality evaluation. Hierarchical clustering analysis is performed on these labels using an adaptive distance metric. The adaptive distance metric can adaptively adjust the distance calculation method according to the cell characteristics, thereby more accurately reflecting the similarities or differences between cells. The hierarchical clustering results help the system understand the structure of the cell population, especially identify the spatial distribution of high-quality cell populations. The target quality evaluation results are generated based on the hierarchical clustering results. These results include overall quality distribution statistics, which are used to show the number and proportion of cells with different quality levels; spatial distribution maps of high-quality cell populations, showing the geographical locations of these cells; correlation analysis between key morphological features and quality, revealing the main morphological features that affect cell quality; and markers of abnormal cells, which help identify and annotate cells that may have abnormalities.
[0043] In the embodiment of the present invention, by introducing an adaptive weight factor, the noise in the stem cell morphological image is effectively removed, while maintaining the integrity of the cell structure, achieving accurate segmentation of the stem cell image, being able to adapt to the grayscale characteristics of different regions, and improving the accuracy of subsequent morphological feature extraction. The directional characteristics and texture information of stem cells are fully captured, providing rich multi-dimensional morphological features, which helps to more accurately evaluate the quality of stem cells. Through adaptive line segment length and multi-scale analysis, a stable set of feature points is extracted, and descriptors such as local curvature and texture complexity are combined to comprehensively characterize the morphological characteristics of stem cells. By integrating convolutional neural networks and multi-layer perceptrons, based on spatial attention and channel attention mechanisms, effective integration of multimodal features is achieved, and the accuracy of quality assessment is improved. The spatial distribution characteristics of stem cells are taken into account, and the initial quality assessment results are optimized through connectivity analysis and morphological constraints. At the same time, classification, regression and feature consistency losses are considered, so that the model can learn multiple aspects of stem cell quality more comprehensively, improving the comprehensiveness of the evaluation results. This method improves the accuracy of stem cell quality evaluation.
[0044] In a specific embodiment, the process of executing step 101 may specifically include the following steps:
[0045] (1) Performing high-resolution microscopic imaging on the stem cell sample to obtain a stem cell morphology image, and performing grayscale processing on the stem cell morphology image to obtain a grayscale morphology image;
[0046] (2) Calculate the adaptive weight factor based on the local variance and gradient information of the grayscale morphological image;
[0047] (3) Process the grayscale stem cell morphology image through a 5×5 sliding window, calculate the window center pixel value and spatial distance function, and calculate the range distance function based on the window center pixel value;
[0048] (4) Based on the Gaussian function, the spatial distance function and the range distance function are weighted to obtain a weighted spatial distance function and a weighted range distance function;
[0049] (5) constructing a bilateral filtering function based on the adaptive weight factor, the weighted spatial distance function, and the weighted range distance function;
[0050] (6) Perform image filtering on the grayscale stem cell morphology image using a bilateral filtering function to obtain a preliminary filtering result;
[0051] (7) Performing edge-preserving processing on the preliminary filtering result to obtain an edge-enhanced filtered image, and performing contrast adjustment on the edge-enhanced filtered image to obtain a preprocessed image.
[0052] Specifically, high-resolution microscopic imaging of stem cell samples is performed to obtain stem cell morphological images. This imaging technology can capture the fine structure of cells, including the morphological information of cell membranes, cell nuclei, and other organelles. The stem cell morphological images are grayed and converted into grayscale morphological images. The color information of each pixel is converted into a single brightness value, making image processing more intuitive and simple. This step is achieved through the following formula:
[0053] ;
[0054] in, , , Represents the pixel values of the red, green and blue channels in the image, while Gray represents the converted grayscale value. This formula is weighted based on the difference in sensitivity of the human eye to different colors. The adaptive weight factor is calculated based on the local variance and gradient information of the grayscale morphological image. The local variance reflects the severity of the pixel brightness change in the image, while the gradient information shows the direction and intensity of the brightness change. With this information, the edges and detail areas in the image are identified. The calculation of the adaptive weight factor can be expressed as:
[0055] ;
[0056] in, It's location The weight factor at is the gray value at that position, is the average gray value of the image, is the standard deviation of the grayscale values of the image. The adaptive weighting factor can provide different weightings in different areas of the image, thereby preserving important details and edge information. The grayscale stem cell morphology image is processed through a 5×5 sliding window. Within each window, the value of the center pixel of the window and the spatial distance function are calculated. The spatial distance function measures the distance between the center pixel and other pixels in space. These distances are calculated using the following formulas:
[0057] ;
[0058] in, It's pixels To center pixel According to the center pixel value of the window, the range distance function is calculated, which measures the difference between the center pixel value and the neighboring pixel value. The formula is as follows:
[0059] ;
[0060] in, Indicates the center pixel value With other pixel values The difference between them. The spatial distance function and the range distance function are weighted based on the Gaussian function. The Gaussian function is expressed by the following formula:
[0061] ;
[0062] in, is the value of the Gaussian function, is the input value, is the standard deviation parameter. The Gaussian function is applied to the spatial distance function and the range distance function respectively to obtain the weighted spatial distance function and the weighted range distance function. The weighted function can suppress the noise in the image while retaining the important edge and detail information. According to the adaptive weight factor, the weighted spatial distance function and the weighted range distance function, a bilateral filtering function is constructed. The bilateral filtering function comprehensively considers the spatial and range information in the image, so that the image can retain important edges and details while denoising. The formula is as follows:
[0063] ;
[0064] in, is the pixel value after filtering, is the normalization factor, and are Gaussian functions applied to spatial distance and range distance respectively, is the neighborhood pixel value. The grayscale stem cell morphology image is filtered by a bilateral filtering function to obtain a preliminary filtering result. This result retains the main morphological features in the stem cell image while reducing noise interference. The preliminary filtering result is edge-preserving processed. The edge-preserving process makes the edges in the image clearer through filtering and enhancement algorithms. The edge-enhanced filtered image is contrast-adjusted to improve the visual effect and obtain a preprocessed image. Contrast adjustment can highlight important details in the image and make the morphological features of stem cells more obvious.
[0065] In a specific embodiment, the process of executing step 102 may specifically include the following steps:
[0066] (1) Performing histogram analysis on the preprocessed image to obtain grayscale distribution information, and determining the number of peaks N based on the peak detection algorithm according to the grayscale distribution information;
[0067] (2) Divide the grayscale range of the preprocessed image into N+1 regions to obtain the initial region division result, and calculate the pixel ratio and average grayscale value for each region in the initial region division result;
[0068] (3) Calculate the average gray value of the preprocessed image based on the pixel ratio and the average gray value;
[0069] (4) Based on the principle of maximizing the inter-class variance, the objective function is constructed and optimized using the dynamic programming method to obtain N global optimal thresholds;
[0070] (5) According to the local variance and entropy information of the preprocessed image, the local adaptive factor is calculated, and the N global optimal thresholds are locally adjusted to obtain the adaptive threshold;
[0071] (6) Perform multi-level segmentation on the preprocessed image according to the adaptive threshold to obtain a threshold segmented image.
[0072] Specifically, the grayscale distribution information of the preprocessed image is obtained. Histogram analysis is a commonly used method for displaying the distribution of the number of pixels at each grayscale level in the image. Through the histogram, the brightness distribution of the image, such as the ratio of bright areas to dark areas, is observed. The number of peaks N in the histogram is determined based on the peak detection algorithm. The core idea of the peak detection algorithm is to identify the local maximum values in the grayscale distribution, which represent different grayscale areas in the image, such as shadows, backgrounds, and foregrounds. The grayscale range of the preprocessed image is divided into N+1 regions to obtain the initial region division result. Each region corresponds to a peak in the histogram and a valley between adjacent regions. This division method helps the system decompose the grayscale distribution of the image into multiple parts with similar grayscale features, thereby simplifying subsequent image processing steps. For each region in the initial region division result, its pixel ratio and average grayscale value are calculated. The pixel ratio refers to the ratio of the number of pixels in the region to the number of pixels in the entire image, while the average grayscale value is the average brightness of all pixels in the region. According to the pixel ratio and average grayscale value of each region, the average grayscale value of the preprocessed image is calculated. The formula is as follows:
[0073] ;
[0074] in, is the average gray value of the image, It is The pixel ratio of the area, It is The average gray value of each region. The average gray value represents the overall brightness level of the entire image. The objective function is constructed based on the principle of maximizing the inter-class variance. The inter-class variance is an important indicator to measure the gray level difference between different regions. By maximizing the inter-class variance, the gray feature difference between each region is maximized, achieving more accurate image segmentation. The formula of the objective function is as follows:
[0075] ;
[0076] in, represents the sum of the between-class variances, is the region index, Respectively The pixel ratio and average grayscale value of the region. The objective function is optimized using the dynamic programming method to determine N global optimal thresholds. These thresholds are the boundaries for optimally dividing the grayscale distribution of the image into different regions. Since there may be local brightness unevenness or other complex situations in the image, using only the global threshold may not produce the optimal segmentation effect. The local adaptive factor is calculated based on the local variance and entropy information of the preprocessed image. The local variance reflects the severity of the pixel brightness change in the image, while the entropy information provides a measure of the complexity of the image. These factors help the system further adjust the global threshold in each region to adapt to the local characteristics of the image. The formula is as follows:
[0077] ;
[0078] in, It is and are the local variance and entropy of the region, respectively. is a very small constant used to avoid the denominator being zero. According to the adaptive factor, the N global optimal thresholds are locally adjusted to obtain the adaptive threshold. The adaptive threshold can better adapt to the brightness changes in various regions of the image, thereby improving the accuracy of segmentation. The preprocessed image is multi-level segmented according to the adaptive threshold to obtain a threshold segmented image. For example, in a cell image with complex background and foreground, the global threshold may over- or under-segment in some areas, while the adaptive threshold can flexibly adjust the segmentation criteria to make the cell boundaries clearer and the background and foreground separation clearer.
[0079] In a specific embodiment, the process of executing step 103 may specifically include the following steps:
[0080] (1) Construct a 3×3 Sobel operator in four directions for the threshold segmentation image, and perform convolution operations on the threshold segmentation image and the Sobel operator in four directions to obtain gradient maps in four directions;
[0081] (2) Calculate the gradient magnitude of each pixel based on the gradient maps in four directions, and calculate the gradient direction of each pixel based on the gradient maps in four directions;
[0082] (3) Based on the gradient maps in four directions, a gradient covariance matrix is constructed, and the gradient covariance matrix is decomposed into eigenvalues to obtain the eigenvalues and corresponding eigenvectors;
[0083] (4) Calculate the anisotropy index based on the eigenvalues and determine the main directions of the stem cell morphology based on the eigenvectors;
[0084] (5) Calculate the local direction consistency index based on the gradient amplitude and gradient direction;
[0085] (6) The gradient amplitude, gradient direction, anisotropy index, main direction and local direction consistency index are combined to obtain multi-dimensional morphological features.
[0086] Specifically, a 3×3 Sobel operator in four directions is constructed. These directions include horizontal, vertical, and two diagonal directions, which are used to detect edge changes in various directions in the image. The Sobel operator is a filter used to extract image gradient information. By performing convolution operations on the image, the direction and intensity of edge and brightness changes can be detected. For example, the Sobel operators in the horizontal and vertical directions are expressed as:
[0087] Horizontal direction:
[0088] ;
[0089] Vertical direction:
[0090] ;
[0091] After these Sobel operators are convolved with the image, gradient maps in four directions are obtained. The gradient maps show the brightness change information in each direction of the image. The gradient magnitude and gradient direction of each pixel are calculated based on the gradient map. Indicates the intensity of pixel brightness change, which can be expressed in horizontal direction and vertical direction The gradient component of is calculated as:
[0092] ;
[0093] in, and are the gradient components in the horizontal and vertical directions respectively. Gradient Direction Determined by the following formula:
[0094] ;
[0095] Based on the gradient graphs in four directions, a gradient covariance matrix is constructed to describe the distribution characteristics of the gradient information. The elements of the gradient covariance matrix represent the correlation between gradients in different directions. For example, the elements of the matrix are represents the variance of the horizontal gradient, and represents the covariance of the horizontal and vertical gradients, and is the variance of the vertical gradient. The form of the gradient covariance matrix is:
[0096] ;
[0097] By performing eigenvalue decomposition on the gradient covariance matrix, we can obtain the eigenvalues and corresponding eigenvectors. The eigenvalues reflect the strength of the gradient distribution, while the eigenvectors reveal the main gradient directions. Based on the eigenvalues, we can calculate the anisotropy index. , which is used to measure the directionality of the structure in the image. The calculation formula is as follows:
[0098] ;
[0099] in, and are the maximum and minimum values of the eigenvalues, respectively. Based on the eigenvector, the main direction of the stem cell morphology is determined. According to the gradient amplitude and gradient direction, the local direction consistency index is calculated. The local direction consistency index is used to evaluate the consistency of the gradient direction in a given area. Its calculation formula is:
[0100] ;
[0101] in, It is The gradient direction of pixels, is the average gradient direction of the region, is the number of pixels in the region. The gradient amplitude, gradient direction, anisotropy index, main direction and local direction consistency index are combined to form a multi-dimensional morphological feature vector. The features are used to distinguish the health status of stem cells, identify abnormal cell morphology, or to evaluate the effect of stem cell culture and treatment.
[0102] In a specific embodiment, the process of executing step 104 may specifically include the following steps:
[0103] (1) According to the gradient amplitude in the multi-dimensional morphological features, the adaptive line segment length S is calculated, and for each pixel point, a vertical line segment of length S is taken in the gradient direction, and linear interpolation is performed to obtain the gradient value sequence on the line segment;
[0104] (2) According to the gradient value sequence, the local maximum value of the pixel point is judged. If it is not the local maximum value, the corresponding pixel point is suppressed to obtain the preliminary non-maximum suppression result;
[0105] (3) Construct a scale space, select multiple scales in the scale space, and repeat the non-maximum suppression process for each scale to obtain a multi-scale non-maximum suppression result;
[0106] (4) Perform inter-scale consistency check on the multi-scale non-maximum suppression results, retain the points that are non-maximum at multiple scales, obtain a stable feature point set, and calculate the local curvature for each point in the stable feature point set;
[0107] (5) Taking each point in the stable feature point set as the center, extract the local image block, calculate the texture complexity, and calculate the shape factor of the area for each point in the stable feature point set;
[0108] (6) The gradient amplitude, gradient direction, local curvature, texture complexity and shape factor are combined to form a feature descriptor to obtain the target feature point set.
[0109] Specifically, the adaptive line segment length S is calculated according to the gradient amplitude in the multi-dimensional morphological features. It usually indicates the intensity of brightness changes in an image and is an important indicator for calculating edge features. The formula can be expressed as:
[0110] ;
[0111] in, is a constant used to adjust the length of the line segment. is a small value to prevent the gradient amplitude from The error of dividing by zero when the value is zero. The formula is designed to make the length of the line segment inversely proportional to the gradient amplitude, that is, a shorter line segment is used where the gradient changes violently, and a longer line segment is used where the change is gentle. At each pixel point, take a vertical line segment of length S in the gradient direction with it as the starting point. The gradient value sequence on this line segment is obtained by linear interpolation. Linear interpolation can generate continuous gradient values between discrete image pixels, so that a more refined feature representation can be obtained during the calculation process. The interpolated gradient value sequence reflects the gradient change along the gradient direction. According to the obtained gradient value sequence, the local maximum value is judged for each pixel point. The local maximum value judgment is to detect the significant edge points in the image, that is, to judge whether the current pixel point is the local maximum value in the sequence. If the current pixel point is not the local maximum value, it is considered that it does not have a significant edge feature, so it is suppressed, effectively reducing the interference of noise and redundant features, and obtaining the preliminary non-maximum suppression result. Construct a scale space, select multiple scales in the scale space, and repeat the non-maximum suppression process for each scale. Scale space technology allows image features to be observed at different resolutions, which can help identify feature points that are consistent at different scales. These points are usually highly significant and stable. The non-maximum suppression results at each scale are processed in the same way to ensure consistency. The multi-scale non-maximum suppression results are checked for inter-scale consistency to ensure that the final feature points are non-maximum at multiple scales, thereby filtering out pseudo feature points that may appear at certain scales. Only points that are non-maximum at all selected scales are retained to form a stable feature point set. For each point in the stable feature point set, its local curvature is calculated. The local curvature describes the shape change of the image around the feature point and can reflect the degree of curvature of the details. The local curvature can usually be obtained by calculating the second-order derivative of the image gradient. With each stable feature point as the center, a local image block is extracted and the texture complexity of the image block is calculated. Texture complexity is an important indicator to measure the richness of details inside the image block, which can help distinguish different structures and regions. For example, a region with high texture complexity may represent a fine structure of tissue, while a region with low complexity may be a relatively flat background. For each point in the stable feature point set, the shape factor of the region is calculated. The shape factor is used to describe the geometric characteristics of the region, such as its aspect ratio, the ratio of perimeter to area, etc. These indicators help to further understand the morphological characteristics and structural characteristics of the region. The features such as gradient amplitude, gradient direction, local curvature, texture complexity and shape factor are combined to form a complete feature descriptor. The feature descriptor integrates information from multiple aspects and can comprehensively and accurately describe the morphological characteristics of the target feature points, and finally obtains the target feature point set for further image analysis, classification, recognition and other tasks.
[0112] In a specific embodiment, the process of executing step 105 may specifically include the following steps:
[0113] (1) Perform spatial pyramid pooling on the multi-dimensional morphological features to obtain a multi-scale feature map, and then input the multi-scale feature map into the convolutional neural network branch. After multi-layer convolution, batch normalization and ReLU activation function processing, a convolution feature map is obtained.
[0114] (2) Apply residual connection to the convolution feature map, construct residual blocks, obtain enhanced convolution features, and input the target feature point set into the multi-layer perceptron network branch. After processing through the fully connected layer and nonlinear activation function, the point feature vector is obtained.
[0115] (3) Apply the spatial attention mechanism to the enhanced convolutional features, calculate the attention weight matrix, obtain the spatial weighted features, and apply the channel attention mechanism to the spatial weighted features, calculate the channel weight vector, and obtain the channel weighted features;
[0116] (4) Fuse the channel weighted features and point feature vectors to obtain multimodal fusion features;
[0117] (5) Apply an adaptive weighted network to the multimodal fusion features, learn the feature weight coefficients, obtain dynamic weighted features, and input the dynamic weighted features into the fully connected layer to obtain the stem cell quality score and classification probability;
[0118] (6) According to the stem cell quality score and classification probability, the multi-task loss function L = λ1*Lclass+λ2*Lregression+λ3*Lfeature is calculated, where L is the multi-task loss, Lclass is the classification loss, Lregression is the regression loss, Lfeature is the feature consistency loss, and λ1, λ2, and λ3 are balance coefficients to obtain the initial quality evaluation result.
[0119] Specifically, first, spatial pyramid pooling is performed on the multi-dimensional morphological features to obtain a multi-scale feature map. Spatial pyramid pooling captures feature information at different resolutions by performing pooling operations on images at different scales, thereby enriching the feature representation. The multi-scale feature map is composed of pooled features of multiple scales and contains feature information at different scales. The multi-scale feature map is input into the convolutional neural network branch, and after processing through multiple layers of convolution, batch normalization and ReLU activation function, a convolutional feature map is obtained. The convolution layer extracts features, batch normalization stabilizes the training process of the network, and the ReLU activation function introduces nonlinearity to enhance the expression ability of the network. The convolutional feature map contains high-level feature information of the image. The generation of the convolutional feature map is expressed by the following formula:
[0120] ;
[0121] in, and Respectively represent the weight and bias of the convolution kernel, * represents the convolution operation, is the input feature map, BatchNorm represents the batch normalization operation, and ReLU represents the ReLU activation function. Residual connections are applied to the convolutional feature map to build residual blocks to enhance the expressiveness of features. Residual connections enable the network to learn residual mapping through skip connections, solving the problem of gradient disappearance in deep networks. The output of the residual block can be expressed as:
[0122] ;
[0123] in, For input, is the residual function, which represents the transformation through several layers. At the same time, the target feature point set is input into the multi-layer perceptron network branch, and processed through the fully connected layer and nonlinear activation function to obtain the point feature vector. The multi-layer perceptron generates point feature vectors by learning the complex relationship between feature points. These vectors contain rich semantic information. The generation of point feature vectors can be expressed as:
[0124] ;
[0125] in, and are the weights and biases of the fully connected layer, is a nonlinear activation function, is the input feature. The spatial attention mechanism is applied to the enhanced convolutional features, and the attention weight matrix is calculated to make the network focus on important areas. The spatial attention mechanism calculates the attention score of each position, generates the attention weight matrix, and obtains the spatial weighted feature. The calculation formula of the attention weight matrix is:
[0126] ;
[0127] in, For location The attention score, is the attention weight of the position, is the total number of positions in the feature map. The channel attention mechanism is applied to the spatially weighted features to calculate the channel weight vector. The channel attention mechanism is used to weight on the channel dimension to highlight features that are sensitive to specific channels. The calculation formula for the channel weight vector is:
[0128] ;
[0129] in, For Channel The score, is the weight of the channel, is the total number of channels. The channel weighted features and point feature vectors are fused to obtain multimodal fusion features. Feature fusion combines image features and point features to make the feature representation more comprehensive. The fused feature representation is:
[0130] ;
[0131] in, and They are channel weighted features and point feature vectors respectively. The adaptive weighted network is applied to learn the feature weight coefficients to obtain dynamic weighted features. The adaptive weighted network assigns appropriate weights to each feature by learning the importance of different features. The representation of dynamic weighted features is:
[0132] ;
[0133] in, is the feature weight coefficient, and · represents element-by-element multiplication. The dynamically weighted features are input into the fully connected layer to obtain the stem cell quality score and classification probability. The stem cell quality score reflects the quantitative evaluation of cell quality, while the classification probability indicates the possibility that cells belong to different quality categories. The calculation formulas for the stem cell quality score and classification probability are:
[0134] ;
[0135] ;
[0136] in, and are the weights and biases of the fully connected layer, is the quality score, is the classification probability. According to the stem cell quality score and classification probability, the multi-task loss function is calculated , the formula is:
[0137] ;
[0138] in, is the multi-task loss, is the classification loss, used to evaluate the classification accuracy, is the regression loss, which is used to measure the gap between the predicted quality score and the actual score. is the feature consistency loss, which is used to ensure the consistency of feature representation. , , It is the balance coefficient that adjusts the weights of different task losses.
[0139] In a specific embodiment, the process of executing step 106 may specifically include the following steps:
[0140] (1) Based on the spatial location information of stem cells in the initial quality evaluation results, a cell connectivity graph G is constructed, and the edge weights are calculated for each pair of adjacent nodes in the cell connectivity graph G;
[0141] (2) Convert the cell connectivity graph G into a Markov random field, define the energy function, and initialize the cell potential function based on the initial quality evaluation results;
[0142] (3) Based on the cell morphological characteristics, a pairwise potential function is designed, and the belief propagation algorithm is applied to the Markov random field to iteratively calculate the message;
[0143] (4) Design morphological constraints and integrate them into the unit potential function to obtain an updated potential function;
[0144] (5) Based on the updated potential function, the belief propagation algorithm is re-executed to obtain the optimized quality label allocation, and the optimized quality label allocation is subjected to hierarchical clustering analysis using an adaptive distance metric to obtain the hierarchical clustering result;
[0145] (6) Generate target quality evaluation results based on the hierarchical clustering results. The target quality evaluation results include overall quality distribution statistics, spatial distribution map of high-quality cell populations, key morphological features and quality correlation analysis, and abnormal cell markers.
[0146] Specifically, the spatial location information of stem cells is extracted from the initial quality evaluation results, and the cell connectivity map is constructed based on this information. Each stem cell is represented as a node in the graph, and the connections between nodes represent the relationships between cells. For each pair of adjacent nodes in , calculate the edge weight, edge weight Usually based on the distance and morphological similarity between cells. The calculation formula of edge weight can be expressed as:
[0147] ;
[0148] in, Representation Node and nodes The distance between is a parameter that controls the effect of distance. This formula shows that the edge weights between nodes that are closer together are larger, which means that the connection between these nodes is stronger. Transformed into Markov random field and defined energy function The energy function is used to quantify the overall state of the system. The smaller the value, the more stable the state. The form of the energy function is:
[0149] ;
[0150] in, is the unit potential function, indicating that the node The energy of the state, is the pairwise potential function, which represents the adjacent nodes and Based on the initial quality evaluation results, the unit potential function is initialized. , whose value is usually based on the initial mass label and morphological characteristics of the cells. The design is based on the morphological characteristics of cells, such as cell size, shape, and surface features. The pairwise potential function is used to describe the similarity between adjacent cells and is defined as:
[0151] ;
[0152] in, and Represent the energy cost of the same and different labels respectively. Apply the belief propagation algorithm to the Markov random field and iteratively calculate the message. Belief propagation is an algorithm for calculating the edge distribution of nodes in a graph model. By iteratively updating the message, it eventually converges to a stable edge distribution. The formula for message update is:
[0153] ;
[0154] in, It is a slave node To Node The news, Representation Node The set of neighbor nodes of the node is obtained. The state estimation of the node is updated through the belief propagation algorithm to obtain the optimized edge distribution. In the iterative process, morphological constraints are designed and integrated into the unit potential function. The morphological constraints are used to ensure that the features captured by the model are consistent with the actual cell morphological features, such as the shape consistency and spatial distribution law of the cell. The updated unit potential function reflects the impact of these constraints on the cell state. Based on the updated potential function, the belief propagation algorithm is re-executed to obtain the optimized quality label allocation, and the state of each node is more consistent with the actual cell quality distribution. The optimized quality label allocation is hierarchically clustered using an adaptive distance metric. Hierarchical clustering reveals the internal structure of cell populations with different quality levels by recursively grouping cells. The adaptive distance metric can dynamically adjust the distance calculation method in the clustering process according to the weights of different features, making the clustering results more accurate. The target quality evaluation results are generated based on the hierarchical clustering results. The target quality evaluation results include several key parts: the overall quality distribution statistics show the number and proportion of cells with different quality levels; the spatial distribution map of high-quality cell populations shows the spatial aggregation of these cells; the correlation analysis between key morphological features and quality reveals which morphological features are significantly associated with cell quality; abnormal cell markers are used to identify and mark cells that may have problems or abnormalities. For example, in stem cell research, stem cell populations with higher quality are identified and their morphological characteristics are analyzed, such as cell size, symmetry of shape, and smoothness of the cell surface. These characteristics may be closely related to the differentiation potential or regenerative ability of the cell. Abnormal cell markers can help researchers identify cells that may be in a state of apoptosis or abnormal differentiation.
[0155] The above describes the stem cell quality evaluation method in the embodiment of the present invention. The following describes the stem cell quality evaluation system in the embodiment of the present invention. Figure 2 In one embodiment of the present invention, a stem cell quality evaluation system includes:
[0156] The acquisition module 201 is used to acquire the stem cell morphology image and perform bilateral filtering on the stem cell morphology image to obtain a pre-processed image;
[0157] The segmentation module 202 is used to perform threshold segmentation on the preprocessed image by using a multi-level Otsu algorithm and a local adaptive factor to obtain a threshold segmented image;
[0158] An analysis module 203 is used to perform multi-directional Sobel operator and gradient covariance matrix analysis on the threshold segmentation image to obtain multi-dimensional morphological features;
[0159] A processing module 204 is used to perform multi-scale non-maximum suppression and morphological feature description on the multi-dimensional morphological features to obtain a target feature point set;
[0160] Evaluation module 205, used to input the multi-dimensional morphological features and target feature point set into a multi-branch deep neural network to evaluate the quality of stem cells and obtain an initial quality evaluation result;
[0161] The clustering module 206 is used to perform connectivity analysis and hierarchical clustering on the initial quality evaluation results based on the Markov random field model to obtain target quality evaluation results.
[0162] Through the synergy of the above components, the noise in the stem cell morphology image is effectively removed by introducing an adaptive weight factor, while maintaining the integrity of the cell structure, achieving accurate segmentation of the stem cell image, being able to adapt to the grayscale characteristics of different regions, and improving the accuracy of subsequent morphological feature extraction. The directional characteristics and texture information of stem cells are fully captured, providing rich multi-dimensional morphological features, which helps to more accurately evaluate the quality of stem cells. Through adaptive line segment length and multi-scale analysis, a stable set of feature points is extracted, and descriptors such as local curvature and texture complexity are combined to comprehensively characterize the morphological characteristics of stem cells. The fusion of convolutional neural networks and multi-layer perceptrons, based on spatial attention and channel attention mechanisms, realizes the effective integration of multimodal features and improves the accuracy of quality assessment. Taking into account the spatial distribution characteristics of stem cells, the initial quality assessment results are optimized through connectivity analysis and morphological constraints. At the same time, classification, regression and feature consistency losses are considered, so that the model can learn multiple aspects of stem cell quality more comprehensively, improving the comprehensiveness of the evaluation results. This method improves the accuracy of stem cell quality evaluation.
[0163] above Figure 2 The stem cell quality evaluation system in the embodiment of the present invention is described in detail from the perspective of modular functional entities. The stem cell quality evaluation device in the embodiment of the present invention is described in detail from the perspective of hardware processing.
[0164] Figure 33 is a schematic diagram of the structure of a stem cell quality evaluation device provided by an embodiment of the present invention. The stem cell quality evaluation device 300 may have relatively large differences due to different configurations or performances, and may include one or more processors (central processing units, CPU) 310 (for example, one or more processors) and a memory 320, and one or more storage media 330 (for example, one or more mass storage device terminals) storing application programs 333 or data 332. Among them, the memory 320 and the storage medium 330 may be temporary storage or permanent storage. The program stored in the storage medium 330 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the stem cell quality evaluation device 300. Furthermore, the processor 310 may be configured to communicate with the storage medium 330, and execute a series of instruction operations in the storage medium 330 on the stem cell quality evaluation device 300 to implement the steps of the above-mentioned stem cell quality evaluation method.
[0165] The stem cell quality evaluation device 300 may also include one or more power supplies 340, one or more wired or wireless network interfaces 350, one or more input and output interfaces 360, and / or one or more operating systems 331, such as Windows Serve, Mac OS X, Unix, Linux, FreeBSD, etc. It will be appreciated by those skilled in the art that Figure 3 The structure of the stem cell quality evaluation device shown does not constitute a limitation on the stem cell quality evaluation device provided by the present invention, and may include more or fewer components than shown in the figure, or a combination of certain components, or a different arrangement of components.
[0166] The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. The computer-readable storage medium stores instructions, and when the instructions are executed on a computer, the computer executes the steps of the stem cell quality evaluation method.
[0167] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described systems, systems and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0168] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or the whole or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.
[0169] As described above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for evaluating stem cell quality, characterized in that: The method comprises: The method comprises: collecting a stem cell morphology image, and performing bilateral filtering on the stem cell morphology image to obtain a preprocessed image; specifically comprising: performing high-resolution microscopic imaging on a stem cell sample to obtain a stem cell morphology image, and performing grayscale processing on the stem cell morphology image to obtain a grayscale morphology image; calculating an adaptive weight factor according to the local variance and gradient information of the grayscale morphology image; processing the grayscale morphology image through a 5×5 sliding window, calculating the window center pixel value and the spatial distance function, and calculating the range distance function according to the window center pixel value; performing weighted processing on the spatial distance function and the range distance function based on a Gaussian function to obtain a weighted spatial distance function and a weighted range distance function; constructing a bilateral filtering function according to the adaptive weight factor, the weighted spatial distance function and the weighted range distance function; performing image filtering on the grayscale morphology image through the bilateral filtering function to obtain a preliminary filtering result; performing edge preservation processing on the preliminary filtering result to obtain an edge-enhanced filtered image, and performing contrast adjustment on the edge-enhanced filtered image to obtain a preprocessed image; The preprocessed image is threshold segmented by a multi-level Otsu algorithm and a local adaptive factor to obtain a threshold segmented image; specifically comprising: performing a histogram analysis on the preprocessed image to obtain grayscale distribution information, and determining the number of peaks N based on the grayscale distribution information and a peak detection algorithm; dividing the grayscale range of the preprocessed image into N+1 regions to obtain an initial region division result, and calculating the pixel ratio and the average grayscale value for each region in the initial region division result; calculating the average grayscale value of the preprocessed image based on the pixel ratio and the average grayscale value; constructing an objective function based on the principle of maximizing inter-class variance, and optimizing the objective function using a dynamic programming method to obtain N global optimal thresholds; calculating a local adaptive factor based on the local variance and entropy information of the preprocessed image, and locally adjusting the N global optimal thresholds to obtain an adaptive threshold; performing multi-level segmentation on the preprocessed image based on the adaptive threshold to obtain a threshold segmented image; Performing multi-directional Sobel operator and gradient covariance matrix analysis on the threshold segmentation image to obtain multi-dimensional morphological features; specifically comprising: constructing a 3×3 Sobel operator in four directions for the threshold segmentation image, and performing convolution operations on the threshold segmentation image and the Sobel operator in four directions respectively to obtain gradient maps in four directions; calculating the gradient amplitude of each pixel point according to the gradient maps in four directions, and calculating the gradient direction of each pixel point according to the gradient maps in four directions; constructing a gradient covariance matrix based on the gradient maps in four directions, and performing eigenvalue decomposition on the gradient covariance matrix to obtain eigenvalues and corresponding eigenvectors; calculating anisotropy index according to the eigenvalues, and determining the main direction of stem cell morphology based on the eigenvectors; calculating a local direction consistency index according to the gradient amplitude and the gradient direction; combining the gradient amplitude, the gradient direction, the anisotropy index, the main direction and the local direction consistency index to obtain multi-dimensional morphological features; The multi-dimensional morphological features are subjected to multi-scale non-maximum suppression and morphological feature description to obtain a target feature point set; specifically, the method comprises: calculating the adaptive line segment length S according to the gradient amplitude in the multi-dimensional morphological features, and taking a vertical line segment of length S in the gradient direction for each pixel point, performing linear interpolation, and obtaining a gradient value sequence on the line segment; judging the local maximum value of the pixel point according to the gradient value sequence, and suppressing the corresponding pixel point if it is not a local maximum value to obtain a preliminary non-maximum suppression result; constructing a scale space, selecting multiple scales in the scale space, and repeatedly performing non-maximum suppression for each scale. Suppression process, obtain multi-scale non-maximum suppression results; perform inter-scale consistency check on the multi-scale non-maximum suppression results, retain points that are non-maximum at multiple scales, obtain a stable feature point set, and calculate the local curvature for each point in the stable feature point set; extract local image blocks with each point in the stable feature point set as the center, calculate the texture complexity, and calculate the shape factor of the area where each point in the stable feature point set is located; combine the gradient amplitude, the gradient direction, the local curvature, the texture complexity and the shape factor to form a feature descriptor, and obtain a target feature point set; The multi-dimensional morphological features and the target feature point set are input into a multi-branch deep neural network to evaluate the quality of stem cells, and an initial quality evaluation result is obtained; specifically, the method includes: performing spatial pyramid pooling on the multi-dimensional morphological features to obtain a multi-scale feature map, and inputting the multi-scale feature map into a convolutional neural network branch, and processing the multi-layer convolution, batch normalization and ReLU activation function to obtain a convolutional feature map; applying residual connection to the convolutional feature map, constructing residual blocks, and obtaining enhanced convolutional features, and inputting the target feature point set into a multi-layer perceptron network branch, and processing the multi-layer perceptron network through a fully connected layer and a nonlinear activation function to obtain a point feature vector; applying a spatial attention mechanism to the enhanced convolutional features, calculating an attention weight matrix, and obtaining a spatial weighted feature, and applying a channel attention mechanism to the spatial weighted feature. The method comprises the following steps: a) performing feature fusion on the channel weighted feature and the point feature vector to obtain a multimodal fusion feature; b) applying an adaptive weighted network to the multimodal fusion feature to learn feature weight coefficients to obtain dynamic weighted features, and inputting the dynamic weighted features into a fully connected layer to obtain a stem cell quality score and a classification probability; c) calculating a multitask loss function L=λ1*Lclass+λ2*Lregression+λ3*Lfeature according to the stem cell quality score and the classification probability, wherein L is a multitask loss, Lclass is a classification loss, Lregression is a regression loss, Lfeature is a feature consistency loss, and λ1, λ2, and λ3 are balance coefficients to obtain an initial quality evaluation result; Based on the Markov random field model, the initial quality evaluation results are subjected to connectivity analysis and hierarchical clustering to obtain target quality evaluation results; specifically, the method comprises: constructing a cell connectivity graph G according to the spatial position information of stem cells in the initial quality evaluation results, and calculating the edge weights for each pair of adjacent nodes in the cell connectivity graph G; converting the cell connectivity graph G into a Markov random field, defining an energy function, and initializing a unit potential function according to the initial quality evaluation results; designing a pairwise potential function based on cell morphological features, and applying a belief propagation algorithm to the Markov random field to iteratively calculate messages; designing morphological constraints, and integrating the morphological constraints into the unit potential function to obtain an updated potential function; based on the updated potential function, re-executing the belief propagation algorithm to obtain an optimized quality label assignment, and using an adaptive distance metric to perform a hierarchical clustering analysis on the optimized quality label assignment to obtain a hierarchical clustering result; generating a target quality evaluation result according to the hierarchical clustering result, the target quality evaluation result includes overall quality distribution statistics, a spatial distribution map of high-quality cell populations, an analysis of the correlation between key morphological features and quality, and abnormal cell markers.
2. A stem cell quality evaluation system, characterized in that: For executing the stem cell quality assessment method according to claim 1, the system comprises: An acquisition module is used to acquire stem cell morphology images and perform bilateral filtering on the stem cell morphology images to obtain preprocessed images; A segmentation module, used for performing threshold segmentation on the preprocessed image by using a multi-level Otsu algorithm and a local adaptive factor to obtain a threshold segmented image; An analysis module is used to perform multi-directional Sobel operator and gradient covariance matrix analysis on the threshold segmented image to obtain multi-dimensional morphological features; A processing module, used for performing multi-scale non-maximum suppression and morphological feature description on the multi-dimensional morphological features to obtain a target feature point set; An evaluation module, used for inputting the multi-dimensional morphological features and the target feature point set into a multi-branch deep neural network to evaluate the quality of stem cells and obtain an initial quality evaluation result; The clustering module is used to perform connectivity analysis and hierarchical clustering on the initial quality evaluation results based on a Markov random field model to obtain target quality evaluation results.
3. A stem cell quality evaluation device, characterized in that: The stem cell quality evaluation device comprises: a memory and at least one processor, wherein instructions are stored in the memory; The at least one processor calls the instructions in the memory to enable the stem cell quality assessment device to perform the stem cell quality assessment method according to claim 1.
4. A computer-readable storage medium having instructions stored thereon, characterized in that: When the instructions are executed by a processor, the stem cell quality evaluation method according to claim 1 is implemented.
Citation Information
Patent Citations
Embryo quality assessment based on blastomere division and movement
CN103757087A
Detecting mutations and ploidy in chromosomal segments
CN106460070A
Cited By
Stem cell quality evaluation method and system based on image recognition
CN119624960A
A stem cell quality evaluation method and system based on image recognition
CN119624960B
