Batch effect analysis method and system based on medical image

By constructing a batch effect explorer network for batch effect evaluation, the instability problem caused by batch effect in medical image analysis is solved, and the stability of the model and diagnostic accuracy are improved.

CN119541779AActive Publication Date: 2025-02-28GUANGDONG GENERAL HOSPITAL
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411756140.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-03
Publication Date
2025-02-28
Estimated Expiration
2044-12-03

AI Technical Summary

Technical Problem

Batch effects lead to instability and universality of models in medical image analysis, especially in multicenter studies, which affect the accuracy of cancer diagnosis.

Method used

Using a batch effect analysis method based on medical images, a batch effect explorer network is constructed, including a preprocessor module, a feature extractor module and an analyzer module, batch effect evaluation and visualization are performed to reduce the batch effect in the data.

Benefits of technology

Improves batch effect stability in medical image analysis, making the model more robust and versatile among different data sources, and improves the accuracy of cancer diagnosis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119541779A_ABST
    Figure CN119541779A_ABST
Patent Text Reader

Abstract

The invention discloses a batch effect analysis method and system based on a medical image. The method comprises the following steps: acquiring medical image data; a preprocessor module, a feature extractor module and an analyzer module are introduced, and a batch effect explorer network is constructed; and performing batch effect evaluation and visualization processing on the medical image data based on the batch effect explorer network to obtain a batch effect analysis result of the medical image. According to the invention, the stability of the batch effect on medical image analysis is improved by reducing the batch effect in the data. The batch effect analysis method and system based on the medical image can be widely applied to the technical field of medical image analysis.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of medical image analysis, and in particular to a batch effect analysis method and system based on medical images. Background Art

[0002] Batch effect is a non-biological variation that arises from technical differences between different batches of data during the data generation process, such as images from different centers or acquired by different scanners. This phenomenon can adversely affect the robustness and generalizability of cancer diagnosis models based on computational pathology or radiology, especially in multicenter studies. Digital pathology involves differences in the scanners used, the image preprocessing methods adopted, operator handling, and the way slides are prepared. Radiology involves variations in scanners, protocols, acquisition parameters, and image preprocessing methods. Batch effects pose a huge obstacle in the application of machine learning. When algorithms are trained on one center, they may perform poorly when applied to another center and lack robustness or generalizability. Summary of the invention

[0003] In order to solve the above technical problems, the purpose of the present invention is to provide a batch effect analysis method and system based on medical images, which can reduce the batch effect in the data and thus improve the stability of the batch effect in medical image analysis.

[0004] The first technical solution adopted by the present invention is: a batch effect analysis method based on medical images, comprising the following steps:

[0005] Acquiring medical image data;

[0006] Introduce the preprocessor module, feature extractor module and analyzer module to build a batch effect explorer network;

[0007] Based on the batch effect explorer network, batch effect evaluation and visualization of medical image data are performed to obtain batch effect analysis results of medical images.

[0008] Furthermore, the step of performing batch effect evaluation and visualization processing on the medical image data based on the batch effect explorer network to obtain batch effect analysis results of the medical images specifically includes:

[0009] Input medical image data into the batch effect explorer network;

[0010] A preprocessor module based on a batch effect explorer network performs image preprocessing on the medical image data to obtain preprocessed medical image data;

[0011] The feature extractor module based on the batch effect explorer network performs image feature extraction on the preprocessed medical image data to obtain a medical image feature matrix;

[0012] Based on the analyzer module of the batch effect explorer network, batch effect evaluation and visualization processing are performed on the feature matrix of medical images to obtain the batch effect analysis results of medical images.

[0013] Furthermore, the preprocessor module based on the batch effect explorer network performs image preprocessing on the medical image data to obtain the preprocessed medical image data, which specifically includes:

[0014] Inputting medical image data into a preprocessor module based on a batch effect explorer network;

[0015] Performing format conversion processing on the medical image data to obtain medical image data with preset format requirements;

[0016] Pre-segmentation processing is performed on medical image data with preset format requirements to obtain region of interest masks and clinical data;

[0017] The region of interest mask and clinical data are integrated to obtain preprocessed medical image data.

[0018] Furthermore, the analyzer module based on the batch effect explorer network performs batch effect evaluation and visualization processing on the medical image feature matrix to obtain the batch effect analysis result of the medical image, which specifically includes:

[0019] Inputting the medical image feature matrix into an analyzer module based on a batch effect explorer network;

[0020] The image overview module based on the analyzer module performs image size adjustment, permutation and combination, and visual difference feature extraction on the medical image feature matrix to obtain the first batch effect evaluation results;

[0021] The distribution analysis module with violin plot based on the analyzer module performs Wilcoxon rank sum test on the medical image feature matrix to obtain the second batch effect evaluation results;

[0022] Based on the uniform manifold approximation and projection module of the analyzer module, the feature matrix of the medical image is projected and dimensionally reduced to obtain the third batch effect evaluation result;

[0023] Based on the hierarchical clustering module of the analyzer module, the medical image feature matrix is ​​subjected to hierarchical clustering processing to obtain the fourth batch of effect evaluation results;

[0024] Based on the principal variation component analysis module of the analyzer module, principal component analysis and variance component analysis are performed on the medical image feature matrix to obtain the fifth batch effect evaluation results;

[0025] Based on the batch effect scoring module of the analyzer module, the medical image feature matrix is ​​subjected to multiple clustering stability evaluation processes to obtain the sixth batch effect evaluation result;

[0026] The first batch effect assessment results, the second batch effect assessment results, the third batch effect assessment results, the fourth batch effect assessment results, the fifth batch effect assessment results and the sixth batch effect assessment results are integrated to obtain the batch effect analysis results of medical images.

[0027] Furthermore, the uniform manifold approximation and projection module based on the analyzer module performs projection dimension reduction processing on the medical image feature matrix to obtain the third batch effect evaluation result, which specifically includes:

[0028] Inputting the medical image feature matrix into the uniform manifold approximation and projection module based on the analyzer module;

[0029] Based on the uniform manifold approximation and projection module, the number of neighbors, the minimum distance and the number of components are initialized, and the initialized uniform manifold approximation and projection module is constructed;

[0030] Based on the initialized uniform manifold approximation and projection module, the medical image feature matrix is ​​fitted to obtain a low-dimensional embedded medical image feature matrix;

[0031] The corresponding scatter plot is obtained according to the low-dimensional embedded medical image feature matrix and plotted on a two-dimensional plane for visualization, and the third batch effect evaluation results are obtained.

[0032] Furthermore, the hierarchical clustering module based on the analyzer module performs hierarchical clustering processing on the medical image feature matrix to obtain the fourth batch effect evaluation result, which specifically includes:

[0033] Inputting the medical image feature matrix into a hierarchical clustering module based on an analyzer module;

[0034] Based on the hierarchical clustering module, initialize the connection method parameters and distance measurement parameters;

[0035] The medical image feature matrix is ​​calculated by distance measurement parameters to construct several independent clusters with pairwise distance matrices;

[0036] Through the connection method parameters, two independent clusters with pairwise distance matrices corresponding to the minimum distance between them are searched and merged to obtain a new cluster;

[0037] The connection method parameters are cyclically searched for two independent clusters with pairwise distance matrices corresponding to the minimum distance between them and merged until all independent clusters are traversed to obtain the fourth batch effect evaluation results.

[0038] Further, the principal variation component analysis module based on the analyzer module performs principal component analysis and variance component analysis on the medical image feature matrix to obtain the fifth batch effect evaluation result, which specifically includes:

[0039] Inputting the medical image feature matrix into the principal variation component analysis module based on the analyzer module;

[0040] Initializing a batch information vector and a clinical information matrix based on a principal variation component analysis module, wherein the clinical information matrix represents clinical data;

[0041] Performing standardization processing on the medical image feature matrix to obtain a standardized medical image feature matrix;

[0042] Perform principal component analysis on the standardized medical image feature matrix to obtain several principal component data;

[0043] Integrate several principal component data to obtain the principal component matrix;

[0044] Integrate the batch information vector with the clinical information matrix to construct a design matrix;

[0045] The principal component matrix was fitted as random factors, and the variance components of the design matrix were estimated to obtain the fifth batch effect evaluation results.

[0046] Furthermore, the batch effect scoring module based on the analyzer module performs multiple clustering stability evaluation processes on the medical image feature matrix to obtain a sixth batch effect evaluation result, which specifically includes:

[0047] Inputting the medical image feature matrix into a batch effect scoring module based on the analyzer module;

[0048] Based on the batch effect scoring module, the number of resampling iterations is defined, and the medical image feature matrix is ​​clustered multiple times to obtain a consensus matrix;

[0049] Normalize the consensus matrix to obtain a normalized consensus matrix;

[0050] According to the element group relationship in the normalized consensus matrix, a group matrix is ​​constructed;

[0051] The area under the curve of the normalized consensus matrix and the group matrix was calculated to obtain the sixth batch effect evaluation results.

[0052] Furthermore, the calculation expression of the area under the curve of the normalized consensus matrix and the group matrix is ​​specifically as follows:

[0053] S={(i,j)|1≤i <j≤N}

[0054]

[0055] C={C(i,j)|(i,j)∈S}

[0056]

[0057] In the above formula, N represents the number of samples, i and j represent the item elements in the matrix, and S represents the subset that avoids duplication of (i, j) and (j, i). represents the normalized consensus matrix, C(·) represents the group matrix, AUC(·) represents the area under the curve, BES represents the stability index of consensus clustering, represents the consensus matrix divided by the number of times a resampled dataset is selected at the same time, and C' represents the group matrix divided by the number of times a resampled dataset is selected at the same time.

[0058] The second technical solution adopted by the present invention is: a batch effect analysis system based on medical images, comprising:

[0059] The first module is used to obtain medical image data;

[0060] The second module is used to introduce the preprocessor module, feature extractor module and analyzer module to build a batch effect explorer network;

[0061] The third module is used to evaluate and visualize the batch effects of medical image data based on the batch effect explorer network to obtain the batch effect analysis results of medical images.

[0062] The beneficial effects of the method and system of the present invention are as follows: the present invention constructs a batch effect explorer network by introducing a preprocessor module, a feature extractor module and an analyzer module, and performs batch effect evaluation and visualization on medical image data, so that users can determine whether there are any image variables or variable combinations that can unsupervisedly distinguish data sets from different sites, thereby reducing the batch effects in the data and thus improving the stability of the batch effects in medical image analysis. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] Figure 1 It is a flow chart of the steps of a batch effect analysis method based on medical images of the present invention;

[0064] Figure 2It is a structural block diagram of a batch effect analysis system based on medical images of the present invention;

[0065] Figure 3 is a schematic diagram showing the results of an image overview provided by a specific embodiment of the present invention;

[0066] Figure 4 is a schematic diagram of distribution analysis results with a violin plot provided in a specific embodiment of the present invention;

[0067] Figure 5 It is a schematic diagram of uniform manifold approximation and projection results provided by a specific embodiment of the present invention;

[0068] Figure 6 It is a schematic diagram of hierarchical clustering results provided by a specific embodiment of the present invention;

[0069] Figure 7 It is a schematic diagram of the main variation component analysis results provided by a specific embodiment of the present invention. DETAILED DESCRIPTION

[0070] The present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. The step numbers in the following embodiments are only provided for the convenience of explanation and description, and the order between the steps is not limited in any way. The execution order of each step in the embodiment can be adaptively adjusted according to the understanding of those skilled in the art.

[0071] The present invention develops a batch effect explorer (BEEx) to qualitatively and quantitatively assess whether there are batch effects between medical image datasets from different centers. BEEx combines a set of tools based on intensity, gradient, and texture features to provide visualization and quantitative indicators that enable users to determine whether there are any image variables or combinations of variables that can unsupervisedly distinguish datasets from different sites. BEEx supports a variety of medical imaging techniques, including microscopy and radiology. The results of the present embodiment clearly show the presence of batch effects in these cases. In addition, BEEx can identify and verify the reduction of batch effects in data processed using correction methods.

[0072] Reference Figure 1 The present invention provides a batch effect analysis method based on medical images, the method comprising the following steps:

[0073] S100, acquiring medical image data;

[0074] S200, introduce the preprocessor module, feature extractor module and analyzer module to build a batch effect explorer network;

[0075] In this embodiment, the batch effect explorer network constructed by the present invention includes three interrelated modules: Preprocessor: This module is responsible for loading and preprocessing images, segmentation masks and clinical data, and preparing them for subsequent analysis. Feature Extractor: This module focuses on extracting features based on image intensity, gradient and texture from images for downstream analysis. Analyzer: This module provides batch effect evaluation and visualization. It also includes a set of tools for various analyses, including image overview, distribution analysis with violin plots, uniform manifold approximation and projection (Uniform Manifold Approximation and Projection, UMAP), hierarchical clustering, principal variation component analysis (Principal Variation Component Analysis, PVCA) and the proposed batch effect score (Batch Effect Score, BES).

[0076] S300, based on the batch effect explorer network, batch effect evaluation and visualization processing are performed on medical image data to obtain batch effect analysis results of medical images.

[0077] Specifically, medical image data are input into a batch effect explorer network.

[0078] S310, performing image preprocessing on the medical image data by a preprocessor module based on a batch effect explorer network to obtain preprocessed medical image data;

[0079] Specifically, the medical image data are input into a preprocessor module based on a batch effect explorer network; the medical image data are format converted to obtain medical image data with preset format requirements; the medical image data with preset format requirements are pre-segmented to obtain region of interest masks and clinical data; the region of interest masks and clinical data are integrated to obtain preprocessed medical image data.

[0080] In this embodiment, the preprocessor helps prepare and process data for the feature extractor and analyzer. BEEx supports multiple medical image types and formats, such as NIfTI (.nii.gz), DICOM (.dcm), Portable Network Graphics (.png), and OpenSlide (.svs). In addition, BEEx provides helper scripts to help users convert DICOM files to NIfTI format. Pre-segmented region of interest (ROI) masks and clinical data are optional during preprocessing. If an ROI mask is specified, BEEx will only analyze batch effects within the region of interest indicated by the ROI mask. If available, clinical data will be used to perform PVCA.

[0081] S320, a feature extractor module based on a batch effect explorer network performs image feature extraction processing on the preprocessed medical image data to obtain a medical image feature matrix;

[0082] In this embodiment, in the feature extraction module, BEEx extracts various intensity-, gradient-, and texture-based features from the processed images. For digital pathology images, BEEx extracts (n=36) features, including color histogram, brightness, and contrast. For radiological images, BEEx extracts up to (n=27) features, including signal-to-noise ratio, foreground intensity mean, and entropy focus criteria.

[0083] S330, an analyzer module based on a batch effect explorer network, performs batch effect evaluation and visualization on a medical image feature matrix, and obtains batch effect analysis results of the medical image.

[0084] Specifically, the medical image feature matrix is ​​input into the analyzer module based on the batch effect explorer network. BEEx uses six analyzers to visualize and evaluate batch effects from different perspectives: image overview, distribution analysis using violin plots, distribution analysis using UMAP, hierarchical clustering, PVCA, and batch effect scoring.

[0085] S331, an image overview module based on the analyzer module performs image size adjustment, permutation and combination, and visual difference feature extraction processing on the medical image feature matrix to obtain the first batch effect evaluation result;

[0086] In this embodiment, the image overview directly examines batch effects through visual appearance. It resizes the original images and arranges them into one image map. In this way, the visual differences and features (such as color, style, and shape) of images from different groups become more obvious and easier to examine.

[0087] S332, based on the distribution analysis module with violin plot of the analyzer module, performing Wilcoxon rank sum test on the medical image feature matrix to obtain the second batch effect evaluation result;

[0088] In this embodiment, the distribution analysis with violin plots illustrates the distribution of image features calculated by the feature extractor for different groups. The analyzer reveals the pre-analysis variance of different groups. In addition, in order to determine which or which types of features lead to batch effects, the distribution analysis with violin plots performs a Wilcoxon rank sum test on the image features extracted from different groups in a pairwise manner. The Wilcoxon rank sum test is a nonparametric statistical hypothesis test used to compare independent samples and assess whether their distributions are significantly different. If the feature values ​​of one group are significantly different from those of other groups (p<0.05), the group is highlighted in red in the violin plot. Therefore, users can evaluate the extent of batch effects not only at the overall level, but also at the group level. In addition, tracking features associated with batch effects can help users better understand the degree of variability in their data and inspire them to mitigate the batch effects they encounter.

[0089] S333, based on the uniform manifold approximation and projection module of the analyzer module, perform projection dimensionality reduction processing on the medical image feature matrix to obtain the third batch effect evaluation result;

[0090] Specifically, the medical image feature matrix is ​​input into the uniform manifold approximation and projection module based on the analyzer module; based on the uniform manifold approximation and projection module, the number of neighbors, the minimum distance and the number of components are initialized, and the initialized uniform manifold approximation and projection module is constructed; based on the initialized uniform manifold approximation and projection module, the medical image feature matrix is ​​fitted to obtain a low-dimensional embedded medical image feature matrix; according to the low-dimensional embedded medical image feature matrix, the corresponding scatter plot is obtained and plotted on a two-dimensional plane for visualization, to obtain the third batch effect evaluation result.

[0091] In this example, distribution analysis using UMAP is a dimensionality reduction technique used to project image features from different groups into a two-dimensional space. By reducing the dimensionality of the data, we can more easily visualize complex patterns and structures and examine site-specific clusters. If there is a batch effect, distinguishable clusters will appear in the plot.

[0092] The specific algorithm flow of UMAP is as follows:

[0093] Input: feature matrix X∈R (m×n) , where m is the number of samples, n is the number of features, the number of neighbors k, the minimum distance δ, the number of components d (default is 2), and any other UMAP parameters.

[0094] 1) Initialize UMAP, set the number of neighbors k, the minimum distance δ and the number of components d;

[0095] 2) Obtain a low-dimensional embedding Z∈R by fitting UMAP on the feature matrix X (m×d) ;

[0096] 3) Create a scatter plot of the low-dimensional embedding Z and plot Z on a two-dimensional plane;

[0097] 4) Customize charts (e.g., add titles, labels, and legends);

[0098] Output: UMAP plot visualizing the low-dimensional representation of the feature matrix X.

[0099] S334, performing hierarchical clustering processing on the medical image feature matrix based on the hierarchical clustering module of the analyzer module to obtain a fourth batch of effect evaluation results;

[0100] Specifically, the medical image feature matrix is ​​input into the hierarchical clustering module based on the analyzer module; based on the hierarchical clustering module, the connection method parameters and the distance measurement parameters are initialized; the medical image feature matrix is ​​calculated through the distance measurement parameters to construct several independent clusters with pairwise distance matrices; two independent clusters with pairwise distance matrices corresponding to the minimum distance between them are searched through the connection method parameters and merged to obtain a new cluster; the connection method parameters are cyclically searched for two independent clusters with pairwise distance matrices corresponding to the minimum distance between them and merged until all independent clusters are traversed to obtain the fourth batch effect evaluation results.

[0101] In this example, hierarchical clustering creates a hierarchy of clusters and uses a heat map (also called a cluster map) to visualize the results. Hierarchical clustering is a cluster analysis method that builds a hierarchy of clusters. The resulting clusters are then visualized using a heat map with a color gradient to represent the numerical values ​​of the data, which allows us to visualize the relationships, similarities, and differences between different data samples. If there is a batch effect, the samples in the analyzer map are grouped primarily according to their cohort.

[0102] The specific algorithm flow of hierarchical clustering is as follows:

[0103] Input: feature matrix X∈R (m×n) , where m is the number of samples, n is the number of features, the connection method L (e.g., 'single', 'complete', 'average'), and the distance metric D (e.g., 'euclidean', 'manhattan').

[0104] 1) Calculate the pairwise distance matrix D using the distance metric D;

[0105] 2) Initialize each sample as an independent cluster;

[0106] 3) Repetition;

[0107] 4) Find a pair of clusters with the smallest distance according to the connection method L (C i ,C j );

[0108] 5) Merge cluster C i and C j Forming a new cluster C ij ;

[0109] 6) Update the distance matrix D to reflect the new cluster C ij The distance to all other clusters;

[0110] 7) Until all samples are merged into one cluster or the stopping condition is reached;

[0111] Output: Hierarchical clustering heatmap visualizing the feature matrix.

[0112] S335, based on the principal variation component analysis module of the analyzer module, performing principal component analysis and variance component analysis on the medical image feature matrix to obtain the fifth batch effect evaluation result;

[0113] Specifically, the medical image feature matrix is ​​input into the principal variation component analysis module based on the analyzer module; based on the principal variation component analysis module, the batch information vector and the clinical information matrix are initialized, and the clinical information matrix represents the clinical data; the medical image feature matrix is ​​standardized to obtain a standardized medical image feature matrix; the principal component analysis is performed on the standardized medical image feature matrix to obtain a number of principal component data; the several principal component data are integrated to obtain a principal component matrix; the batch information vector and the clinical information matrix are integrated to construct a design matrix; the principal component matrix is ​​fitted as a random factor, and the variance component of the design matrix is ​​estimated to obtain the fifth batch effect evaluation result.

[0114] In this example, principal variance components analysis (PVCA) combines principal component analysis (PCA) and variance components analysis (VCA) to partition the variance of the data into its main components. This can be used to identify and quantify the main sources of variation in the data. If there is a batch effect, the batch variance in the plot is one of the main contributors to the overall variation.

[0115] The algorithm flow of principal variance component analysis is as follows:

[0116] Input: feature matrix X∈R (m×n) , where m is the number of samples, n is the number of features, and the batch information vector b∈R m , clinical information matrix C∈R (m×p) , where p is the number of clinical variables.

[0117] 1) Standardize the feature matrix X so that each feature has zero mean and unit variance;

[0118] 2) Perform principal component analysis (PCA) on X;

[0119] 3) Select the first k principal components that capture most of the variance (e.g., k equals 5);

[0120] 4) Form the matrix Z of the first k principal components, with dimension m×k;

[0121] 5) Combine batch information b and clinical information C into a design matrix D∈R (m×(1+p)) ;

[0122] 6) For each principal component z i (column vector of Z), D is fitted as a random factor in the univariate mixed model, and its expression is z i =D γ +∈ i , where γ is the random effect coefficient vector, ∈ i is the residual;

[0123] 7) Estimate each principal component z i The variance components of the random factors, i.e., the variances of batch, clinical variables, and residuals;

[0124] 8) Average the proportion of variance explained by all k principal components to obtain the proportion of overall variance explained by batch, clinical variables, and residuals.

[0125] Output: batch, clinical variables, and proportion of overall variance explained by residuals.

[0126] S336, based on the batch effect scoring module of the analyzer module, performing multiple clustering stability evaluation processes on the medical image feature matrix to obtain a sixth batch effect evaluation result;

[0127] Specifically, the medical image feature matrix is ​​input into the batch effect scoring module based on the analyzer module; based on the batch effect scoring module, the number of resampling iterations is defined, and the medical image feature matrix is ​​clustered multiple times to obtain a consensus matrix; the consensus matrix is ​​normalized to obtain a normalized consensus matrix; according to the element group relationship in the normalized consensus matrix, a group matrix is ​​constructed; the area under the curve of the normalized consensus matrix and the group matrix is ​​calculated to obtain the sixth batch effect evaluation result.

[0128] In this example, the batch effect score BES is an overall indicator of the degree of batch effect. BES measures the batch effect by evaluating the stability of sample clustering in a cohort based on consensus clustering. We assume that if the degree of batch effect of a cohort is high, the samples in the cohort will be stably clustered together in multiple clustering runs. More specifically, given the number of resampling iterations H, the sampled dataset can be defined as D = {D1 , D 2 , …, D H} According to a predefined ratio, such as 80%. In each resampling iteration h ∈ {1, 2, …, H}, let M (h) represent the consensus matrix of the (N × N) dataset D (h) . The number of all samples is N, and the clustering result of the sample pair can be defined as the element of the following matrix, and its expression is:

[0129]

[0130] Let I (h) be the (N × N) indicator matrix, where I (h) (i, j) is 1 when items i and j exist in the dataset D (h) simultaneously, and 0 otherwise. The consensus matrix can be defined as the normalization of the concatenated matrix of all resampled datasets, and its expression is:

[0131]

[0132] That is to say, the consensus matrix records the number of times that items i and j are assigned to the same cluster, divided by the number of times they are simultaneously selected in the same resampled dataset. Therefore, the consensus matrix measures the stability and robustness of the sample pairs clustering together.

[0133] Let C(i, j) represent whether items i and j belong to the same group, and it is defined as follows:

[0134]

[0135] Here, we define the batch effect score BES as the area under the curve AUC of the consensus matrix M and the group matrix C, where i < j, and obtain the subset S that avoids the repetition of (i, j) and (j, i), and its expression is:

[0136] S = {(i, j)|1 ≤ i < j ≤ N}

[0137]

[0138] C = {C(i, j)|(i, j) ∈ S}

[0139]

[0140] In the above formula, N represents the number of samples, i and j represent the item elements in the matrix, S represents the subset that avoids the repetition of (i, j) and (j, i), represents the normalized consensus matrix, C(·) represents the group matrix, AUC(·) represents the area under the curve, BES represents the stability index for measuring consensus clustering, represents the consensus matrix divided by the number of times a resampled dataset is selected at the same time, and C' represents the group matrix divided by the number of times a resampled dataset is selected at the same time.

[0141] BES reflects the strength of the batch effect by measuring the stability of the consensus clustering. When the BES value is close to 1, the samples are easily and stably clustered by cohort, indicating that the degree of batch effect between cohorts is high. On the contrary, if the BES value is close to 0.5, the samples are randomly clustered, indicating that the degree of batch effect between cohorts is low. Please note that BES can be used not only for all cohorts in the dataset, but also at the cohort level within a multi-center dataset.

[0142] S337. Integrate the first batch effect assessment results, the second batch effect assessment results, the third batch effect assessment results, the fourth batch effect assessment results, the fifth batch effect assessment results and the sixth batch effect assessment results to obtain batch effect analysis results of the medical images.

[0143] Finally, the analysis method proposed in the embodiment of the present invention was further simulated and simulated. BEEx showed a high degree of batch effect in a multicenter HCC dataset based on WSI. Further, the embodiment of the present invention examined a dataset containing four HCC whole slide image cohorts: GDPH, TCGA, FAHKU, and FAHZU. Obvious batch effects were observed in the four cohorts of the dataset. However, BEEx did not find any significant batch effects between GDPH and FAHKU.

[0144] Specifically, there were significant differences in the hematoxylin and eosin (H&E) staining patterns and intensities between the cohorts. More specifically, the staining patterns of TCGA and FAHZU were significantly different from those of GDPH and FAHKU, while there were no significant differences in staining between GDPH and FAHKU. Similarly, FAHZU and TCGA each had distinct clusters, while GDPH and FAHKU overlapped into one cluster, as shown in Figure 2. Figure 3 and Figure 4 As shown in Figure 2, there is a high degree of batch effect between FAHZU, TCGA, and the combination of GDPH and FAHKU, while the degree of batch effect between GDPH and FAHKU is low. Figure 5As shown in Figure 2, most of the features based on tissue, texture, and color can significantly distinguish all cohorts (p < 0.05), while some features cannot distinguish between cohorts (e.g., RGB 1 brightness mean) or can only significantly distinguish one or two cohorts (e.g., YUV 2 brightness mean and HSV 1 brightness standard deviation). According to the hierarchical clustering results, as Figure 6 As shown in Figure 2, samples from TCGA and FAHZU were mainly grouped according to their cohorts, while samples from GDPH and FAHKU were mixed together. Figure 7 As shown, batch is the main contributor to the overall variation (63.48%). In addition, the overall BES of the WSI in the embodiment of the present invention is 0.8417. The inter-cohort BES values ​​of TCGAforGDPH, TCGAforFAHKU, TCGAforFAHZU, GDPH for FAHKU, GDPH for FAHZU and FAHKU forFAHZU are 0.9956, 0.9673, 0.9055, 0.5523, 0.9939 and 0.8839, respectively.

[0145] Reference Figure 2 , a batch effect analysis system based on medical images, comprising:

[0146] The first module 201 is used to obtain medical image data;

[0147] The second module 202 is used to introduce a preprocessor module, a feature extractor module and an analyzer module to construct a batch effect explorer network;

[0148] The third module 203 is used to perform batch effect evaluation and visualization processing on the medical image data based on the batch effect explorer network to obtain batch effect analysis results of the medical images.

[0149] The contents of the above method embodiments are all applicable to the present system embodiments. The functions specifically implemented by the present system embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0150] The above is a specific description of the preferred implementation of the present invention, but the invention is not limited to the embodiments. Those skilled in the art may make various equivalent modifications or substitutions without violating the spirit of the present invention. These equivalent modifications or substitutions are all included in the scope defined by the claims of this application.

Claims

1. A batch effect analysis method based on medical images, characterized in that: The following steps are involved: Acquiring medical image data; Introduce the preprocessor module, feature extractor module and analyzer module to build a batch effect explorer network; Based on the batch effect explorer network, batch effect evaluation and visualization of medical image data are performed to obtain batch effect analysis results of medical images.

2. The batch effect analysis method based on medical images according to claim 1, characterized in that: The step of performing batch effect evaluation and visualization processing on medical image data based on a batch effect explorer network to obtain batch effect analysis results of medical images specifically includes: Input medical image data into the batch effect explorer network; A preprocessor module based on a batch effect explorer network performs image preprocessing on the medical image data to obtain preprocessed medical image data; The feature extractor module based on the batch effect explorer network performs image feature extraction on the preprocessed medical image data to obtain a medical image feature matrix; Based on the analyzer module of the batch effect explorer network, batch effect evaluation and visualization processing are performed on the feature matrix of medical images to obtain the batch effect analysis results of medical images.

3. The batch effect analysis method based on medical images according to claim 2, characterized in that: The preprocessor module based on the batch effect explorer network performs image preprocessing on the medical image data to obtain the preprocessed medical image data, which specifically includes: Inputting medical image data into a preprocessor module based on a batch effect explorer network; Performing format conversion processing on the medical image data to obtain medical image data with preset format requirements; Pre-segmentation processing is performed on medical image data with preset format requirements to obtain region of interest masks and clinical data; The region of interest mask and clinical data are integrated to obtain preprocessed medical image data.

4. The batch effect analysis method based on medical images according to claim 3, characterized in that: The analyzer module based on the batch effect explorer network performs batch effect evaluation and visualization processing on the medical image feature matrix to obtain the batch effect analysis result of the medical image, which specifically includes: Inputting the medical image feature matrix into an analyzer module based on a batch effect explorer network; The image overview module based on the analyzer module performs image size adjustment, permutation and combination, and visual difference feature extraction on the medical image feature matrix to obtain the first batch effect evaluation results; The distribution analysis module with violin plot based on the analyzer module performs Wilcoxon rank sum test on the medical image feature matrix to obtain the second batch effect evaluation results; Based on the uniform manifold approximation and projection module of the analyzer module, the feature matrix of the medical image is projected and dimensionally reduced to obtain the third batch effect evaluation result; Based on the hierarchical clustering module of the analyzer module, the medical image feature matrix is ​​subjected to hierarchical clustering processing to obtain the fourth batch of effect evaluation results; Based on the principal variation component analysis module of the analyzer module, principal component analysis and variance component analysis are performed on the medical image feature matrix to obtain the fifth batch effect evaluation results; Based on the batch effect scoring module of the analyzer module, the medical image feature matrix is ​​subjected to multiple clustering stability evaluation processes to obtain the sixth batch effect evaluation result; The first batch effect assessment results, the second batch effect assessment results, the third batch effect assessment results, the fourth batch effect assessment results, the fifth batch effect assessment results and the sixth batch effect assessment results are integrated to obtain the batch effect analysis results of medical images.

5. The batch effect analysis method based on medical images according to claim 4, characterized in that: The step of performing projection dimensionality reduction processing on the medical image feature matrix based on the uniform manifold approximation and projection module of the analyzer module to obtain the third batch effect evaluation result specifically includes: Inputting the medical image feature matrix into the uniform manifold approximation and projection module based on the analyzer module; Based on the uniform manifold approximation and projection module, the number of neighbors, the minimum distance and the number of components are initialized, and the initialized uniform manifold approximation and projection module is constructed; Based on the initialized uniform manifold approximation and projection module, the medical image feature matrix is ​​fitted to obtain a low-dimensional embedded medical image feature matrix; The corresponding scatter plot is obtained according to the low-dimensional embedded medical image feature matrix and plotted on a two-dimensional plane for visualization, and the third batch effect evaluation results are obtained.

6. The batch effect analysis method based on medical images according to claim 5, characterized in that: The hierarchical clustering module based on the analyzer module performs hierarchical clustering processing on the medical image feature matrix to obtain the fourth batch effect evaluation results. The step specifically includes: Inputting the medical image feature matrix into a hierarchical clustering module based on an analyzer module; Based on the hierarchical clustering module, initialize the connection method parameters and distance measurement parameters; The medical image feature matrix is ​​calculated by distance measurement parameters to construct several independent clusters with pairwise distance matrices; Through the connection method parameters, two independent clusters with pairwise distance matrices corresponding to the minimum distance between them are searched and merged to obtain a new cluster; The connection method parameters are cyclically searched for two independent clusters with pairwise distance matrices corresponding to the minimum distance between them and merged until all independent clusters are traversed to obtain the fourth batch effect evaluation results.

7. The batch effect analysis method based on medical images according to claim 6, characterized in that: The principal variation component analysis module based on the analyzer module performs principal component analysis and variance component analysis on the medical image feature matrix to obtain the fifth batch effect evaluation result. This step specifically includes: Inputting the medical image feature matrix into the principal variation component analysis module based on the analyzer module; Initializing a batch information vector and a clinical information matrix based on a principal variation component analysis module, wherein the clinical information matrix represents clinical data; Performing standardization processing on the medical image feature matrix to obtain a standardized medical image feature matrix; Perform principal component analysis on the standardized medical image feature matrix to obtain several principal component data; Integrate several principal component data to obtain the principal component matrix; Integrate the batch information vector with the clinical information matrix to construct a design matrix; The principal component matrix was fitted as random factors, and the variance components of the design matrix were estimated to obtain the fifth batch effect evaluation results.

8. The batch effect analysis method based on medical images according to claim 7, characterized in that: The batch effect scoring module based on the analyzer module performs multiple clustering stability evaluation processes on the medical image feature matrix to obtain the sixth batch effect evaluation result. This step specifically includes: Inputting the medical image feature matrix into a batch effect scoring module based on the analyzer module; Based on the batch effect scoring module, the number of resampling iterations is defined, and the medical image feature matrix is ​​clustered multiple times to obtain a consensus matrix; Normalize the consensus matrix to obtain a normalized consensus matrix; According to the element group relationship in the normalized consensus matrix, a group matrix is ​​constructed; The area under the curve of the normalized consensus matrix and the group matrix was calculated to obtain the sixth batch effect evaluation results.

9. The batch effect analysis method based on medical images according to claim 8, characterized in that: The calculation expressions of the areas under the curves of the normalized consensus matrix and the group matrix are specifically as follows: S={(i,j)|1≤i <j≤N} C'={C(i,j)|(i,j)∈S} In the above formula, N represents the number of samples, i and j represent the item elements in the matrix, and S represents the subset that avoids duplication of (i, j) and (j, i). represents the normalized consensus matrix, C(·) represents the group matrix, AUC(·) represents the area under the curve, BES represents the stability index of consensus clustering, represents the consensus matrix divided by the number of times a resampled dataset is selected at the same time, and C' represents the group matrix divided by the number of times a resampled dataset is selected at the same time.

10. A batch effect analysis system based on medical images, characterized in that: Includes the following modules: The first module is used to obtain medical image data; The second module is used to introduce the preprocessor module, feature extractor module and analyzer module to build a batch effect explorer network; The third module is used to evaluate and visualize the batch effects of medical image data based on the batch effect explorer network to obtain the batch effect analysis results of medical images.

Citation Information

Patent Citations

  • Batch effect removing method for optimizing iconomics voxel-related variability

    CN116797857A

  • Method and device for predicting hemotoxicity of patient after radiotherapy based on machine learning

    CN119007978A

  • Batch effect mitigation in digitized images

    US20230059717A1

  • Systems and methods of correcting batch effect in biological images

    US20240104730A1