Single-cell multi-omics hyperparameter adaptive optimization method and device

By constructing a cell-level hyperparameter sensitivity matrix and optimizing the subgroup-level search space, the problem of differentiated responses in the hyperparameter search space in single-cell multi-omics data was solved, achieving efficient and accurate hyperparameter optimization and reliable fusion results.

CN123161676APending Publication Date: 2026-11-24GENERAL HOSPITAL OF PLA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611474934.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-21
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

In existing technologies for integrating single-cell multi-omics data, the hyperparameter search space is treated as a uniform black box, ignoring the differentiated responses of different cell subpopulations to hyperparameter perturbations. This leads to wasted resources and inaccurate fusion results, making it difficult to distinguish between cell subpopulations with high stability and high sensitivity.

Method used

By constructing a cell-level hyperparameter sensitivity matrix, dividing cell subpopulations, and building subpopulations in each subpopulation-level search space, elite migration and mutation suppression are performed, hyperparameter configuration is optimized, and local structural sensitivity analysis is achieved by combining multimodal mutual nearest neighbor sets and dynamic control of population fitness entropy.

Benefits of technology

It improves the accuracy and stability of hyperparameter optimization, removes high-noise cell regions, focuses on key hyperparameter regions, and enhances the interpretability and reliability of fusion results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123161676A_ABST
    Figure CN123161676A_ABST
Patent Text Reader

Abstract

This application discloses a single-cell multi-omics hyperparameter adaptive optimization method and apparatus, comprising: calculating the sensitivity of each cell to each hyperparameter to be optimized based on single-cell multi-omics data, and constructing a cell-level hyperparameter sensitivity matrix; clustering cells based on the cell-level hyperparameter sensitivity matrix to divide cell subpopulations, determining the cell subpopulation-level search center and compressed search radius corresponding to each cell subpopulation, and constructing a cell subpopulation-level search space; constructing subpopulations in each cell subpopulation-level search space, and performing elite migration between different subpopulations; for each subpopulation, retaining elite individuals unchanged, implementing mutation suppression on non-elite mutated individuals based on the cell-level hyperparameter sensitivity matrix, updating the subpopulation, iteratively optimizing until the convergence condition is met, and outputting the final hyperparameter configuration. This application quantifies cell structural changes to achieve precise sensitivity analysis, dynamically regulates mutations, and improves computational efficiency and result reliability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of bioinformatics, specifically to a single-cell multi-omics hyperparameter adaptive optimization method and device. Background Technology

[0002] Single-cell multi-omics technology achieves precise characterization of cell states by simultaneously analyzing multiple molecular dimensions such as gene expression, chromatin accessibility, and protein expression. However, multi-omics data integration still faces many challenges: different modalities exhibit varying sparsity, feature scales, and diverse noise sources. During multi-omics fusion, hyperparameters such as diffusion depth, the number of neighborhood graphs constructed, modality fusion weights, and gating sparsity thresholds directly affect the local neighborhood relationships between cells. Traditional random search, grid search, and Bayesian optimization treat the hyperparameter search space as a unified black box, ignoring the differentiated responses of different cell subpopulations to hyperparameter perturbations. This results in a large amount of evaluation resources being wasted in invalid regions dominated by high-noise cells and low-response cells. At the same time, existing hyperparameter evaluations often rely on neighborhood information or global clustering indicators of a single modality, making them susceptible to modal noise interference and masking local structural changes in rare cells and transitional cell populations, making it difficult to adapt to the differentiated fusion quality requirements of cells in different functional states. In addition, existing hyperparameter optimization methods usually only output a single optimal combination of hyperparameters, lacking a systematic evaluation of stability at the single-cell level, and making it difficult to distinguish between cell subpopulations with high stability and cell subpopulations that are highly sensitive to hyperparameter perturbations. Summary of the Invention

[0003] To overcome the shortcomings of the existing technology, this application provides a method and apparatus for adaptive optimization of hyperparameters in single-cell multi-omics.

[0004] In a first aspect, embodiments of this application provide a single-cell multi-omics hyperparameter adaptive optimization method, comprising: Based on single-cell multi-omics data, the sensitivity of each cell to each hyperparameter to be optimized is calculated, and a cell-level hyperparameter sensitivity matrix is ​​constructed. Based on the cell-level hyperparameter sensitivity matrix, cells are clustered to divide cell subgroups, and the cell subgroup-level search center and compressed search radius corresponding to each cell subgroup are determined to construct the cell subgroup-level search space. In each of the cell subpopulation-level search spaces, a subpopulation is constructed, and elite migration is performed between different subpopulations; For each subpopulation, the elite individuals are retained unchanged. Based on the cell-level hyperparameter sensitivity matrix, mutation suppression is applied to non-elite mutated individuals, and the subpopulation is updated. The optimization is iterated until the convergence condition is met, and the final hyperparameter configuration is output.

[0005] Furthermore, the calculation of the cell-level hyperparameter sensitivity matrix includes the following steps: The input single-cell multi-omics data is subjected to quality control, preprocessing, and low-dimensional feature construction to obtain the cell low-dimensional feature matrix corresponding to each modality; Based on the low-dimensional feature matrix of cells corresponding to each modality, a cell nearest neighbor list is constructed. The cell nearest neighbor list is used to establish a multimodal mutual nearest neighbor set and the cell neighborhood consistency weight is calculated. The initialization of the hyperparameter vector to be optimized includes setting the initial search range, baseline value and perturbation step size for each hyperparameter to be optimized, applying differentiated perturbation processing strategies according to the hyperparameter type, and constructing baseline hyperparameter vector, forward perturbation hyperparameter vector and reverse perturbation hyperparameter vector based on the baseline value and perturbation step size. Using a single-cell multi-omics fusion model and a low-dimensional cell feature matrix, baseline fusion embedding representations, forward perturbation fusion embedding representations, and reverse perturbation fusion embedding representations are generated. For each cell within the multimodal nearest neighbor set, the local structural sensitivity of each hyperparameter to be optimized is calculated based on the baseline fusion embedding representation, the forward perturbation fusion embedding representation, and the reverse perturbation fusion embedding representation. The cell-level hyperparameter sensitivity matrix is ​​obtained by traversing all cells and all hyperparameters to be optimized.

[0006] Furthermore, the hyperparameters to be optimized include at least one of diffusion depth, number of neighborhood graphs constructed, gene expression modality fusion weight, chromatin accessibility modality fusion weight, protein expression modality fusion weight, gating sparsity threshold, and regularization intensity.

[0007] Furthermore, the cell subpopulation-level search space construction process includes: The cell-level hyperparameter sensitivity matrix is ​​normalized to obtain the normalized cell-level hyperparameter sensitivity matrix. Cell clustering is performed based on the normalized cell-level hyperparameter sensitivity matrix to obtain cell subpopulation labels; By combining cell subpopulation labels and cell neighborhood consistency weights, and based on the normalized cell-level hyperparameter sensitivity matrix, the weighted average local structure sensitivity of each cell subpopulation to each hyperparameter to be optimized is calculated. Anchor point evaluation is used to determine the cell subpopulation-level search center for each cell subpopulation in each dimension of the hyperparameter to be optimized. The sensitivity ratio of the hyperparameters to be optimized is calculated based on the weighted average local structure sensitivity. The search radius corresponding to each cell subpopulation is compressed based on the sensitivity ratio of the hyperparameters to be optimized. The cell subpopulation-level search space is constructed with the cell subpopulation-level search center as the center and the compressed search radius.

[0008] Furthermore, the construction of subpopulations in each of the cell subpopulation-level search spaces and the execution of elite migration between different subpopulations include: Based on the cell subpopulation level search space, initialize the candidate hyperparameter vector for each subpopulation; For each subpopulation, a single-cell multi-omics fusion model is run on the candidate hyperparameter vectors to obtain the fusion embedding representation, and the fitness value of the candidate hyperparameter vectors is calculated. Record the candidate hyperparameter vectors that have been evaluated in the current evolutionary generation of each subpopulation, and construct a normalized distribution of historical hyperparameter solutions; Calculate the distribution similarity between the normalized distributions of historical hyperparameter solutions of different subpopulations to determine the migration probability of elite individuals; Elite individual migration is performed based on the migration probability of elite individuals, and boundary constraints are applied to the migrated elite individuals.

[0009] Further optimization involves selecting the elite individual as the candidate hyperparameter vector with the highest fitness value.

[0010] Furthermore, the method for determining elite retained individuals and non-elite mutated individuals is as follows: The top E individuals with the highest fitness values ​​in the subpopulation are selected. q One candidate hyperparameter vector is retained as an elite individual, and the remaining candidate hyperparameter vectors are mutated as non-elite individuals.

[0011] Furthermore, the step of suppressing mutations in non-elite mutant individuals based on the cell-level hyperparameter sensitivity matrix includes: The fitness values ​​of the subpopulations are normalized to fitness percentages, and the population fitness entropy is calculated based on the fitness percentages. Calculate the standard deviation of Gaussian variation at the subpopulation level based on the population fitness entropy; Within the cell subpopulation level search space, the hyperparameter coordinates of the candidate hyperparameter vectors are normalized, and mutation suppression is applied to the subpopulation level Gaussian mutation standard deviation based on the sensitivity ratio to obtain the dimension level Gaussian mutation standard deviation of the hyperparameter to be optimized. Gaussian mutation is then performed on the normalized hyperparameter coordinates using the dimension level Gaussian mutation standard deviation to obtain the mutated normalized hyperparameter vector, and the mutated normalized hyperparameter vector is mapped to the actual hyperparameter space.

[0012] Furthermore, single-cell multi-omics hyperparameter adaptive optimization methods also include: The optimized final hyperparameter configuration is applied to the full single-cell multi-omics data to generate the final fusion embedding representation, final cell clustering label, and cell-level fusion stability score.

[0013] Furthermore, the cell-level fusion stability score is obtained through the following steps: Multiple high-fitness candidate hyperparameter vectors are selected during the evolutionary optimization process; For each high-fitness candidate hyperparameter vector, run a single-cell multi-omics fusion model to obtain a high-fitness fusion embedding representation; Clustering is performed on the high-fitness fusion embedding representation to obtain a high-fitness cluster label set; The proportion of the most frequently occurring tags in high-fitness clusters is used as the cell-level fusion stability score.

[0014] Furthermore, downstream analysis results are generated based on the final fusion embedding representation, the final cell clustering label, and the cell-level fusion stability score.

[0015] Further downstream analysis results include cell clustering labels, cell type annotation results, cell-level fusion stability scores, cell subpopulation-level hyperparameter sensitivity results, and final hyperparameter configurations.

[0016] Secondly, embodiments of this application provide a single-cell multi-omics hyperparameter adaptive optimization device, comprising: The sensitivity matrix construction unit is used to calculate the sensitivity of each cell to each hyperparameter to be optimized based on single-cell multi-omics data, and to construct a cell-level hyperparameter sensitivity matrix. The cell subgroup space partitioning unit is used to cluster cells based on the cell-level hyperparameter sensitivity matrix to divide cell subgroups, determine the cell subgroup-level search center and compressed search radius corresponding to each cell subgroup, and construct the cell subgroup-level search space. A subpopulation construction unit is used to construct subpopulations in each cell subpopulation-level search space and perform elite migration between different subpopulations; The optimization unit is used to retain elite individuals unchanged for each subpopulation, implement mutation suppression on non-elite mutated individuals based on the cell-level hyperparameter sensitivity matrix, update the subpopulation, iterate and optimize until the convergence condition is met, and output the final hyperparameter configuration.

[0017] The single-cell multi-omics hyperparameter adaptive optimization method and device provided in this application have the following beneficial effects: 1) Based on multimodal neighbor sets, the local structural changes of a single cell under hyperparameter perturbation are quantified, and the heterogeneity of response patterns of different cell populations to specific hyperparameters is identified in a fine-grained manner, thereby improving the accuracy and authenticity of hyperparameter sensitivity analysis and providing structural priors for subsequent optimization.

[0018] 2) Cell subgroups are divided by sensitivity mode, and the optimal search center and search radius are independently evaluated for each subgroup. Invalid regions containing high-noise and low-response cells are removed from the search space, and the focus is on key hyperparameter regions that have a significant impact on the fusion results and are more conducive to maintaining the local structure, thus avoiding the waste of computational resources.

[0019] 3) By dynamically regulating the mutation amplitude using population fitness entropy and combining it with sensitivity ratio to suppress mutations in highly sensitive dimensions, a smooth transition from global exploration to local development is achieved.

[0020] 4) By accumulating high-fitness candidate solutions during the evolutionary process, each cell is assigned a fusion stability score, which effectively distinguishes high-confidence cells with clear affiliation from low-confidence cells whose affiliation is unstable due to transition states or noise, thereby enhancing the interpretability and reliability of the fusion results. Attached Figure Description

[0021] Figure 1 The flowchart shown is of the hyperparameter adaptive optimization method of this application.

[0022] Figure 2 The image shown is a heatmap of the transpose of the cell-level hyperparameter sensitivity matrix for some cells in this application.

[0023] Figure 3 The image shows a scatter plot of the cell subgroup partitioning results of the normalized sensitivity matrix in this application.

[0024] Figure 4 The bar chart shown is a result of the cell subpopulation-level weighted average local structure sensitivity of this application.

[0025] Figure 5 The figure shown is a curve illustrating the evolutionary results of the optimal fitness of the subpopulation in this application.

[0026] Figure 6 The diagram shown is a schematic representation of the hyperparameter adaptive optimization device of this application. Detailed Implementation

[0027] The technical solution of this application will be clearly and completely described below with reference to the embodiments of this application. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.

[0028] Example 1: Hyperparameter Adaptive Optimization Method Figure 1 The diagram shown is a flowchart of a single-cell multi-omics hyperparameter adaptive optimization method according to this application, which includes the following steps: S1. Based on single-cell multi-omics data, calculate the sensitivity of each cell to each hyperparameter to be optimized, and construct a cell-level hyperparameter sensitivity matrix.

[0029] Single-cell multi-omics data typically include gene expression modalities, chromatin accessibility modalities, protein expression modalities, and metabolomics modalities. These modalities differ in sparsity, feature scale, noise sources, and cell state resolution capabilities. During single-cell multi-omics fusion, hyperparameters such as diffusion depth, the number of neighborhood graphs constructed, modality fusion weights, gating sparsity thresholds, regularization strength, and fusion embedding dimensions, which require optimization, directly influence the local neighborhood relationships between cells.

[0030] Conventional random search, grid search, and Bayesian optimization typically treat the search space of the hyperparameters to be optimized as a uniform black box space, failing to distinguish the different responses of different cell subpopulations to the hyperparameters to be optimized. This can easily lead to the consumption of evaluation resources in invalid regions dominated by high-noise cells or low-response cells.

[0031] This application uses the cross-modal stable neighborhood relationships before multi-omics fusion as the local structural benchmark, analyzes the changes in the stable neighbor ranking of cells before and after local perturbations of the hyperparameters to be optimized, quantifies the local structural sensitivity of each cell to each hyperparameter to be optimized, and then divides cell subpopulations according to the local structural sensitivity patterns, constructing differentiated cell subpopulation-level search spaces for different cell subpopulations, so that the subsequent evolutionary optimization process prioritizes the effective search regions that have a more significant impact on the fusion results. The specific steps are as follows: (1) Perform quality control, preprocessing and low-dimensional feature construction on the input single-cell multi-omics data in sequence to obtain the cell low-dimensional feature matrix corresponding to each modality.

[0032] To ensure that the nearest neighbor relationships of the same cell can be compared in different modalities, the rows of the low-dimensional feature matrix of cells corresponding to each modality all correspond to the same batch of cells. Define M. o , where is the modality count, representing the number of omics modalities participating in the fusion, is set to 3; N is defined as the total number of cells retained after quality control, i.e., the number of cells participating in the fusion and hyperparameter optimization, is set to 10000; cell index i identifies a specific cell in the single-cell multi-omics data, with a value ranging from 1 to N.

[0033] Quality control was performed on the gene expression modality of single cells, including cell filtering and low-expression gene filtering, to obtain the gene counting matrix X after quality control of the gene expression modality. rna (Dimensions are N×G, where G is the number of genes). Then, X... rna Preprocessing was performed, including library size normalization, logarithmic transformation, and screening for highly variable genes. Finally, low-dimensional feature construction was performed, using principal component analysis to reduce the data dimensionality to 50 dimensions, obtaining the cellular low-dimensional feature matrix F corresponding to the gene expression modalities. rna (Dimensions are N×50).

[0034] Quality control of chromatin accessibility modalities was performed using peak region filtering, resulting in a peak region counting matrix X.atac (Size is N×P, where P is the number of peak regions). Then, X... atac Preprocessing was performed using term frequency-inverse document frequency transformation to reduce the dominance of high-frequency open peak regions on distance calculation. Finally, latent semantic analysis was used to construct low-dimensional features, extracting major regulatory state changes from the sparse peak region matrix to obtain the cell low-dimensional feature matrix F corresponding to chromatin accessibility. atac (Dimensions are N×50).

[0035] Quality control was performed on the protein expression modality, including the removal of abnormal cells, to obtain the protein counting matrix X after quality control of the protein expression modality. adt (Dimensions are N×A, where A is the number of protein markers), then X adt Preprocessing was performed, including background correction and centered logarithmic ratio transformation. Finally, principal component analysis was used to construct low-dimensional features, resulting in the cellular low-dimensional feature matrix F corresponding to protein expression. adt (Dimensions are N×20).

[0036] (2) Construct a cell nearest neighbor list based on the cell low-dimensional feature matrix corresponding to each modality, and use the cell nearest neighbor list to establish a multimodal mutual nearest neighbor set and calculate the cell neighborhood consistency weight.

[0037] Nearest neighbor number threshold K nbr The number of candidate neighbors retained by each cell in a single modality is set to 30; N i (m) The K closest to the i-th cell in the low-dimensional feature matrix of the cell corresponding to the m-th modality. nbr A list of nearest neighbors consisting of 1 to M cells, where m ranges from 1 to M. o .

[0038] First, standardize the low-dimensional feature matrix of the cell corresponding to the m-th modality, so that the mean of each low-dimensional feature column is 0 and the standard deviation is 1; then calculate the distance between the i-th cell and other cells; then sort the distances in ascending order and take the top K. nbr Each cell yields N i (m) For gene expression and protein expression modalities, Euclidean distance is used; for chromatin accessibility modalities, cosine distance is used to accommodate the sparsity of peak region features.

[0039] To avoid accidental connections caused by unidirectional nearest neighbors, this application uses mutual nearest neighbor conditions to determine whether the j-th cell is a stable neighbor of the i-th cell, where j is the index of a candidate neighbor cell of the i-th cell; (Definition) The nearest neighbor indicator value in the m-th modality is the value when the j-th cell is located in N. i (m) And the i-th cell is located in Nj (m) At the middle of the hour, the order Otherwise Count the number of times the j-th cell and the i-th cell appear as nearest neighbors in multiple modalities, i.e. This characterizes the stability of the candidate neighbor in the cross-modal local structure.

[0040] V i,j When ≥2, the j-th cell is included in the multimodal nearest neighbor set M of the i-th cell. i , representing the multimodal mutual nearest neighbor set M i A set of neighboring cells that simultaneously satisfy the mutual nearest neighbor condition in at least two modalities provides a stable neighborhood benchmark that is consistent across modalities.

[0041] If the multimodal nearest neighbor set M of a certain cell i The number of neighbors is less than the minimum neighbor number threshold K. mut,min A relaxed strategy is adopted to supplement the multimodal mutual nearest neighbor set, K. mut,min The minimum neighbor number threshold used to ensure the stability of subsequent ranking sensitivity calculations is set to 10, where the relaxation strategy is to first sort all candidate neighbor cells by V. i,j Sort by modality from largest to smallest, then sort by average nearest neighbor distance for each modality from smallest to largest, and select the top K. mut,min Each candidate neighbor cell is added to the multimodal mutual nearest neighbor set. In this way, rare or transitional cells can be prevented from participating in sensitivity modeling due to insufficient cross-modal consistent neighbors.

[0042] The cell neighborhood consistency weight, used to control the influence of the i-th cell in subsequent cell subpopulation statistics, is calculated as follows: ; Where, γ i For cell neighborhood consistency weights, |M i | represents the number of multimodal mutual neighbors of the i-th cell.

[0043] When the i-th cell has high cross-modal neighborhood consistency (i.e., a high proportion of cross-modal stable neighbors), the cell neighborhood consistency weight γ i The value is close to 1; conversely, when the cross-modal neighborhood consistency of the i-th cell is weak (i.e., the proportion of cross-modal stable neighbors is low), the cell neighborhood consistency weight γ is close to 1. i Smaller. In subsequent cell subpopulation sensitivity statistics, low γ i The value may suppress the influence of low-quality cells or modal conflict cells, thereby mitigating interference with the reconstruction of the search space.

[0044] (3) Initialization of the hyperparameter vector to be optimized, including setting the initial search range, benchmark value and perturbation step size for each hyperparameter to be optimized, applying differentiated perturbation processing strategies according to the hyperparameter type, and constructing benchmark hyperparameter vector, forward perturbation hyperparameter vector and reverse perturbation hyperparameter vector based on benchmark value and perturbation step size.

[0045] The hyperparameter vector to be optimized is a candidate hyperparameter vector used to control the operation of the single-cell multi-omics fusion model. To initialize the hyperparameter vector to be optimized, where θ k Let K be the k-th hyperparameter to be optimized, used to control specific computational behavior in the single-cell multi-omics fusion model. hyp The total number of hyperparameters to be optimized is 6, used to determine the dimensions of hyperparameter sensitivity modeling and evolutionary optimization. k is the index of the hyperparameter to be optimized, with a value ranging from 1 to K. hyp .

[0046] The initial search interval for the k-th hyperparameter to be optimized is [l k ,u k ], where l k u is the initial lower bound for the search of the k-th hyperparameter to be optimized. k This serves as the initial upper bound for the search of the k-th hyperparameter to be optimized. The baseline value for the k-th hyperparameter to be optimized is... This serves as a control value before local perturbation. The perturbation step size for the k-th hyperparameter to be optimized is ε. k ε is used to generate positive and negative perturbation values. k Let u k -l k 1% to 5%.

[0047] Specifically, the hyperparameters to be optimized include the diffusion depth d. diff Number of neighborhood graphs constructed, K graph Gene expression modality fusion weight ω rna Chromatin accessibility modal fusion weight ω atac Protein expression modality fusion weights ω adt Gating sparsity threshold τ gate and regularization strength λ reg Diffusion depth d diff Used to control the number of information propagations in the fused adjacency matrix, with an initial search range of 1 to 6; the number of neighborhood graphs constructed is K. graph The number of neighbors connected to each cell in the fusion graph is used to control the initial search range of 10 to 80; gene expression modality fusion weight ω rna Chromatin accessibility modal fusion weight ω atac The weights ω for protein expression modal fusion adtThis is used to control the contribution ratio of each modality in the fusion similarity. The initial search range is 0.05 to 0.95. During use, the fusion weights of each modality are normalized so that the sum of the weights is 1. A gated sparsity threshold τ is also used. gate Used to filter weak connections in the fused graph, with an initial search range of 0.01 to 0.30; regularization strength λ reg Used to constrain the smoothness or sparsity of the fused embedding representation, with an initial search range of 10. -5 Up to 10 -1 .

[0048] Specifically, if the k-th hyperparameter to be optimized is an integer hyperparameter (such as diffusion depth d) diff Or the number of neighborhood graphs constructed, K graph If the value is rounded to the nearest valid integer after the perturbation, it will be restricted to [l]. k ,u k [Inside; if the k-th hyperparameter to be optimized is a log-scaled hyperparameter (such as the regularization intensity λ)] reg ), then first in log 10 Set the baseline value and perturbation step size on the scale, and then map the perturbed logarithmic scaling result back to the actual numerical scale; if the k-th hyperparameter to be optimized belongs to the modal fusion weight, then perturb the modal fusion weight, and then perform non-negative pruning and normalization on all modal fusion weights to ensure that the sum of all modal fusion weights is 1.

[0049] The baseline hyperparameter vector Θ is formed by taking the baseline values ​​of all hyperparameters to be optimized. base The positive perturbation hyperparameter vector Θ of the k-th hyperparameter to be optimized (k,+) To optimize only the k-th hyperparameter by Adjusted to The remaining hyperparameters to be optimized retain their baseline values; the inverse perturbation hyperparameter vector Θ of the k-th hyperparameter to be optimized. (k,-) For only the k-th hyperparameter to be optimized, Adjusted to The remaining hyperparameters to be optimized are candidate hyperparameter vectors that retain the baseline values.

[0050] (4) Using the single-cell multi-omics fusion model and the cell low-dimensional feature matrix, the baseline fusion embedding representation, the forward perturbation fusion embedding representation and the reverse perturbation fusion embedding representation are generated.

[0051] Using the graph fusion-diffusion model as a single-cell multi-omics fusion model, a single-modality nearest neighbor graph is constructed based on the low-dimensional feature matrix of the cell corresponding to each modality, resulting in the single-modality adjacency matrix A between cells of the m-th modality. (m) (Size N×N); The single-modal adjacency matrix is ​​weighted and fused according to the fusion weights of each modality to obtain the fused adjacency matrix A.fus The formula is: ; Where, ω m The modality fusion weights corresponding to the m-th modality are used to control the fusion adjacency matrix A of the m-th modality. fus The contribution, and .

[0052] For the fused adjacency matrix A fus Perform gated sparsity processing, that is, apply sparsity values ​​less than the gated sparsity threshold τ. gate The connection strength is set to 0. Normalization is performed on each row to obtain the row-normalized fusion transition matrix T. fus T fus This is the probability matrix for each cell to propagate information to its neighboring cells. The row-normalized fusion transition matrix T is also shown. fus According to the diffusion depth d diff Perform matrix diffusion to obtain the diffusion fusion matrix G. fus The calculation formula is: For the diffusion fusion matrix G fus Perform one of the operations—spectral decomposition, principal component analysis, or neighborhood-preserving embedding—to obtain the fused embedding representation Z. This fused embedding representation Z is a low-dimensional cell representation (N×D in size) output by the single-cell multi-omics fusion model. z D z To integrate the embedded dimension, and D z The value ranges from 20 to 50.

[0053] Based on the benchmark hyperparameter vector Θ base Running a single-cell multi-omics fusion model yields the baseline fusion embedding representation Z. base Based on the positive perturbation hyperparameter vector Θ (k,+) Running a single-cell multi-omics fusion model yields the positive perturbation fusion embedding representation Z corresponding to the k-th hyperparameter to be optimized. (k,+) Based on the inverse perturbation hyperparameter vector Θ (k,-) Running a single-cell multi-omics fusion model yields the inverse perturbation fusion embedding representation Z corresponding to the k-th hyperparameter to be optimized. (k,-) By changing only one hyperparameter to be optimized, subsequent stable neighbor ranking changes can be clearly attributed to that hyperparameter, avoiding the situation where the source of sensitivity is unclear due to simultaneous changes in multiple hyperparameters.

[0054] (5) For each cell in the multimodal neighbor set, calculate the local structural sensitivity of each hyperparameter to be optimized based on the baseline fusion embedding representation, the forward perturbation fusion embedding representation and the reverse perturbation fusion embedding representation, and traverse all cells and all hyperparameters to be optimized to obtain the cell-level hyperparameter sensitivity matrix.

[0055] For the i-th cell, first fuse the embedding representation Z in the baseline. base Calculate the nearest neighbor set M between the i-th cell and the multimodal cells. i The distance between each neighboring cell is used to generate a baseline stable neighbor sort in ascending order of distance. Definition Let j be the sorting number of the j-th neighbor cell in the baseline stable neighbor sorting of the i-th cell. The smaller the sorting number, the more likely the j-th neighbor cell is in the baseline fusion embedding representation Z. base The closer the distance is to the i-th cell.

[0056] In the positive perturbation fusion embedding representation Z (k,+) In the same multimodal mutual nearest neighbor set M i The distances between neighboring cells within the same cell are recalculated and sorted to obtain a positively perturbation-stable neighbor sort. , represents the sorting number of the j-th neighbor cell relative to the i-th cell after the k-th hyperparameter to be optimized is positively perturbed.

[0057] In the reverse perturbation fusion embedding representation Z (k,1) In the same multimodal mutual nearest neighbor set M i The distances between neighboring cells within the same cell are recalculated and sorted to obtain a reverse-perturbation stable neighbor sort. , where represents the sorting number of the j-th neighbor cell relative to the i-th cell after the k-th hyperparameter to be optimized undergoes a reverse perturbation.

[0058] In practical implementation, it is not necessary to re-compare and sort all cells; only the multimodal nearest neighbor set M is compared. i Internal comparison is used to sort stable neighbors. This reduces computational cost and ensures that the sensitivity reflects structural changes in stable neighborhoods across modalities, without being affected by noise from distant, irrelevant cells.

[0059] Calculate the sorting displacements caused by forward and reverse perturbations respectively, and then calculate the sorting displacements for the multimodal nearest neighbor set M. i The average value of all neighboring cells within the i-th cell is used to obtain the local structural sensitivity s of the i-th cell to the k-th hyperparameter to be optimized. i,k The formula is:

[0060] Among them, s i,k Let δ represent the local structural sensitivity of the i-th cell to the k-th hyperparameter to be optimized, characterizing the response strength of the cross-modal stable neighborhood structure of the i-th cell to changes in the k-th hyperparameter to be optimized. δ is the perturbation direction index, where δ=+ indicates a positive perturbation and δ=- indicates a negative perturbation. Let ε be the sorting index of the j-th neighboring cell relative to the i-th cell after the k-th hyperparameter to be optimized is perturbed in the perturbation direction δ. rTo sort the displacement normalized stability constant, to prevent when |M i When |=1, the denominator is 0, let's set it to 10. -8 .

[0061] Local structural sensitivity s i,k The larger the value, the more easily the stable neighbor order of the i-th cell is affected by the k-th hyperparameter to be optimized; local structure sensitivity s i,k The smaller the value, the less sensitive the stable neighborhood structure of the i-th cell is to changes in the k-th hyperparameter to be optimized.

[0062] For example, if the multimodal mutual nearest neighbor set M of the i-th cell i The population has 30 stable neighbors, with a diffusion depth of d. diff The baseline value is 3, the value after a positive perturbation is 4, and the value after a negative perturbation is 2. If the normalized average of the ordination displacements of the 30 stable neighbors under a positive perturbation is 0.28, and the normalized average of the ordination displacements of the 30 stable neighbors under a negative perturbation is 0.18, then the diffusion depth d of the i-th cell pair is... diff The local structure sensitivity is (0.28+0.18) / 2=0.23. The results indicate that the local neighborhood structure of the i-th cell has a certain degree of response to changes in diffusion depth, and subsequent search processes need to preserve the ability of diffusion depth to regulate the cell subpopulation.

[0063] By traversing all cells and all hyperparameters to be optimized, the cell-level hyperparameter sensitivity matrix S (of size N×K) is obtained. hyp The element in the i-th row and k-th column of the matrix is ​​s. i,k The rows of the cell-level hyperparameter sensitivity matrix S correspond to cells, and the columns correspond to the hyperparameters to be optimized. This serves as a fine-grained structural prior for subsequent cell subpopulation partitioning and cell subpopulation-level search space construction.

[0064] It should be noted that the multimodal mutual nearest neighbor set M i It provides a stable neighborhood benchmark consistent with the previous cross-modal integration, and the local structural sensitivity s i,k This measures the degree to which the stable neighborhood ranking responds to perturbations of the hyperparameters to be optimized after the single-cell multi-omics fusion model has been run. By calculating the ranking shift together with forward and reverse perturbations, the random bias caused by unidirectional perturbations can be reduced, making the cell-level hyperparameter sensitivity matrix S more stably reflect the true differences in the responses of different cell subpopulations to the hyperparameters to be optimized.

[0065] like Figure 2The image shows a heatmap of the transposed hyperparameter sensitivity matrix of a subset of cells, illustrating the local structural sensitivity of the top 100 cells to all hyperparameters to be optimized. The significant differences in color distribution among different hyperparameters indicate heterogeneity in their sensitivity patterns across different cells, providing fine-grained prior information for subsequent subgrouping based on sensitivity patterns.

[0066] S2. Based on the cell-level hyperparameter sensitivity matrix, cluster the cells to divide them into cell subgroups, determine the cell subgroup-level search center and compressed search radius for each cell subgroup, and construct the cell subgroup-level search space.

[0067] In single-cell multi-omics data, mature cells, rare cells, transitional cells, and batch-affected cells exhibit different sensitivities to hyperparameters. Directly optimizing hyperparameters within a uniform initial search space can dilute the effective region of high-response cell subpopulations with low-response cells, and the search directions of different cell subpopulations may interfere with each other. This application uses a cell-level hyperparameter sensitivity matrix to cluster cells with similar hyperparameter response patterns, forming multiple cell subpopulations. The search center and search radius for each cell subpopulation are determined based on anchor point evaluation results. The specific steps are as follows: (1) Column normalization is performed on the cell-level hyperparameter sensitivity matrix to obtain the normalized cell-level hyperparameter sensitivity matrix.

[0068] Normalized cell-level hyperparameter sensitivity matrix The matrix is ​​formed by adjusting the local structure sensitivity corresponding to different hyperparameters to a comparable scale, with a size of N×K. hyp .

[0069] For each column of the cell-level hyperparameter sensitivity matrix S, calculate the minimum value of that column. and the maximum value in this column ,in, The minimum local structural sensitivity of all cells to the k-th hyperparameter to be optimized. Let be the highest local structural sensitivity of all cells to the k-th hyperparameter to be optimized. Linear normalization is performed on the local structural sensitivity corresponding to the i-th cell and the k-th hyperparameter to be optimized, using the following formula:

[0070] in, for The element in the i-th row and k-th column represents the normalized local structure sensitivity of the i-th cell to the k-th hyperparameter to be optimized. This is the sensitivity normalization stability constant, used to prevent the denominator from being 0 when the local structural sensitivities of a certain column are completely identical. It is set to 10. -8 .like = If the normalization result of the column is set to 0, it means that the k-th hyperparameter to be optimized cannot effectively distinguish the response patterns of different cells.

[0071] By normalizing the columns, the sensitivity scale of different hyperparameters to be optimized is unified, thus preventing a certain hyperparameter with a large natural response amplitude from dominating the division of all cell subpopulations.

[0072] (2) Clustering of cells based on normalized cell-level hyperparameter sensitivity matrix to obtain cell subgroup labels.

[0073] The total number of cell subpopulations is Q, which is the number of different hyperparameter response modes obtained based on sensitivity pattern partitioning, and its value ranges from 3 to 8; q is defined as the cell subpopulation index, identifying a specific cell subpopulation, and its value ranges from 1 to Q; c i c is the label of the cell subpopulation to which the i-th cell belongs. i =q indicates that the i-th cell belongs to the q-th cell subgroup.

[0074] Specifically, spectral clustering is used to cluster the normalized cell-level hyperparameter sensitivity matrix. First, the inter-cell similarity is calculated based on the normalized local structure sensitivity vectors of the i-th and j-th cells. The inter-cell similarity is calculated using a radial basis function (RBF) kernel, with the bandwidth of the RBF kernel being the median distance between all cell pairs. Then, a sensitivity similarity graph is constructed based on the inter-cell similarity, and a graph Laplacian matrix is ​​constructed based on the sensitivity similarity graph. The first Q eigenvectors of the graph Laplacian matrix are taken as the cluster representation of the cells. Finally, K-means clustering is performed on the cluster representation to obtain the cell subgroup label c. i .

[0075] In one implementation, when computational complexity needs to be reduced during engineering implementation, the normalized cell-level hyperparameter sensitivity matrix is ​​directly applied. Perform K-means clustering or hierarchical clustering.

[0076] When determining the total number of cell subpopulations Q, the silhouette coefficient is used for evaluation. Within the range of Q from 3 to 8, each candidate value is tried sequentially. Clustering is performed on each Q value, and the silhouette coefficient is calculated. The Q value with the highest silhouette coefficient that satisfies the condition that the number of cells in each cell subpopulation is not less than a preset lower limit is selected as the total number of cell subpopulations. The preset lower limit can be set to 0.5%N or 50 cells to avoid generating excessively small cell subpopulations, thereby ensuring the stability of the subsequent cell subpopulation-level search space.

[0077] (3) Combining cell subgroup labels and cell neighborhood consistency weights, the weighted average local structure sensitivity of each cell subgroup to each hyperparameter to be optimized is calculated based on the normalized cell-level hyperparameter sensitivity matrix.

[0078] C q Let be the set of cells in the q-th cell subgroup, used to record all cells within the cell subgroup labeled q; |C q | represents the number of cells contained in the q-th cell subgroup.

[0079] Specifically, instead of directly averaging the normalized local structure sensitivity of all cells within a cell subpopulation, a weighted average is performed using the cell neighborhood consistency weight γi, allowing cells with higher cross-modal neighborhood stability to contribute more statistically. The formula for the weighted average local structure sensitivity of the q-th cell subpopulation to the k-th hyperparameter to be optimized is:

[0080] in, Let be the weighted average local structural sensitivity of the q-th cell subpopulation to the k-th hyperparameter to be optimized, characterizing the overall response of the cell subpopulation to changes in the k-th hyperparameter to be optimized. To calculate the stability constant for the cell subpopulation and prevent the denominator from being 0, we set it to 10. -8 .

[0081] Weighted average local structural sensitivity The larger the value, the more susceptible the cross-modal stable neighborhood structure of the q-th cell subpopulation is to changes in the k-th hyperparameter to be optimized; weighted average local structure sensitivity. The smaller the value, the less significant the change in the q-th cell subpopulation with respect to the k-th hyperparameter to be optimized.

[0082] For example, if the qth cell subpopulation contains 1200 cells, the diffusion depth d diff Corresponding weighted average local structural sensitivity The threshold value for τ is 0.82. gate The corresponding weighted average local structure sensitivity is 0.25, indicating that the local neighborhood structure of the cell subpopulation is more susceptible to the influence of diffusion depth. Subsequent searches for diffusion depth should be more focused and refined, while a relatively wider exploration range can be retained for the gating sparsity threshold.

[0083] (4) Determine the cell subpopulation-level search center for each cell subpopulation in each dimension of the hyperparameter to be optimized by anchor point evaluation.

[0084] Compressing the search space solely based on the initial search interval center may result in the exclusion of effective hyperparameter regions when the initial center deviates from the effective region. This application adds an anchor point evaluation operation before reconstructing the search space. Multiple anchor points are selected within the initial search interval for each hyperparameter to be optimized, and the search center is selected based on the cell subpopulation neighborhood preservation score. This ensures that the compressed interval expands around a position more conducive to preserving the local structure of the cell subpopulation.

[0085] The number of anchor points for the k-th hyperparameter to be optimized is A. k The number of trial values ​​within the initial search interval of the hyperparameter to be optimized is set to 5; the value of the a-th anchor point of the k-th hyperparameter to be optimized is... Where 'a' is the anchor index, and its value ranges from 1 to A. k .

[0086] Specifically, in [l k ,u k Select A at equal intervals within ] k If the k-th hyperparameter to be optimized is a logarithmic scale hyperparameter, then after selecting anchor points at equal intervals on the logarithmic scale, it is mapped back to the actual numerical scale.

[0087] For the k-th hyperparameter to be optimized, construct the anchor point hyperparameter vector Θ. (k,a) Θ (k,a) Set only the value of the k-th hyperparameter to be optimized. The remaining candidate hyperparameter vectors, retaining the baseline values, are used for optimization. Using Θ... (k,a) Running a single-cell multi-omics fusion model, we obtain the fusion embedding representation Z when the k-th hyperparameter to be optimized is taken as the a-th anchor point. (k,a) .

[0088] For the q-th cell subgroup, compute the anchor fusion embedding representation Z. (k,a) Relative to the multimodal mutual nearest neighbor set M i The neighborhood score ρ of the cell subpopulation q,k,a Specifically, in the anchor point fusion embedding representation Z (k,a) In the above, select the closest |M| to the i-th cell. i Each cell forms an anchor point neighbor set. , This is used to record the neighbor cells of the i-th cell in the fused embedding representation when the k-th hyperparameter to be optimized is taken as the a-th anchor point. The anchor point neighbor set... With the multimodal nearest neighbor set M i Find the intersection to obtain the stable neighborhood retention ratio of the cells. The neighborhood retention score of the q-th cell subpopulation is calculated as follows:

[0089] Where, ρ q,k,a The neighborhood preservation score for the q-th cell subpopulation under the value of the a-th anchor point of the k-th hyperparameter to be optimized is used to evaluate the ability of the anchor point value to preserve the cross-modal stable neighborhood of the cell subpopulation; ε m To maintain the computational stability constant in the neighborhood, and prevent |M i When |=0, the denominator is 0, let's set it to 10. -8.

[0090] For the q-th cell subpopulation and the k-th hyperparameter to be optimized, the anchor point with the highest score in the neighborhood of the cell subpopulation is selected as the cell subpopulation-level search center, as shown in the formula:

[0091]

[0092] in, Let be the optimal anchor index for the q-th cell subpopulation on the k-th dimension of the hyperparameter to be optimized. The q-th cell subpopulation is the cell subpopulation-level search center in the k-th dimension of the hyperparameter to be optimized, and serves as the center of the subsequent compressed search interval.

[0093] For example, if the number of neighborhood graphs constructed is K graph The initial search interval is [10, 80], and anchor points 10, 27, 45, 62, and 80 are selected. For the q-th cell subpopulation, the neighborhood preservation scores of the cell subpopulation corresponding to the 5 anchor points are 0.52, 0.66, 0.81, 0.72, and 0.58, respectively. Therefore, anchor point 45 represents the number K of cells in the neighborhood graph construction. graph A cellular subpopulation-level search center is established. Through the aforementioned anchor point evaluation, search space compression does not mechanically revolve around the initial interval center or empirical values, but rather around values ​​that better preserve the local structure of the cellular subpopulation.

[0094] (5) Calculate the sensitivity ratio of the hyperparameter to be optimized based on the weighted average local structure sensitivity, compress the search radius corresponding to each cell subgroup based on the sensitivity ratio of the hyperparameter to be optimized, and construct the cell subgroup-level search space based on the compressed search radius with the cell subgroup-level search center as the center.

[0095] Let be the initial search radius for the k-th hyperparameter to be optimized, representing half the width of the initial search interval for the k-th hyperparameter to be optimized, i.e. .

[0096] g q,k Let be the sensitivity ratio of the q-th cell subpopulation to the k-th hyperparameter to be optimized. This ratio is used to normalize the response intensity of different cell subpopulations to the same hyperparameter dimension to a comparable range. The formula is: ; Where q' is the cell subpopulation comparison index. ε represents the highest weighted average local structural sensitivity of all cell subpopulations to the k-th hyperparameter to be optimized. g To calculate the stability constant for the sensitivity ratio, and to prevent the denominator from being 0, we set it to 10. -8 .

[0097] According to the sensitivity ratio g q,k Calculate the compressed search radius r of the q-th cell subpopulation in the k-th dimension of the hyperparameter to be optimized. q,k The formula is: ; Where, r q,k Let be the compressed search radius of the q-th cell subpopulation in the k-th dimension of the hyperparameter to be optimized. Let be the minimum search radius for the k-th hyperparameter to be optimized, to prevent the search interval corresponding to the highly sensitive cell subpopulation from being compressed too narrowly, and set it as . Pz is the search range compression strength coefficient, which controls the influence of the sensitivity ratio on the degree of search range contraction. Its value ranges from 0 to 1, and is preferably 0.6.

[0098] Search center at the cell subpopulation level Centered on the search radius r q,k Construct the search interval B for the k-th hyperparameter to be optimized corresponding to the q-th cell subpopulation. q,k The formula is: ; Among them, B q,k Let k be the search interval for the k-th hyperparameter to be optimized for the q-th cell subpopulation, which constrains the initialization, crossover, and mutation range of the subsequent q-th subpopulation in the k-th hyperparameter dimension.

[0099] The search intervals of all hyperparameters to be optimized corresponding to the q-th cell subpopulation together constitute the cell subpopulation-level search space B. q Initialize and constrain the q-th subpopulation.

[0100] For example, if the initial search interval for the k-th hyperparameter to be optimized is [0.1, 0.9], then the initial search radius is... The value is 0.4. If the q-th cell subpopulation has a cell subpopulation-level search center in this dimension... The sensitivity ratio is 0.6, and the percentage of g is g. q,k The search range has a compressive strength coefficient Pz of 0.6 and a minimum search radius of 0.75. If the value is 0.04, then the compressed search radius r q,k =0.4×(1-0.6×0.75)=0.22, the search range for the hyperparameters to be optimized is [0.38,0.82].

[0101] It should be noted that this application does not directly delete highly sensitive hyperparameters to be optimized, but rather adjusts the search interval width based on the response intensity of the hyperparameters to be optimized by the cell subpopulation. The search interval corresponding to highly sensitive cell subpopulations is more concentrated, which is conducive to fine optimization on the dimensions of hyperparameters to be optimized that have a significant impact on the local structure; the search interval corresponding to low-sensitive cell subpopulations retains a wider range, which is conducive to maintaining the necessary exploration capability. Anchor point evaluation is used to determine a more reasonable search center, and sensitivity ratio is used to determine the search radius. The combination of the two can take into account both local structural stability and global search diversity.

[0102] The cell-level hyperparameter sensitivity matrix S is used to characterize differences in cell-level hyperparameter responses; cell subpopulation labels c i Used to determine the subpopulations corresponding to different cell subpopulations; cell subpopulation-level hyperparameter sensitivity statistics results Used to describe the strength of hyperparameter responses of different cell subpopulations; cell subpopulation-level search space B q Used to constrain the initialization range, crossover range, and mutation range of subsequent multipopulation evolution optimization.

[0103] Figure 3 The diagram shows an exemplary cell subgroup partitioning result from a normalized sensitivity matrix. Principal component analysis was used to reduce the dimensionality of the normalized cell-level hyperparameter sensitivity matrix to a two-dimensional scatter plot. Different colors represent cell subgroup labels obtained through clustering. The data points exhibit a clear clustering structure, validating the effectiveness of the cell subgroup partitioning strategy based on sensitivity response patterns, and demonstrating that different subgroups possess different hyperparameter response characteristics.

[0104] S3. Construct a subpopulation for each cell subpopulation in each cell subpopulation-level search space, and perform elite migration between different subpopulations.

[0105] Single-cell multi-omics fusion hyperparameter optimization typically exhibits characteristics such as multi-peak distribution, numerous local valley regions, and inconsistent hyperparameter preference regions among different cell subpopulations. Conventional evolutionary algorithms employ a homogeneous population for global search, which is prone to premature convergence in local optima and fails to meet the differentiated fusion quality requirements of cell subpopulations with varying functional states. Since different cell subpopulations correspond to different cell subpopulation-level search spaces, directly merging all cell subpopulations into a single population for optimization can easily lead to the effective search directions of some cell subpopulations being covered by other cell subpopulations.

[0106] This application constructs multiple subpopulations based on a cell subpopulation-level search space as a priori condition, with each subpopulation corresponding to a cell subpopulation. Distribution-aware cross-control is used to manage the migration probability of elite individuals between different subpopulations, allowing subpopulations with similar search directions to share superior candidate hyperparameter vectors. The specific steps are as follows: (1) Initialize the candidate hyperparameter vector for each subpopulation based on the cell subpopulation level search space.

[0107] The q-th subpopulation corresponds to the q-th cell subpopulation, and both are identified using the same index q; U q is the number of candidate hyperparameter vectors in the q-th subpopulation, used to control the search size of the q-th subpopulation, with a value ranging from 20 to 50; t is the generation index, used to identify the iteration round of multi-population evolution optimization, with a value ranging from 1 to T. max ;T max This is the maximum number of evolutionary generations, used to control the termination condition of evolutionary optimization, and is set to 80. Let u be the value of the u-th candidate hyperparameter vector in the q-th subpopulation in generation t, where u represents the index of the candidate hyperparameter vector, ranging from 1 to U. q .

[0108] Specifically, for the u-th candidate hyperparameter vector in the q-th subpopulation Searching space B at the cell subpopulation level q Random sampling is performed within the search interval of each hyperparameter to be optimized. For example, the search interval for the k-th hyperparameter to be optimized corresponding to the q-th cell subpopulation is B. q,k =[a q,k ,b q,k ], where a q,k b is the lower bound of the search interval for the k-th hyperparameter to be optimized corresponding to the q-th cell subpopulation. q,k Let be the upper bound of the search interval for the k-th hyperparameter to be optimized corresponding to the q-th cell subpopulation. The k-th component can be in a q,k to b q,k Uniform sampling is performed across the sample. If the k-th hyperparameter to be optimized is an integer hyperparameter, it is rounded after sampling and restricted to the range of valid integers; if the k-th hyperparameter to be optimized is a logarithmic-scale hyperparameter, it is uniformly sampled on the logarithmic scale and then mapped back to the actual numerical scale. The initial candidate hyperparameter vector obtained in this way naturally satisfies the search range constraint of the corresponding cell subpopulation.

[0109] (2) Run the single-cell multi-omics fusion model on the candidate hyperparameter vectors of each subpopulation to obtain the fusion embedding representation and calculate the fitness value of the candidate hyperparameter vectors.

[0110] The fitness value is calculated by combining the local neighborhood preservation score of cell subpopulation, the global cluster separation score, and the modality contribution balance score.

[0111] To use the u-th candidate hyperparameter vector in the q-th subpopulation The fusion embedding representation (size N×D) obtained after running the single-cell multi-omics fusion model z In fusion embedding representation In the process, select the nearest K for the i-th cell. eval 1 neighbor, to obtain the merged neighbor set. , where K eval The number of neighbors used in fitness evaluation is set to 30. The merged neighbor set is calculated. With the multimodal nearest neighbor set M i The overlap ratio, and according to the cell neighborhood consistency weight γ i The formula for calculating the weighted average, local neighborhood-preserving score is:

[0112] in, For the q-th cell subpopulation in the fusion embedding representation The local neighborhood preservation score is used to evaluate the ability of candidate hyperparameter vectors to preserve the cross-modal stable neighborhood of the cell subpopulation.

[0113] For fusion embedding representation Perform cell clustering, using one of the following clustering methods: Leiden clustering, Louvain clustering, or K-means clustering, and calculate the Davidsonburg index. A smaller value indicates a more compact cell cluster and a more pronounced separation between different cell clusters. The Davidson-Borgin index is then converted into a global cluster separation score. The formula is: ; in, For fusion embedding representation The corresponding global clustering separation score indicates that the higher the value, the better the separation of the cell population represented by the fusion embedding.

[0114] The modal contribution balance score can prevent excessive weighting of a single modality from suppressing information from other modalities. The formula for calculating the modal contribution balance score is: ; in, The modal contribution balance score is assigned to the candidate hyperparameter vector. A larger value indicates a more balanced fusion weight for each modality. ε ω To calculate the stability constant for the modal weight entropy and prevent log0 from appearing in the logarithm calculation, it is set to 10⁻⁸. Let be the fusion weight of the u-th candidate hyperparameter vector in the q-th subpopulation of the candidate hyperparameter vectors in the m-th mode of the t-th generation.

[0115] The fitness value is obtained by weighting the local neighborhood preservation score of the cell subpopulation, the global cluster separation score, and the modality contribution balance score, as shown in the formula: ; in, Candidate hyperparameter vector The corresponding fitness value is used to evaluate the quality of the fusion embedding representation generated by the candidate hyperparameter vectors, λ. R A local neighborhood preservation weight, used to control the contribution of local structure preservation of cell subpopulation to fitness value, is set to 0.6, λ. C λ is the global clustering separation weight, used to control the contribution of global cell cluster segregation to the fitness value, set to 0.3. E A modal contribution balancing weight is assigned to control the contribution of modal fusion weight balance to the fitness value, and is set to 0.1, λ. R +λ C +λ E =1.

[0116] In one implementation, if cell type labels or batch labels exist in single-cell multi-omics data, the cell type consistency index or batch mixture index is normalized and added to the fitness value calculation, and the evaluation weights are adjusted.

[0117] (3) Record the candidate hyperparameter vectors that have been evaluated in the current evolutionary generation of each subpopulation, and construct the normalized distribution of historical hyperparameter solutions.

[0118] Let be the set of historical candidate hyperparameter vectors for the q-th subpopulation up to generation t, recording the candidate hyperparameter vectors already explored by the q-th subpopulation. Histograms are constructed from the historical candidate hyperparameter vectors according to the dimensions of the hyperparameters to be optimized. For the k-th hyperparameter to be optimized, the search interval B corresponding to the q-th cell subpopulation is... q,k =[a q,k ,b q,k Divided into B hist There are two equal-width intervals, where B hist This represents the number of histogram intervals, used to control the statistical granularity of historical distribution; it is set to 10.

[0119] Count the number of times the historical candidate hyperparameter vector falls into each interval. Add the distribution smoothing constant ε to the count for each interval. h To prevent empty intervals from causing instability in subsequent divergence calculations, the value is set to 10. -6 Divide the number of occurrences in each interval by the total number of occurrences to obtain the normalized histogram of the k-th hyperparameter to be optimized. Concatenate the normalized histograms of all the hyperparameters to be optimized in a fixed order to obtain the normalized distribution of the historical hyperparameter solutions of the q-th subpopulation up to the t-th generation. .

[0120] In this way, It can simultaneously reflect the historical search position and search concentration of the q-th subpopulation in each dimension of the hyperparameters to be optimized.

[0121] (4) Calculate the distribution similarity between the normalized distributions of historical hyperparameter solutions of different subpopulations to determine the migration probability of elite individuals.

[0122] The average distribution of the normalized distribution of two historical hyperparameter solutions The calculation formula is: ; Where q1 is the subpopulation index receiving elite individuals, identifying the target subpopulation for information migration, and q2 is the subpopulation index providing elite individuals, identifying the source subpopulation for information migration. Let be the normalized distribution of the average historical hyperparameter solutions of the q1-th and q2-th subpopulations in generation t.

[0123] Based on the average distribution The formula for calculating the Jensen-Shannon divergence is: ; in, The Jansen-Shannon divergence of the q1-th and q2-th subpopulations in generation t measures the difference between the normalized distributions of two historical hyperparameter solutions. || is the separator in the distribution difference calculation, distinguishing the two normalized distributions involved in the Jansen-Shannon divergence calculation. D KL (·‖·) is used for relative entropy calculation, which measures the difference between one distribution and another.

[0124] To facilitate mapping the Jensen-Shannon divergence to the migration probability, Normalized to the range of 0 to 1, the smaller the value, the more similar the hyperparameter regions explored by the two subpopulations are, and the larger the value, the more obvious the differences in the hyperparameter regions explored by the two subpopulations are.

[0125] The crossover probability of elite migration from the q2th subpopulation to the q1th subpopulation is obtained using the Jansen-Shannon divergence formula: ; in, The crossover probability for elite individual migration from the q2th subpopulation to the q1th subpopulation is used to control the intensity of information sharing between different subpopulations.

[0126] The larger the value, the more similar the historical search areas of the two subpopulations are, and the easier it is for elite individuals to migrate. The smaller the value, the more significant the difference in historical search areas between the two subpopulations. Migration should be reduced to preserve the exclusive search directions of different cell subpopulations.

[0127] (5) Perform elite individual migration based on the elite individual migration probability, and apply boundary constraints to the migrated elite individuals.

[0128] For each subpopulation (q1, q2), generate a random number r in the range of 0 to 1. rand To determine whether to proceed with the elite migration. If the candidate hyperparameter vector with the highest fitness value is selected from the q2th subpopulation as the source elite individual, then the source elite individual is migrated to the q1th subpopulation; if If so, elite migration between subpopulations will not be performed.

[0129] In one implementation, migration is accomplished using a direct replacement method. The candidate hyperparameter vector with the highest fitness value in the q2-th subpopulation is copied to the q1-th subpopulation, replacing the candidate hyperparameter vector with the lowest fitness value in the q1-th subpopulation.

[0130] In another implementation, migration is accomplished using a linear fusion approach. The source elite individuals are proportionally fused with the low-fitness candidate hyperparameter vectors from the q1-th subpopulation to obtain the migration candidate hyperparameter vector. The migration fusion coefficient is η. mig The contribution of source elite individuals to the migration candidate hyperparameter vector is controlled and set to 0.7. The migration candidate hyperparameter vector is calculated by multiplying the source elite individual by η. mig In addition, the low-fitness candidate hyperparameter vector of the receiving subpopulation is multiplied by 1-η. mig The linear fusion approach reduces abrupt changes in search direction caused by direct migration.

[0131] After the migration is complete, check dimension by dimension whether the candidate hyperparameter vector after the migration falls into the cell subpopulation level search space corresponding to the q1th subpopulation. If a component of a hyperparameter to be optimized is less than the lower bound of the corresponding search interval, then that component is set as the lower bound of the corresponding search interval; if a component of a hyperparameter to be optimized is greater than the upper bound of the corresponding search interval, then that component is set as the upper bound of the corresponding search interval; if a hyperparameter to be optimized is an integer hyperparameter, then rounding is performed; if a hyperparameter to be optimized is a modality fusion weight, then non-negative pruning and normalization are performed. Boundary constraints ensure that the candidate hyperparameter vector after migration still conforms to the search prior of the cell subpopulation corresponding to the receiving subpopulation.

[0132] For example, if both the q1-th and q2-th subpopulations focus on searching regions with low diffusion depth and high gating sparsity thresholds, their historical hyperparameter solutions have similar normalized distributions, smaller Jansen-Shannon divergence, and higher probability of elite individuals migrating. In this case, the current optimal candidate hyperparameter vector in the q2-th subpopulation can be migrated to the q1-th subpopulation. If the q1-th subpopulation mainly searches regions with high gene expression modality fusion weights, while the q2-th subpopulation mainly searches regions with low gene expression modality fusion weights, their historical hyperparameter solutions have significantly different normalized distributions, reducing the probability of elite individuals migrating and thus preventing over-assimilation of the search directions of different cell subpopulations.

[0133] Distribution-aware crossover ensures that subpopulations with similar search directions can efficiently share elite individuals, significantly reducing the risk of premature convergence.

[0134] like Figure 4 The diagram illustrates an exemplary weighted average local structure sensitivity at the cell subpopulation level, comparing the weighted average local structure sensitivity of different cell subpopulations to each hyperparameter to be optimized. Different colored bars represent different cell subpopulations, and each subpopulation exhibits significant differences in sensitivity to different hyperparameters.

[0135] S4. For each subpopulation, retain the elite individuals unchanged, implement mutation suppression on non-elite mutated individuals based on the cell-level hyperparameter sensitivity matrix, update the subpopulation, iterate and optimize until the convergence condition is met, and output the final hyperparameter configuration.

[0136] In the early stages of evolutionary optimization, the fitness differences between candidate hyperparameter vectors are small, requiring a larger mutation amplitude to explore a wider search region; in the later stages of evolutionary optimization, a few high-fitness candidate hyperparameter vectors gradually become dominant, requiring a smaller mutation amplitude for local fine-tuning.

[0137] Therefore, this application determines elite retained individuals and non-elite mutated individuals based on the fitness value of each subpopulation in the current generation. For non-elite mutated individuals, the standard deviation of Gaussian mutation is dynamically adjusted according to the population fitness entropy for mutation operation. At the same time, sensitivity ratio is combined to achieve dimensional mutation suppression of the hyperparameters to be optimized. The integration of elite retention and entropy perception mechanisms completes the iterative optimization of hyperparameters to obtain the final hyperparameters, including the following steps: (1) In the current generation of each subpopulation, elite retained individuals and non-elite variant individuals in the candidate hyperparameter vector are determined based on fitness values.

[0138] The set of all candidate hyperparameter vectors in the q-th subpopulation and their fitness values ​​in the t-th generation is: ,Right now .in, E represents the fitness value of the u-th candidate hyperparameter vector in the q-th subpopulation at generation t. q The number of elites retained represents the number of high-fitness candidate hyperparameter vectors directly retained in each generation of the q-th subpopulation, with a value ranging from 1 to 3.

[0139] Specifically, the candidate hyperparameter vectors in the q-th subpopulation are sorted in descending order of fitness value, and the top E values ​​are retained. q One candidate hyperparameter vector is retained as an elite entity, and the remaining candidate hyperparameter vectors are mutated as non-elite entities. The elite entities do not participate in random mutation to avoid the loss of good candidate hyperparameter vectors during the mutation process.

[0140] (2) Normalize the fitness values ​​of the subpopulations to fitness percentages, and calculate the population fitness entropy based on the fitness percentages.

[0141] Since fitness values ​​may exist at different scales, the fitness values ​​are first shifted to non-negative numbers and then normalized. The fitness percentage is then calculated. The calculation formula is: ; in, Let be the fitness percentage of the u-th candidate hyperparameter vector in the q-th subpopulation at generation t, used to convert the fitness value into a probabilistic form. Let v be the minimum fitness value of the q-th subpopulation in generation t, v be the index of the summation of the candidate hyperparameter vector, and ε be the minimum fitness value of the q-th subpopulation in generation t. π To maintain the fitness ratio stability constant and prevent the numerator or denominator from being zero, it is set to 10. -8 .

[0142] Based on fitness percentage The population fitness entropy of the q-th subpopulation in generation t is calculated using the following formula: ; in, Let logU be the population fitness entropy of the q-th subpopulation in generation t, which measures the dispersion of the fitness distribution of candidate hyperparameter vectors within the subpopulation. q Normalize the entropy value to the range of 0 to 1.

[0143] If the fitness of each candidate hyperparameter vector in the q-th subpopulation is similar, the fitness is relatively even and the population fitness entropy is high, indicating that the subpopulation has not yet formed a clear dominant search region; if the fitness of a few candidate hyperparameter vectors is significantly higher, the fitness is concentrated and the population fitness entropy is low, indicating that the subpopulation has gradually converged to a high fitness region.

[0144] (3) Calculate the standard deviation of Gaussian variation at the subpopulation level based on the population fitness entropy, and dynamically adjust the Gaussian variation length according to the standard deviation of Gaussian variation at the subpopulation level.

[0145] Using the fitness entropy of the first-generation population as the initial exploration state benchmark, the ratio of the current population fitness entropy to the initial population fitness entropy is mapped to the standard deviation of Gaussian variation at the subpopulation level. The formula is: ; in, Let σ be the standard deviation of the Gaussian variation of the q-th subpopulation at the subpopulation level in generation t. min To minimize the standard deviation of the Gaussian variation, let's set it to 0.005, σ max The maximum Gaussian variation standard deviation is set to 0.08, ε e Let be the entropy normalization stability constant, set to 10. -8 , Let q be the population fitness entropy of the q-th subpopulation in the first generation, and clip(·) be the truncation function.

[0146] By dynamically adjusting the Gaussian variation length through this mapping method, the standard deviation of the subpopulation-level Gaussian variation approaches σ while maintaining high diversity in the subpopulation. max The search process tends to explore a wide range of populations; as the subpopulations gradually converge, the standard deviation of the Gaussian variation at the subpopulation level approaches σ. min The search process then shifts to local fine-grained optimization.

[0147] (4) In the cell subpopulation level search space, normalize the hyperparameter coordinates of the candidate hyperparameter vector, and perform mutation suppression on the subpopulation level Gaussian mutation standard deviation based on the sensitivity ratio to obtain the dimension level Gaussian mutation standard deviation of the hyperparameter to be optimized. Use the dimension level Gaussian mutation standard deviation to perform Gaussian mutation on the normalized hyperparameter coordinates to obtain the mutated normalized hyperparameter vector, and map the mutated normalized hyperparameter vector to the actual hyperparameter space to obtain the mutated hyperparameter to be optimized.

[0148] Because different hyperparameters to be optimized have different dimensions and search interval widths, directly applying the same standard deviation to the actual numerical scale can easily lead to excessive perturbation of some hyperparameters and excessively small perturbation of others. Furthermore, the dimensions of highly sensitive hyperparameters have a greater impact on the local neighborhood structure, and excessive random perturbation should be avoided in the later stages of evolution. This application normalizes the search space within each cell subpopulation before performing mutation, and uses a sensitivity ratio to suppress random perturbation in highly sensitive dimensions.

[0149] For the k-th component of the u-th non-elite candidate hyperparameter vector in the q-th subpopulation, first search the cell subpopulation level search space B. q,k =[a q,k ,b q,k The actual values ​​are normalized to the range of 0 to 1. The formula for calculating the normalized hyperparameter coordinates is: ; in, Let be the normalized coordinates of the u-th candidate hyperparameter vector in the q-th subpopulation on the dimension of the k-th hyperparameter to be optimized in the t-th generation. Candidate hyperparameter vector The k-th component, ε x To calculate the stability constant for normalized coordinates and prevent the search interval width from being 0, it is set to 10. -8 .

[0150] Based on the standard deviation of Gaussian variation at the subpopulation level And sensitivity ratio g q,k The formula for calculating the standard deviation of Gaussian variation at different dimensions is: ; in, Let η be the standard deviation of the dimensional Gaussian mutation of the q-th subpopulation at the t-th generation and the k-th dimension of the hyperparameter to be optimized. dim This is the dimensionality-level mutation suppression coefficient, used to control the degree to which the sensitivity ratio suppresses the mutation amplitude. Its value ranges from 0 to 1, and is set to 0.5.

[0151] When g q,k A larger value indicates that the q-th cell subpopulation is sensitive to the k-th hyperparameter to be optimized, and the standard deviation of the dimensional Gaussian variation is [value missing]. The corresponding decrease; when g q,k A smaller value indicates that the dimension has a weaker impact on the cell subpopulation, and the standard deviation of the Gaussian variation at the dimension level is [value missing]. Retain a large area to maintain exploration capabilities.

[0152] From a mean of 0 and a standard deviation of Sampling perturbation value in Gaussian distribution , Let be the random mutation perturbation of the u-th candidate hyperparameter vector in the q-th subpopulation along the dimension of the k-th hyperparameter to be optimized in the t-th generation. Add the perturbation value to the normalized hyperparameter coordinates to obtain the mutated normalized hyperparameter coordinates, as shown in the formula: ; in, The normalized hyperparameter coordinates are the result of mutation, and clip(·,0,1) is the cutoff function that restricts the normalized hyperparameter coordinates to the range of 0 to 1.

[0153] Mapping the mutated normalized hyperparameter coordinates back to the actual hyperparameter values ​​yields the mutated hyperparameters to be optimized, calculated using the following formula: ; in, This is the kth hyperparameter to be optimized after mutation.

[0154] If the k-th hyperparameter to be optimized is an integer hyperparameter, then for Perform rounding; if the k-th hyperparameter to be optimized is a logarithmic scale hyperparameter, then perform normalization, mutation, and denormalization on the logarithmic scale; if the k-th hyperparameter to be optimized is a modal fusion weight, then perform nonnegative pruning and normalization uniformly after all modal fusion weights have been mutated.

[0155] (5) The hyperparameters are iteratively optimized by integrating the elite retention strategy and the population fitness entropy perception mechanism to obtain the optimal hyperparameter configuration.

[0156] In each generation of evolution, the E with the highest fitness value in each subpopulation is retained first. q Each candidate hyperparameter vector is retained as an elite individual. Then, the elite individuals are migrated according to the distribution-aware crossover mechanism. Next, the non-elite candidate hyperparameter vectors are subjected to entropy-aware Gaussian mutation. Finally, the fitness values ​​of the mutated candidate hyperparameter vectors are recalculated and they enter the next generation of evolution.

[0157] L stop The early stopping generation threshold is set to 10 to terminate evolution prematurely when the optimal fitness value does not improve over a long period. stop The fitness improvement threshold, used to determine whether the optimal fitness value has been effectively improved in successive generations, is set to 10. -4 When the maximum evolutionary generation T is reached... max or continuous L stop The improvement in global optimal fitness value is less than Δ stop When that happens, stop evolutionary optimization.

[0158] Among all subpopulations and all generations, the candidate hyperparameter vector with the highest fitness value is selected as the final hyperparameter configuration. , where Θ * This is the final hyperparameter configuration used to control the final operation of the single-cell multi-omics fusion model. argmax is the operation that takes the candidate hyperparameter vector that maximizes the fitness value.

[0159] For example, if the fitness values ​​of a subpopulation are relatively small in the early stages of evolution, it indicates that no obviously dominant candidate hyperparameter vectors have emerged, the population fitness entropy is high, and the standard deviation of Gaussian mutation is close to the maximum standard deviation of Gaussian mutation. Candidate hyperparameter vectors will be explored extensively within the cell subpopulation-level search space. If, in the middle and later stages of evolution, most low-fitness candidate hyperparameter vectors are eliminated, and a few high-fitness candidate hyperparameter vectors gradually become dominant, the population fitness entropy decreases, and the standard deviation of Gaussian mutation gradually approaches the minimum standard deviation of Gaussian mutation. The search process will perform fine-grained adjustments around the high-fitness region.

[0160] It should be noted that the cell subpopulation-level search space provides structural priors, multiple population mechanisms maintain the search direction of different cell subpopulations, distribution-aware crossover shares superior candidate hyperparameter vectors among subpopulations with similar search directions, population fitness entropy is dynamically balanced and utilized according to evolutionary state, and dimensionality-level mutation suppression reduces excessive random perturbations in the dimensions of highly sensitive hyperparameters to be optimized. Through the above combination, this application can reduce invalid searches, lower the risk of premature convergence, and improve the quality of the final fused embedding representation in terms of cell population segregation, local neighborhood preservation, and cross-modal consistency during single-cell multi-omics fusion hyperparameter optimization.

[0161] Figure 5 The graph shows the evolutionary results of the optimal fitness of the subpopulations, recording the changes in the optimal fitness values ​​of the two subpopulations in each generation. The curve rises rapidly in the early stage of evolution, then the increase decreases and tends to stabilize in the later stage, indicating that the evolutionary optimization gradually discovers candidate hyperparameter vectors with high fitness. The multi-population entropy-aware evolutionary optimization method can effectively improve the quality of single-cell multi-omics fusion embedding representations and has good convergence performance.

[0162] Example 2: Application of Hyperparameters in Single-Cell Multi-Omics The optimized final hyperparameter configuration is applied to the full single-cell multi-omics data to generate the final fusion embedding representation, final cell clustering label, and cell-level fusion stability score.

[0163] Conventional hyperparameter optimization methods typically output only a single optimal hyperparameter combination, lacking further explanation of cell-level stability and making it difficult to distinguish between high-confidence cell populations and low-confidence cell populations sensitive to hyperparameter perturbations. This application, while outputting the final fusion result, utilizes high-fitness candidate hyperparameter vectors retained during evolution to construct a cell-level stability score. The specific steps are as follows: (1) Run the single-cell multi-omics fusion model based on the final hyperparameter configuration to obtain the final fusion embedding representation.

[0164] The final fused embedding representation Z * To configure Θ in the final hyperparameter configuration * Low-dimensional representation of full-cell mass generated under control (size N×D) z ); finally merge the adjacency matrix A * To configure Θ in the final hyperparameter configuration * The cell connectivity strength matrix generated under control has a size of N×N. The final fusion embedding representation is Z. * Used for cell clustering, cell type annotation, trajectory inference, and cross-modal alignment; ultimately fused adjacency matrix A * Used to analyze local connectivity relationships and transitional state propagation pathways between cells.

[0165] Final hyperparameter configuration Θ * The diffusion depth, number of neighborhood graphs constructed, modality fusion weights, gating sparsity threshold, and regularization strength remain unchanged and are not readjusted based on downstream tasks. This ensures that the final fused embedding representation Z remains constant. * The fitness evaluation conditions are consistent with those in the evolutionary optimization stage, thus avoiding result drift caused by parameter inconsistencies between the optimization and application stages.

[0166] (2) Perform cell clustering based on the final fusion embedding representation to obtain the final cell clustering label.

[0167] The final cell clustering label represents the i-th cell in the final fusion embedding representation Z. * The corresponding clustering category. Cell clustering methods can employ one of Leiden clustering, Louvain clustering, or K-means clustering; if Leiden or Louvain clustering is used, the final fusion embedding representation Z is first determined. * Construct a cell nearest neighbor graph, and then perform community detection on the cell nearest neighbor graph; if K-means clustering is used, first determine the number of clusters, and then perform the final fusion embedding representation Z. * Perform iterative clustering.

[0168] If known cell type marker genes or reference cell atlases exist, cell type annotation can be performed based on the expression levels of marker genes, the activity of chromatin open peak regions, or the expression levels of surface proteins in each cluster. For example, if a cluster shows high expression of CD3D, CD3E, and TRAC, and the corresponding T cell-related chromatin regions show high openness, then that cluster can be annotated as a T cell-related cluster; if a cluster shows high expression of MS4A1 and CD79A, then that cluster can be annotated as a B cell-related cluster. This is achieved through final fusion embedding representation Z. * Clustering and annotation can be performed on the same platform, which can utilize information from multiple omics modalities simultaneously and reduce erroneous annotations caused by missing zeros or noise in a single modality.

[0169] (3) Select multiple high-fitness candidate hyperparameter vectors during the evolutionary optimization process and calculate the cell-level fusion stability score.

[0170] High-fitness candidate hyperparameter vectors are selected from all subpopulations and all generations in descending order of fitness value, and duplicate or highly similar candidate hyperparameter vectors are removed. top The number of high-fitness candidate hyperparameter vectors is used to control the number of high-fitness candidate hyperparameter vectors used in stability evaluation, and is set to 10. Let b be the high-fitness candidate hyperparameter vector, where b is the index of the high-fitness candidate hyperparameter vector, with a value ranging from 1 to B. top .

[0171] Specifically, each high-fitness candidate hyperparameter vector is used separately. Running a single-cell multi-omics fusion model yields the corresponding high-fitness fusion embedding representation. For each high-fitness fusion embedding representation Perform clustering to obtain the high-fitness clustering label corresponding to the i-th cell under the b-th high-fitness candidate hyperparameter vector. The clustering method can be one of Leiden clustering, Louvain clustering, or K-means clustering. If Leiden clustering or Louvain clustering is used, the embedding representation is first fused based on high fitness. Construct a cell nearest neighbor graph, and then perform community detection on the cell nearest neighbor graph; if K-means clustering is used, first determine the number of clusters, and then fuse the embedding representation for high fitness. Perform iterative clustering.

[0172] Statistical analysis of the i-th cell in B top The proportion of the most frequently occurring tags in the second-highest fitness cluster is used as the cell-level fusion stability score. The calculation formula is: ; in, Let be the cell-level fusion stability score for the i-th cell, representing the consistency of clustering results for the i-th cell across multiple high-fitness candidate hyperparameter vectors, where c represents the clustering category index. This is an indicator function; it takes the value 1 when the condition is true and 0 when the condition is false.

[0173] Cell-level fusion stability score A higher score indicates a more stable fusion result for the i-th cell within the high-fitness hyperparameter region; cell-level fusion stability score The lower the value, the more likely the i-th cell is to be in a transitional state, a rare state, or a low-confidence cell that is significantly affected by noise.

[0174] For example, let B top =10. If the i-th cell is assigned to the same cluster category 8 times and to other cluster categories 2 times among 10 high-fitness candidate hyperparameter vectors, then the cell-level fusion stability score of this cell is calculated. =0.8; Another cell is distributed in 4 different cluster categories in 10 clusters, and the highest number of occurrences is 4. Then the cell-level fusion stability score of this cell is 0.4, indicating that the fusion affiliation of this cell is unstable. It should be marked as a low-confidence cell or examined separately in downstream analysis.

[0175] (4) Generate downstream analysis results based on the final fusion embedding representation, final cell clustering label and cell-level fusion stability score.

[0176] Downstream analysis results include cell clustering labels, cell type annotation results, cell-level fusion stability scores, cell subpopulation-level hyperparameter sensitivity results, and final hyperparameter configurations.

[0177] Final hyperparameter configuration record Θ * The specific values ​​of each hyperparameter to be optimized are specified; the sensitivity results of cell subpopulation-level hyperparameters are used to illustrate the differences in the response of different cell subpopulations to the hyperparameters to be optimized, such as diffusion depth, number of neighborhood graphs, modality fusion weights, gating sparsity threshold, and regularization strength; the cell-level fusion stability score is used to assist in screening high-confidence cells and low-confidence cells.

[0178] Specifically, a stability threshold η is set. stab If it is 0.7, Then the i-th cell is marked as a high-confidence fusion cell; if If the i-th cell is identified as a low-confidence fusion cell, then the i-th cell will be marked as such. Low-confidence fusion cells can be given priority in trajectory inference, rare cell discovery, and two-cell examination; high-confidence fusion cells can serve as the primary basis for cell type annotation and differential state analysis.

[0179] It should be noted that the output of this application is not only the final fused embedding representation Z * It also includes cell-level fusion stability scores. And cell subpopulation-level hyperparameter sensitivity results. This design allows users to determine which cell fusion results are relatively stable to the hyperparameters to be optimized, and which cell fusion results are more affected by changes in the hyperparameters to be optimized, thereby improving the interpretability and reliability of single-cell multi-omics fusion results in cell type annotation, trajectory inference, disease state comparison, and cross-modal regulatory relationship analysis.

[0180] Example 3: Hyperparameter Adaptive Optimization Device like Figure 6 The diagram shows the structure of a single-cell multi-omics hyperparameter adaptive optimization device. The hyperparameter adaptive optimization device 600 includes: a sensitivity matrix construction unit 610, a cell subpopulation space partitioning unit 620, a subpopulation construction unit 630, and an optimization unit 640.

[0181] Sensitivity matrix construction unit 610 is used to calculate the sensitivity of each cell to each hyperparameter to be optimized based on single-cell multi-omics data, and to construct a cell-level hyperparameter sensitivity matrix.

[0182] As an example, the input single-cell multi-omics data is sequentially subjected to quality control, preprocessing, and low-dimensional feature construction to generate a cell low-dimensional feature matrix corresponding to each modality. A cell nearest neighbor list is calculated for each modality's cell low-dimensional feature matrix, and a multi-modal mutual nearest neighbor set is constructed using this list. Cell neighborhood consistency weights are then calculated. The single-cell multi-omics fusion model's hyperparameter vectors to be optimized are initialized, including setting the initial search interval, baseline value, and perturbation step size for each hyperparameter. Differentiated perturbation processing strategies are applied based on the hyperparameter type, and the vectors are then used to optimize the model. The baseline hyperparameter vector, forward perturbation hyperparameter vector, and reverse perturbation hyperparameter vector are constructed using the baseline parameter values ​​and perturbation step size. Using a single-cell multi-omics fusion model, baseline fusion embedding representation, forward perturbation fusion embedding representation, and reverse perturbation fusion embedding representation are generated based on the cell's low-dimensional feature matrix. For each cell in the multimodal nearest neighbor set, the local structural sensitivity of the hyperparameter to be optimized is calculated based on the baseline fusion embedding representation, forward perturbation fusion embedding representation, and reverse perturbation fusion embedding representation. The cell-level hyperparameter sensitivity matrix is ​​obtained by traversing all cells and all hyperparameters to be optimized.

[0183] As an example, according to embodiments of this application, the hyperparameters to be optimized include at least one of diffusion depth, number of neighborhood graphs constructed, gene expression modality fusion weight, chromatin accessibility modality fusion weight, protein expression modality fusion weight, gating sparsity threshold, and regularization intensity.

[0184] The cell subgroup space partitioning unit 620 is used to cluster cells based on the cell-level hyperparameter sensitivity matrix to divide cell subgroups, determine the cell subgroup-level search center and compressed search radius corresponding to each cell subgroup, and construct the cell subgroup-level search space.

[0185] As an example, the construction of the cell subgroup-level search space includes: normalizing the cell-level hyperparameter sensitivity matrix to obtain a normalized cell-level hyperparameter sensitivity matrix; clustering cells based on the normalized cell-level hyperparameter sensitivity matrix to obtain cell subgroup labels; calculating the weighted average local structure sensitivity of each cell subgroup to each hyperparameter to be optimized based on the normalized cell-level hyperparameter sensitivity matrix, combined with the cell subgroup labels and cell neighborhood consistency weights; determining the cell subgroup-level search center of each cell subgroup in each dimension of the hyperparameter to be optimized based on anchor point evaluation; calculating the sensitivity ratio of the hyperparameter to be optimized based on the weighted average local structure sensitivity; compressing the search radius corresponding to each cell subgroup based on the sensitivity ratio of the hyperparameter to be optimized; and constructing the cell subgroup-level search space with the cell subgroup-level search center as the center and based on the compressed search radius.

[0186] The subpopulation construction unit 630 is used to construct subpopulations in each of the cell subpopulation-level search spaces and perform elite migration between different subpopulations.

[0187] As an example, elite migration is achieved through the following steps: Initialize candidate hyperparameter vectors for each subpopulation based on the cell subpopulation-level search space; run a single-cell multi-omics fusion model on the candidate hyperparameter vectors of each subpopulation to obtain fused embedding representations and calculate the fitness values ​​of the candidate hyperparameter vectors; record the candidate hyperparameter vectors evaluated for each subpopulation up to the current generation and construct a normalized distribution of historical hyperparameter solutions; calculate the distribution similarity between the normalized distributions of historical hyperparameter solutions of different subpopulations and determine the migration probability of elite individuals accordingly; perform distribution-aware crossover based on the migration probability of elite individuals and apply boundary constraints to the migrated elite individuals.

[0188] The optimization unit 640 is used to retain the elite candidate hyperparameter vector unchanged for each subpopulation, implement mutation suppression on the non-elite candidate hyperparameter vector based on the cell-level hyperparameter sensitivity matrix, update the subpopulation, iterate and optimize until the convergence condition is met, and output the final hyperparameter configuration.

[0189] As an example, mutation suppression includes: normalizing the fitness values ​​of the subpopulation to fitness proportions, and calculating the population fitness entropy based on the fitness proportions; calculating the subpopulation-level Gaussian mutation standard deviation based on the population fitness entropy; normalizing the hyperparameter coordinates of the candidate hyperparameter vectors within the cell subpopulation-level search space, and performing mutation suppression on the subpopulation-level Gaussian mutation standard deviation based on the sensitivity proportion to obtain the dimension-level Gaussian mutation standard deviation of the hyperparameter to be optimized; performing Gaussian mutation on the normalized hyperparameter coordinates using the dimension-level Gaussian mutation standard deviation to obtain the mutated normalized hyperparameter vector; and mapping the mutated normalized hyperparameter vector to the actual hyperparameter space.

[0190] The optimization unit 640 also includes an elite retention strategy and a population fitness entropy awareness mechanism to iteratively optimize hyperparameters and obtain the optimal hyperparameter configuration. In each generation of evolution, the top E with the highest fitness values ​​in each subpopulation q are first retained. q Each candidate hyperparameter vector is retained as an elite individual. Then, the elite individuals are migrated according to the distribution-aware crossover mechanism. Next, the non-elite candidate hyperparameter vectors are subjected to entropy-aware Gaussian mutation. Finally, the fitness values ​​of the mutated candidate hyperparameter vectors are recalculated and they enter the next generation of evolution.

[0191] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Any modifications or equivalent substitutions made within the spirit and principles of this application should be included within the protection scope of this application.

Claims

1. A single-cell multi-omics hyperparameter adaptive optimization method, characterized in that, include: Based on single-cell multi-omics data, the sensitivity of each cell to each hyperparameter to be optimized is calculated, and a cell-level hyperparameter sensitivity matrix is ​​constructed. Based on the cell-level hyperparameter sensitivity matrix, cells are clustered to divide cell subgroups, and the cell subgroup-level search center and compressed search radius corresponding to each cell subgroup are determined to construct the cell subgroup-level search space. In each of the cell subpopulation-level search spaces, a subpopulation is constructed, and elite migration is performed between different subpopulations; For each subpopulation, the elite individuals are retained unchanged. Based on the cell-level hyperparameter sensitivity matrix, mutation suppression is applied to non-elite mutated individuals, and the subpopulation is updated. The optimization is iterated until the convergence condition is met, and the final hyperparameter configuration is output.

2. The method according to claim 1, characterized in that, The calculation of the cell-level hyperparameter sensitivity matrix includes: The input single-cell multi-omics data is subjected to quality control, preprocessing, and low-dimensional feature construction to obtain the cell low-dimensional feature matrix corresponding to each modality; Based on the low-dimensional feature matrix of cells corresponding to each modality, a cell nearest neighbor list is constructed. The cell nearest neighbor list is used to establish a multimodal mutual nearest neighbor set and the cell neighborhood consistency weight is calculated. The initialization of the hyperparameter vector to be optimized includes setting the initial search range, baseline value and perturbation step size for each hyperparameter to be optimized, applying differentiated perturbation processing strategies according to the hyperparameter type, and constructing baseline hyperparameter vector, forward perturbation hyperparameter vector and reverse perturbation hyperparameter vector based on the baseline value and perturbation step size. Using a single-cell multi-omics fusion model and a low-dimensional cell feature matrix, baseline fusion embedding representations, forward perturbation fusion embedding representations, and reverse perturbation fusion embedding representations are generated. For each cell within the multimodal nearest neighbor set, the local structural sensitivity of each hyperparameter to be optimized is calculated based on the baseline fusion embedding representation, the forward perturbation fusion embedding representation, and the reverse perturbation fusion embedding representation. The cell-level hyperparameter sensitivity matrix is ​​obtained by traversing all cells and all hyperparameters to be optimized.

3. The method according to claim 2, characterized in that, The hyperparameters to be optimized include at least one of diffusion depth, number of neighborhood graphs constructed, gene expression modality fusion weight, chromatin accessibility modality fusion weight, protein expression modality fusion weight, gating sparsity threshold, and regularization intensity.

4. The method according to claim 1, characterized in that, The process of constructing the cell subpopulation-level search space includes: The cell-level hyperparameter sensitivity matrix is ​​normalized to obtain the normalized cell-level hyperparameter sensitivity matrix. Cell clustering is performed based on the normalized cell-level hyperparameter sensitivity matrix to obtain cell subgroup labels; By combining cell subpopulation labels and cell neighborhood consistency weights, and based on the normalized cell-level hyperparameter sensitivity matrix, the weighted average local structure sensitivity of each cell subpopulation to each hyperparameter to be optimized is calculated. Anchor point evaluation is used to determine the cell subpopulation-level search center for each cell subpopulation in each dimension of the hyperparameter to be optimized. The sensitivity ratio of the hyperparameters to be optimized is calculated based on the weighted average local structure sensitivity. The search radius corresponding to each cell subpopulation is compressed based on the sensitivity ratio of the hyperparameters to be optimized. The cell subpopulation-level search space is constructed with the cell subpopulation-level search center as the center and the compressed search radius.

5. The method according to claim 1, characterized in that, The process of constructing subpopulations in each of the cell subpopulation-level search spaces and performing elite migration between different subpopulations includes: Based on the cell subpopulation level search space, initialize the candidate hyperparameter vector for each subpopulation; For each subpopulation, a single-cell multi-omics fusion model is run on the candidate hyperparameter vectors to obtain the fusion embedding representation, and the fitness value of the candidate hyperparameter vectors is calculated. Record the candidate hyperparameter vectors that have been evaluated in the current evolutionary generation of each subpopulation, and construct a normalized distribution of historical hyperparameter solutions; Calculate the distribution similarity between the normalized distributions of historical hyperparameter solutions of different subpopulations to determine the migration probability of elite individuals; Elite individual migration is performed based on the migration probability of elite individuals, and boundary constraints are applied to the migrated elite individuals.

6. The method according to claim 1, characterized in that, The method for determining elite individuals and non-elite variant individuals is as follows: The top E with the highest fitness values ​​in the subpopulation q One candidate hyperparameter vector is retained as an elite individual, and the remaining candidate hyperparameter vectors are mutated as non-elite individuals.

7. The method according to claim 1, characterized in that, The method of suppressing mutations in non-elite mutant individuals based on the cell-level hyperparameter sensitivity matrix includes: The fitness values ​​of the subpopulations are normalized to fitness percentages, and the population fitness entropy is calculated based on the fitness percentages. Calculate the standard deviation of Gaussian variation at the subpopulation level based on the population fitness entropy; Within the cell subpopulation level search space, the hyperparameter coordinates of the candidate hyperparameter vectors are normalized, and mutation suppression is applied to the subpopulation level Gaussian mutation standard deviation based on the sensitivity ratio to obtain the dimension level Gaussian mutation standard deviation of the hyperparameter to be optimized. Gaussian mutation is then performed on the normalized hyperparameter coordinates using the dimension level Gaussian mutation standard deviation to obtain the mutated normalized hyperparameter vector, and the mutated normalized hyperparameter vector is mapped to the actual hyperparameter space.

8. The method according to claim 1, characterized in that, The optimization method further includes: The optimized final hyperparameter configuration is applied to the full single-cell multi-omics data to generate the final fusion embedding representation, final cell clustering label, and cell-level fusion stability score.

9. The method according to claim 8, characterized in that, The cell-level fusion stability score is obtained through the following steps: Multiple high-fitness candidate hyperparameter vectors are selected during the evolutionary optimization process; For each high-fitness candidate hyperparameter vector, run a single-cell multi-omics fusion model to obtain a high-fitness fusion embedding representation; Clustering is performed on the high-fitness fusion embedding representation to obtain a high-fitness cluster label set; The proportion of the most frequently occurring tags in the high-fitness cluster is used as the cell-level fusion stability score.

10. A single-cell multi-omics hyperparameter adaptive optimization device, characterized in that, include: The sensitivity matrix construction unit is used to calculate the sensitivity of each cell to each hyperparameter to be optimized based on single-cell multi-omics data, and to construct a cell-level hyperparameter sensitivity matrix. The cell subgroup space partitioning unit is used to cluster cells based on the cell-level hyperparameter sensitivity matrix to divide cell subgroups, determine the cell subgroup-level search center and compressed search radius corresponding to each cell subgroup, and construct the cell subgroup-level search space. A subpopulation construction unit is used to construct subpopulations in each cell subpopulation-level search space and perform elite migration between different subpopulations; The optimization unit is used to retain elite individuals unchanged for each subpopulation, implement mutation suppression on non-elite mutated individuals based on the cell-level hyperparameter sensitivity matrix, update the subpopulation, iterate and optimize until the convergence condition is met, and output the final hyperparameter configuration.