Federal learning classification system and method for protecting privacy of single-cell RNA sequencing data

By employing a federated learning framework that integrates adaptive data preprocessing, dynamic collaborative training of multiple models, and secure encrypted communication, the problems of privacy protection and high resource consumption in single-cell RNA sequencing data classification are addressed. This enables efficient and secure multi-party data joint analysis, improving classification accuracy and system adaptability.

CN121983144APending Publication Date: 2026-05-05JIANGSU TIANBEIFENG AGRICULTURAL TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
JIANGSU TIANBEIFENG AGRICULTURAL TECHNOLOGY CO LTD
Filing Date
2025-12-04
Publication Date
2026-05-05

AI Technical Summary

Technical Problem

Existing technologies for classifying single-cell RNA sequencing data suffer from problems such as insufficient privacy protection, poor algorithm adaptability, high resource consumption, reliance on human experience for model training strategies, and difficulty in managing heterogeneous clients, making it difficult to achieve joint analysis of multi-party data.

Method used

We employ a federated learning framework that integrates adaptive data preprocessing, dynamic collaborative training of multiple models, causal inference evaluation, hierarchical compressed communication, and secure multi-party computation. By combining Transformer encoders, graph convolutional networks, and capsule attention networks, we achieve data privacy protection and efficient model training through adaptive data processing, dynamic model switching, causal effect evaluation, and secure encrypted communication.

Benefits of technology

It significantly improves the system's adaptability and classification accuracy to single-cell RNA sequencing data, reduces communication overhead, enhances the model's intelligence and stability, ensures data privacy and security, is suitable for resource-constrained environments, and supports joint data analysis across institutions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121983144A_ABST
    Figure CN121983144A_ABST
Patent Text Reader

Abstract

The invention discloses a federated learning classification system and method for protecting privacy of single-cell RNA sequencing data, and relates to the technical field of data privacy classification. The scRNA-seq data are standardized, and features are enhanced through comparative learning and an auto-encoder; the multi-model dynamic collaborative training module supports dynamic switching of models such as a graph convolutional network and a cross-modal Transform according to data features; the causal inference intelligent evaluation module recommends an optimal model through a three-level evaluation system and a deep Q network; the layered compression communication optimization module adopts a three-stage compression strategy to reduce communication traffic; and the security multi-party computing privacy protection module integrates encryption and differential privacy mechanisms to guarantee data security. The single-cell RNA sequencing data federal learning classification method supports multi-model dynamic adaptation, improves classification precision and system universality, reduces communication overhead, adapts to heterogeneous clients, guarantees data privacy, and achieves efficient and safe single-cell RNA sequencing data federal learning classification.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of data privacy classification technology, and in particular to a federated learning classification system and method for protecting the privacy of single-cell RNA sequencing data. Background Technology

[0002] With the rapid development of bioinformatics, single-cell RNA sequencing (scRNA-seq) technology has become a key tool for studying cellular heterogeneity, disease mechanisms, and advancing precision medicine. This technology can precisely characterize gene expression profiles at the single-cell level and is widely used in many important scenarios such as immune cell analysis, cancer subtyping, and stem cell development trajectory research. By classifying and modeling large-scale, high-dimensional scRNA-seq data, automatic cell type identification can be achieved, thereby promoting the deep integration of basic biological research and clinical applications.

[0003] In practical applications, to improve the accuracy and generalization ability of classification models, research institutions often seek to integrate data from multiple experimental platforms, different tissue sources, or different institutions. However, scRNA-seq data contains individual gene expression characteristics and is considered highly sensitive biological privacy data, subject to strict laws and regulations such as the General Data Protection Regulation (GDPR) and the Health Insurance Portability and Accountability Act (HIPAA). This makes directly aggregating raw data for modeling face significant privacy risks and compliance challenges, necessitating a technical solution that can both protect data privacy and enable collaborative analysis of multi-source data.

[0004] In recent years, federated learning, as a collaborative modeling approach that allows data to remain locally, has become an important pathway for exploring multi-party joint analysis in the biomedical field. However, existing technologies have several shortcomings when applied to scRNA-seq data classification: They lack a unified federated learning framework adapted to single-cell sequencing technologies, making it difficult to address the algorithm selection needs arising from the heterogeneity of data distribution across different institutions; they lack mechanisms for comparing and selecting algorithm performance, with model training strategies and algorithm selection relying excessively on human experience, hindering automatic optimization; they provide insufficient support for federated processing of complex Transformer-like models, resulting in large parameter counts, long training times, and high communication costs, making them unsuitable for deployment in resource-constrained scenarios; and they lack dynamic management mechanisms for heterogeneous clients, making it difficult to adapt to changes in the number of clients, uneven data sources, and differences in computing resources, easily leading to unstable model performance or aggregation failure. Summary of the Invention

[0005] The present invention proposes a federated learning classification system and method for protecting the privacy of single-cell RNA sequencing data, in order to solve the problems mentioned in the prior art.

[0006] To achieve the above objectives, the present invention employs the following technical solution: a federated learning classification system for single-cell RNA sequencing data privacy protection, comprising: The adaptive data preprocessing module performs counts per million (CPM) normalization on the raw single-cell RNA sequencing data, transforms it to log2(CPM+1), and enhances feature representation through a contrastive learning framework: 15% of gene expression values ​​are randomly masked as negative samples, a Siamese network is constructed using a six-layer Transformer encoder, and the cell type discrimination feature is enhanced using a normalized temperature-scaled cross-entropy loss (NT-Xent) loss function. For data with more than 8000 genes, dimensionality reduction is achieved through a clustering autoencoder, which consists of 2048, 1024, and 512-dimensional fully connected layers. KL divergence regularization is used to control the reconstruction error to within 4.2%. At the same time, the preservation of cell cluster structure is visualized and verified through t-distributed stochastic neighbor embedding (t-SNE). Multi-model dynamic collaborative training module: Supports parallel training and adaptive switching of four models: a graph convolutional network based on gene co-expression relationships, an ensemble model with dynamically adjusted tree depth (eXtreme Gradient Boosting, XGBoost), a capsule attention network with two capsule layers and adjusted routing iterations to 4 based on data sparsity, and a four-layer cross-modal Transformer encoder incorporating maps of 100+ known cell biomarkers; The built-in model router makes dynamic decisions based on the difference between the input data distribution and the data distribution adapted to each candidate model, using Wasserstein distance and data sparsity: when the distance is greater than 0.7 and the sparsity is greater than 0.8, the cross-modal Transformer is activated; when the distance is less than 0.3 and the sparsity is less than 0.5, the graph convolutional network is selected; the optimal model is selected through Bayesian optimization in the intermediate region. Causal inference evaluation module: A three-layer evaluation system is constructed. The statistical significance layer uses the Benjamini-Hochberg correction control test and the Wilcoxon test is used to evaluate the model's F1-score. The causal effect layer uses Do-Calculus to calculate the causal effect value of the model for cell type, and triggers the model isolation mechanism when CATE is less than 0. The resource efficiency layer generates the computing power-accuracy Pareto curve through multi-objective optimization. The evaluation results are input into a deep Q network, and automated model recommendation is achieved through an ε-greedy strategy.

[0007] Furthermore, it also includes: Layered compression communication optimization module: Parameter sparsity technique, employing L1 regularization to sparsify neural network parameters by adding an L1 norm term to the loss function. ,in The total loss function of the model, The original loss function, The regularization coefficient is . Using the L1 norm forces the model parameters to generate a large number of zero values, significantly reducing the number of valid parameters that need to be transmitted; the client only uploads the indexes of non-zero parameters and their corresponding values, and the server generates a global consensus index by aggregating the index sets of all clients, and then broadcasts it to each client to recover the complete gradient; Specifically, it includes: Input layer: Paillier homomorphic encryption technology is used to encrypt the input data. The encryption formula is as follows: ,in For the modulus, Plain text data Use random numbers; implement standardized calculation of raw data in encrypted state; Training layer: Based on obfuscated circuit technology of secure multi-party computation (MPC), the client encrypts the sparsed gradients before uploading, and the server directly performs addition aggregation in the encrypted state. ,in This represents the average gradient across all clients. Mean gradient The encrypted form, This represents the local gradient calculated by the i-th client. Represents the local gradient of the i-th client. The encrypted form of the expression, where m represents the total number of clients participating in this aggregation. It is the ciphertext space modulus of Paillier encryption, and the legality of the client parameter update is verified through non-interactive zero-knowledge proof; Output layer: A differential privacy-enhancing noise injection strategy is adopted. Before gradient encryption, noise following a Laplace distribution is added to each non-zero parameter. ,in For sensitivity, For privacy budgeting; combining cell type rarity quantification, calculate using frequency statistics. ,in The global average frequency, The value ranges from [0,1], with larger values ​​indicating rarer cell types; and is correlated with gene expression sparsity. Combined Implement dynamic privacy budget allocation, when Increase noise intensity; generate the optimal balance between computing power, privacy, and accuracy through Pareto optimization; Decryption and verification phase: The client uses its private key to decrypt the aggregated results and verify consistency to prevent malicious server tampering.

[0008] Furthermore, the multi-model dynamic collaborative training module integrates a cross-institutional knowledge transfer mechanism. When the client's data volume is less than 500 cells, it automatically triggers federated transfer learning to extract graph topological features of the graph convolutional network from the source domain with sufficient data, and extracts graph topological features of the graph convolutional network (GCN) model from the source domain. It aligns the target domain distribution and reduces domain differences by using an adversarial domain adaptation (ADA) algorithm that includes a gradient inversion layer. The target domain refers to the client's own dataset. The aligned features are input into the local model of the target domain, and supervised fine-tuning is performed using a small amount of target domain data to solve the modeling bias problem caused by insufficient samples of rare cell types.

[0009] Furthermore, the causal inference assessment module constructs a cell type-model causal graph and uses a structural causal model (SCM) to analyze the causal effect path of the model on cell type. When it is found that the model indirectly causes classification bias through gene expression noise reduction, the model correction mechanism is automatically triggered.

[0010] Furthermore, the hierarchical compression communication optimization module introduces a neural network parameter predictor, which predicts the parameter changes in the current round based on the parameter update patterns of the previous three rounds, and the residual prediction error between the transmitted actual parameters and the predicted values ​​is dynamically corrected by Kalman filtering.

[0011] Furthermore, the secure multi-party computation privacy protection module develops a model verification mechanism based on zero-knowledge proof (ZKP). The server verifies the legality of the client's parameter updates through non-interactive zero-knowledge proof (NIZK), while ensuring that the parameter updates strictly comply with the federated learning training process.

[0012] Furthermore, the cross-modal Transformer integrated gene expression-spatial location joint representation in the multi-model dynamic collaborative training module, when the client has spatial transcriptome data, fuses local association information of cells within a 50μm radius through an attention mechanism. Here, an adaptive graph convolutional network generates a neighborhood weight matrix between cells, which serves as the input to the Transformer attention layer to regulate the association strength weights of different cells, thereby connecting graph network features with Transformer sequence modeling, enhancing the fusion effect of local cell interaction information, improving the accuracy of spatial location-related cell type classification, and meeting the joint analysis needs of spatial transcriptome and single-cell sequencing data.

[0013] A method for using a privacy-preserving federated learning classification system for single-cell RNA sequencing data, comprising: Self-supervised feature enhancement steps: CPM normalization and log2 transformation are performed on scRNA-seq data. A 15% gene mask is used as a negative sample through a contrastive learning framework. A Siamese network is constructed using a six-layer Transformer encoder. The contrastive loss is calculated using the NT-Xent loss function to enhance cell type discrimination features. For high-dimensional data, the dimensionality is reduced to 512 dimensions through a deep clustering autoencoder, and the cell cluster structure is preserved through t-SNE visualization. The heterogeneous model dynamic training steps are as follows: Calculate the difference between the input data distribution of the local data and the data distribution adapted by each candidate model, using the Wasserstein distance and sparsity. When the distance is >0.7 and the sparsity is >0.8, the cross-modal Transformer is selected. When the distance is <0.3 and the sparsity is <0.5, the GraphSAGE aggregator is used. In the middle region, the Dynamic Tree Ensemble Model (DyTree) or Capsule Attention Network (CAN) is selected through Bayesian optimization. Each training round uses the Adam optimizer to perform one iteration. Causal inference evaluation steps: Benjamini-Hochberg correction is used to control multiple tests, the p-value of the Wilcoxon test for the model F1-score is calculated, a causal graph is constructed using Do-Calculus to calculate CATE, and the model is isolated when CATE < 0; a recommendation decision is generated through a Deep Q-Network (DQN), and the ε-greedy strategy decays exponentially from 0.8 to 0.1. Layered compression communication steps: The client performs L0 regularization on the parameters to filter the top-20% gradients, implements local sensitive hashing on the Transformer attention weights, weak computing power nodes are aggregated in three rounds, and the server compensates through historical parameter interpolation. Secure computation steps: The input layer uses Paillier encryption to perform ciphertext CPM computation, the training layer completes Secure Multi-Party Computation (MPC) aggregation through a confusion circuit, the output layer adds differential privacy noise, and the optimal privacy budget is generated through Pareto optimization.

[0014] Furthermore, in the self-supervised feature enhancement step, dynamic time warping is used to align cell differentiation trajectories on time series data, the trajectory alignment weights are adjusted according to the differences in differentiation stages, and the similarity of cell features at the same stage is improved by weighting through a contrast loss function, which is suitable for research scenarios that track the dynamic process of cell differentiation.

[0015] Furthermore, in the hierarchical compression communication step, a Long Short-Term Memory (LSTM) parameter predictor is used to learn the parameter update pattern of the first three rounds. The prediction error of the transmitted residual data is corrected by Kalman filtering. At the same time, the number of communication rounds is reduced to improve the participation efficiency of clients with weak computing power and support the deployment of federated learning scenarios.

[0016] Compared with existing technologies, the beneficial effects of this invention are: The system supports dynamic switching between various mainstream algorithms, such as support vector machines, gradient boosting decision trees, fully connected neural networks, and Transformers, within the same federated framework through a multi-model adaptation mechanism. Clients can flexibly select the most suitable classifier based on local data characteristics, significantly improving the system's adaptability to scRNA-seq data heterogeneity and different task requirements, and greatly enhancing the algorithm's versatility.

[0017] The classifier performance evaluation and recommendation module incorporates statistical significance testing and deep Q-networks, enabling scientific comparison of the prediction performance of different classifiers and automatic recommendation of the optimal model structure. This reduces reliance on human experience in model selection, improves model classification accuracy, enhances the intelligence and adaptability of the training system, and makes classification results more accurate and reliable.

[0018] In terms of communication efficiency optimization, simplified communication strategies, lightweight parameter integration, and hierarchical compressed communication are adopted to significantly reduce communication overhead, making the system suitable for application environments with limited computing power, such as edge nodes and weak computing institutions. This reduces deployment costs, improves training speed, and facilitates promotion and application in ordinary institutions.

[0019] The client scheduling and management module supports dynamic joining, leaving and state switching of clients, which effectively solves the problem of poor adaptability of traditional federated learning methods under the assumption of client homogeneity, and makes the system more flexible and stable in complex scenarios such as multi-center collaborative research and cross-regional hospital joint modeling.

[0020] The secure multi-party computation privacy protection module integrates multiple privacy enhancement mechanisms. While ensuring data privacy complies with regulations such as GDPR and HIPAA, it keeps the loss of classification accuracy to a low level, achieving a balance between privacy protection and model performance, and providing strong protection for the secure joint analysis of scRNA-seq data.

[0021] In summary, the technology presented in this application achieves an intelligent upgrade of the entire process from data collection and precise control to effect evaluation, significantly improving the efficiency and quality of seedling cultivation and providing important technical support for the development of related fields. Attached Figure Description

[0022] Figure 1 This is a schematic block diagram of the federated learning classification system for protecting the privacy of single-cell RNA sequencing data proposed in this invention; Figure 2 This is a schematic block diagram of the federated learning classification method for protecting the privacy of single-cell RNA sequencing data proposed in this invention. Figure 3 This is a schematic diagram of the federated learning method flow for the federated learning classification method for protecting the privacy of single-cell RNA sequencing data proposed in this invention. Figure 4 This diagram illustrates the communication compression effect of the federated learning classification method for protecting the privacy of single-cell RNA sequencing data proposed in this invention. Detailed Implementation

[0023] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0024] Reference Figures 1 to 4: A specific implementation of a federated learning classification system for protecting the privacy of single-cell RNA sequencing data Detailed Implementation of Adaptive Data Preprocessing Module This module employs a two-layer self-supervised learning architecture to enhance data features, specifically by building a contrastive learning system using the PyTorch framework. First, CPM normalization is performed on the original scRNA-seq data (using data from the 10XGenomics platform as an example). The calculation formula is CPM = (original count / total count) × 10. 6 The data is then transformed using log2(CPM+1). In the contrastive learning module, a Siamese network is constructed using a 6-layer Transformer encoder (each layer contains 8 attention heads, with a hidden dimension of 768). The input matrix (number of genes × number of cells) is randomly masked with 15% of the gene expression values ​​as negative samples, and the positive samples are the original data. The loss function is NT-Xent, with the Temperature parameter set to 0.5 and the training batch size set to 128. The network is iterated for 50 rounds until the loss converges (≤0.8). For high-dimensional data (number of genes >8000, such as human whole genome data), a deep clustering autoencoder (DCA) is used for dimensionality reduction. The encoder structure is a 2048-1024-512 dimensional fully connected layer, and the decoder is symmetrically designed. KL divergence regularization (weight 0.01) is added, and the Adam optimizer (lr=0.001) is used for 100 rounds of training to control the reconstruction error ≤4.2%. The dimensionality-reduced data was visualized using scikit-learn's t-SNE algorithm (30 perplexity, 1000 iterations), verifying that the cell cluster ARI index ≥ 0.9, ensuring preservation of cell type structure. In practical applications, after processing scRNA-seq data from 10,000 immune cells, the attention weights of key immune cell marker genes (such as CD3D and CD19) increased by 2.3 times, providing high-quality features for subsequent classification. Data Representation:

[0025] The combination of contrastive learning and deep clustering autoencoders improved feature discriminative power (AUC) by 17.9%, significantly increased the attention weights of key genes, and effectively highlighted cell type-specific expression patterns. Dimensionality reduction time for high-dimensional data was reduced by 57.1%, thanks to parallel computation optimization of the Transformer encoder (accelerated using 8×V100 GPUs). Cell cluster retention rate (ARI) was improved by 21.3%, ensuring that the data accurately reflects cell heterogeneity after dimensionality reduction. Feature retention for rare cells (such as regulatory T cells accounting for <1%) was improved by 73.3%, solving the feature loss problem of rare cells in traditional dimensionality reduction methods and laying the foundation for the classification of rare cell types.

[0026] Detailed Implementation of the Multi-Model Dynamic Collaborative Training Module The module implements parallel training of four models based on the TensorFlow framework. Hardware deployment uses a client-server architecture (client configured with Intel i7-11700K CPU + 256GB RAM, server configured with 8×A100 GPUs). During the construction of the Graph Convolutional Network (GCN), Spearman coefficients (Spearman rank correlation coefficients) are used to calculate gene co-expression relationships, with a threshold set to 0.6. After generating the adjacency matrix, a two-layer graph convolutional layer is constructed using the GraphSAGE aggregator (aggregation function set to mean), suitable for immune cell communication analysis. The Dynamic Tree Ensemble Model (DyTree) is developed based on the XGBoost library, with an initial tree depth of 3 layers. Gini gain is calculated in each training round, and pruning is triggered when the gain is <0.05 for three consecutive rounds (retaining the top 50% of important trees). The learning rate uses exponential decay of 0.1, suitable for cancer cell subtyping scenarios. Capsule Attention Network (CAN) is implemented using PyTorch, with two capsule layers (32 main capsules and 10 class capsules). When the data sparsity is >0.9, the number of routing iterations automatically increases to 4, and the coupling coefficient is dynamically adjusted during iteration (initial value 0.5), suitable for the high sparsity characteristics of single-cell sequencing data. Cross-modal Transformer (CMT) fuses 100+ cell biomarker maps (from the CellMarker database), and realizes cross-attention computation of gene expression and biomarkers through a 4-layer encoder (12 attention heads per layer, 512 hidden dimensions), suitable for rare cell identification. The model router calculates the Wasserstein distance using TensorFlow Probability, uses Sobol sequence sampling 1000 times to estimate distribution differences, activates CMT when the distance is >0.7 and the sparsity is >0.8, and selects GCN when the distance is <0.3 and the sparsity is <0.5. The middle region is optimized using Optuna through 50 rounds of Bayesian optimization to select the model. In typical scenarios (such as classification of 10 cell types), the model switching accuracy reaches 91%. Data representation:

[0027] The dynamic model routing mechanism improves model switching accuracy by 33.8%, avoiding classification bias caused by a fixed model. Rare cell classification accuracy is improved by 43.5%, particularly for cell types accounting for <5% (such as tumor-infiltrating lymphocytes), thanks to CMT's cross-modal fusion of biomarker maps. Training time is reduced by 44.4%, avoiding redundant computation of complex models on simple data through adaptive model selection. Cross-modal feature fusion efficiency is improved by 58.2%, enabling deep integration of gene expression data with prior knowledge, enhancing the interpretability and generalization ability of the classification model, and making it suitable for joint analysis of scRNA-seq data across institutions and platforms.

[0028] Detailed Implementation of the Causal Inference Intelligent Evaluation Module The module constructs a three-level evaluation system. The bottom-level statistical significance evaluation uses the Python statsmodels library to implement Benjamini-Hochberg correction, performing a Wilcoxon test on the F1-score of 20 models with a significance level α set to 0.01 and an error detection rate (FDR) controlled below 5%. The causal effect layer constructs a causal graph based on Do-Calculus and defines a structural causal model (SCM) using the pgmpy library. Taking tumor stem cell classification as an example, it sets a causal path of gene expression denoising → cell type confusion → classification bias. The CATE (Critical Aspect Ratio) is calculated through 1000 Monte Carlo simulations. When CATE < 0, a model isolation mechanism is triggered (e.g., pausing model aggregation for 3 rounds). The resource efficiency layer uses the Pareto optimality algorithm (scikit-multifit library), taking the communication reduction ratio, accuracy loss, and training time as multiple objective functions to generate 100 Pareto optimal solutions. The optimal model (e.g., a model with a 60% reduction in communication and an accuracy loss ≤ 3%) is determined using the entropy weight method. Deep Q-Network (DQN) is constructed using TensorFlow Agents. Its 12-dimensional state space includes features such as CATE, communication time, and F1-score. The experience replay buffer has a capacity of 1.5 × 10⁻⁶. 5 A dual-network architecture (evaluation network and target network, with the target network updated every 500 steps) was employed. The ε-greedy strategy exhibited exponential decay starting from 0.8 (decay factor 0.995), converging to the optimal strategy after 100 training rounds, achieving a model recommendation accuracy of 92.8%. In practical applications, when evaluating single-cell breast cancer data, three models with negative causal effects on tumor stem cell classification were successfully identified; isolation of these models improved overall classification accuracy by 11.5%. Data representation:

[0029] The combination of causal inference and deep reinforcement learning improved model recommendation accuracy by 23.7% and negative effect model recognition rate by 111.9%, effectively avoiding interference from low-quality models on global aggregation. Multi-objective optimization time was reduced by 65.7% through parallel computing (4 × CPU cores) and an early stopping strategy. Classification accuracy stability was improved by 62.5%, with the fluctuation range reduced from ±8% to ±3%, ensuring continuous optimization of model performance during federated learning, making it particularly suitable for multi-center, long-term joint analysis projects of single-cell sequencing data.

[0030] Detailed Implementation of Layered Compression Communication Optimization Module The module implements a three-level compression strategy. The parameter sparsity layer uses PyTorch's L0 regularization (λ=0.01) to filter model parameters, retaining the top 20% of parameters by absolute gradient value, and transmits them using the CSR sparse matrix format, achieving a compression ratio of 5:1. The feature hashing layer applies Locality Sensitive Hashing (LSH) to the attention weights of the Transformer model, using the SimHash algorithm to generate 128-bit hash values. The four encoder layers correspond to 1024 hash buckets, controlling the collision rate to within 10%, further achieving a compression ratio of 3:1. The asynchronous aggregation layer allows clients with weak computing power (such as edge nodes like Raspberry Pi4) to lag by 3 rounds of aggregation. The server compensates for this with linear interpolation (interpolation step size 0.2), with an error ≤2.5%. It also uses Redis to cache historical parameters (retaining the most recent 5 rounds) and supports resuming interrupted transmissions. The dynamic bandwidth allocator calculates transmission priority based on the client's computing power index (CPU cores × memory / data volume). High-computing-power nodes (e.g., 32-core CPU + 128GB memory) use synchronous aggregation (latency ≤ 10 seconds), while low-computing-power nodes use asynchronous aggregation (latency tolerance of 5 rounds), reducing the overall communication data volume by 65%. In actual testing, the transmission volume of a 10GB model parameter was reduced to 3.5GB after compression, the transmission time under 5G network was shortened from 280 seconds to 110 seconds, and the participation rate of weak-computing-power nodes increased from 30% to 85%. Data representation:

[0031] The hierarchical compression strategy significantly reduces the amount of communication data by 65% ​​and shortens transmission time by 60.7%, resolving the communication bottleneck caused by the high dimensionality of single-cell sequencing data. The participation rate of nodes with weak computing power is increased by 183.3%, enabling small research institutions (such as primary hospital laboratories) to effectively participate in federated learning and expand the scale of data aggregation. Parameter reconstruction error is reduced by 69%. Through the combination of L0 regularization and Kalman filtering, it ensures that the compressed parameters still maintain model accuracy, making it suitable for joint analysis scenarios of scRNA-seq data across regions and with significant differences in network conditions.

[0032] Detailed Implementation of the Secure Multi-Party Computation Privacy Protection Module The module integrates a three-layer privacy mechanism. The input layer uses the PyNaCl library to implement Paillier homomorphic encryption (2048-bit key length), supporting CPM normalized calculation under ciphertext, specifically implemented through ciphertext multiplication and addition operations (count / total count × 10). 6 The computation error is ≤0.5%. The training layer uses the MP-SPDZ framework to construct a confusing circuit, decomposing the model parameter update into AND gates (approximately 10^6 AND gates). 6 (approximately 5 x 10) and XOR gates (approximately 5 x 10) 5Tags are transmitted via the OTExtension protocol, with an aggregation error ≤1.8% and an aggregation time of approximately 250ms per round (10 clients). Differential privacy noise is added to the output layer, using the OpenDP library to generate Laplace noise. At ε=2.0, the noise intensity is 1 / ε=0.5. For cell types with a rarity >0.9 (such as circulating tumor cells), ε is dynamically adjusted to 1.5, with a noise intensity of 0.67, ensuring privacy protection of δ=1e-5. The privacy-accuracy balancer generates a Pareto front through 100 Monte Carlo simulations (each simulation running 50 rounds of federated learning). The optimal privacy budget is fitted using a scikit-learn SVM classifier (C=1.0, RBF kernel). In GDPR compliance testing, it successfully passed the audit of the EU data protection authority, while the classification accuracy loss is ≤5%. In practical applications, after processing scRNA-seq data containing 1000 patient samples, the privacy leakage risk of gene expression data decreased from 45% to 8%, meeting HIPAA's privacy protection requirements for medical data. Data representation:

[0033] The deep integration of secure multi-party computation and differential privacy reduces the risk of privacy breaches by 82.2%, achieving the highest privacy protection standards for medical data. Classification accuracy loss is reduced by 58.3%, achieving an optimal balance between privacy and accuracy through Pareto optimization. An automated privacy-accuracy balancing mechanism replaces manual parameter tuning, improving the efficiency and reliability of the federated learning process. It is suitable for joint analysis of sensitive biomedical data across national and institutional borders, providing compliance assurance for the clinical application of single-cell sequencing technology in precision medicine.

[0034] Three-dimensional topological representation of system architecture:

[0035] Module performance comparison:

[0036] Causal inference assessment characterization:

[0037] The above are merely preferred embodiments of the present invention, but the scope of protection of the present invention is not limited thereto. Any equivalent substitutions or modifications made by those skilled in the art within the scope of the technology disclosed in the present invention, based on the technical solution and inventive concept of the present invention, should be covered within the scope of protection of the present invention.

Claims

1. A federated learning classification system for single-cell RNA sequencing data privacy protection, characterized in that, include: The adaptive data preprocessing module performs count normalization per million reads on the raw single-cell RNA sequencing data, performs logarithmic transformation on the raw count values, and enhances feature representation through a contrastive learning framework: 15% of gene expression values ​​are randomly masked as negative samples, a Siamese network is constructed using a six-layer Transformer encoder, and the NT-Xent loss function is used to enhance cell type discrimination features; for datasets with more than 8000 genes, dimensionality reduction is achieved through a clustering autoencoder, which consists of 2048, 1024, and 512-dimensional fully connected layers, combined with KL divergence regularization to control the reconstruction error within 4.2%, and the preservation of cell cluster structure is visualized and verified through t-distributed random neighborhood embedding. Multi-model dynamic collaborative training module: Supports parallel training and adaptive switching of four models: a graph convolutional network based on gene co-expression relationships, an extreme gradient boosting ensemble model with dynamically adjusted tree depth, a capsule attention network containing two capsule layers and adjusting the routing iteration count to 4 based on data sparsity, and a four-layer cross-modal Transformer encoder that fuses over 100 known cell biomarker maps; The built-in model router makes dynamic decisions based on the difference between the input data distribution and the data distribution adapted to each candidate model, using Wasserstein distance and data sparsity: when the distance is greater than 0.7 and the sparsity is greater than 0.8, the cross-modal Transformer is activated; when the distance is less than 0.3 and the sparsity is less than 0.5, the graph convolutional network is selected; the optimal model is selected through Bayesian optimization in the intermediate region. Causal inference evaluation module: A three-layer evaluation system is constructed. The statistical significance layer uses the Benjamini-Hochberg correction control test and the Wilcoxon test is performed on the model F1-score. The causal effect layer uses Do-Calculus to calculate the causal effect value CATE of the model for cell type. When CATE is less than 0, the model isolation mechanism is triggered. The resource efficiency layer generates the computing power-accuracy Pareto curve through multi-objective optimization. The evaluation results are input into a deep Q network, and automated model recommendation is achieved through an ε-greedy strategy.

2. The federated learning classification system for single-cell RNA sequencing data privacy protection according to claim 1, characterized in that, Also includes: Layered compression communication optimization module: Parameter sparsity technique, employing L1 regularization to sparsify neural network parameters by adding an L1 norm term to the loss function. ,in The total loss function of the model, The original loss function, The regularization coefficient is . Using the L1 norm forces the model parameters to generate a large number of zero values, significantly reducing the number of valid parameters that need to be transmitted; the client only uploads the indexes of non-zero parameters and their corresponding values, and the server generates a global consensus index by aggregating the index sets of all clients, and then broadcasts it to each client to recover the complete gradient; Secure computing privacy protection module: integrates a three-layer privacy enhancement mechanism, specifically including: Input layer: Paillier homomorphic encryption technology is used to encrypt the input data. The encryption formula is as follows: ,in For the modulus, Plain text data Use random numbers; implement standardized calculation of raw data in encrypted state; Training layer: Based on obfuscated circuit technology of secure multi-party computation (MPC), the client encrypts the sparsed gradients before uploading, and the server directly performs addition aggregation in the encrypted state. ,in This represents the average gradient across all clients. Mean gradient The encrypted form, This represents the local gradient calculated by the i-th client. Represents the local gradient of the i-th client. The encrypted form of the expression, where m represents the total number of clients participating in this aggregation. It is the ciphertext space modulus of Paillier encryption, and the legality of the client parameter update is verified through non-interactive zero-knowledge proof; Output layer: A differential privacy-enhancing noise injection strategy is adopted. Before gradient encryption, noise following a Laplace distribution is added to each non-zero parameter. ,in For sensitivity, For privacy budgeting; combining cell type rarity quantification, calculate using frequency statistics. ,in The global average frequency, The value ranges from [0,1], with larger values ​​indicating rarer cell types; and is correlated with gene expression sparsity. Combined Implement dynamic privacy budget allocation, when Increase noise intensity; generate the optimal balance between computing power, privacy, and accuracy through Pareto optimization; Decryption and verification phase: The client uses its private key to decrypt the aggregated results and verify consistency to prevent malicious server tampering.

3. The federated learning classification system for single-cell RNA sequencing data privacy protection according to claim 1, characterized in that, The multi-model dynamic collaborative training module integrates a cross-institutional knowledge transfer mechanism. When the client's data volume is less than 500 cells, it automatically triggers federated transfer learning to extract graph topology features of the graph convolutional network from the source domain with sufficient data. It aligns the target domain distribution and reduces domain differences by including a gradient inversion layer and an adversarial domain adaptation (ADA) algorithm. The target domain refers to the client's own dataset. The aligned features are input into the local model of the target domain, and supervised fine-tuning is performed using a small amount of target domain data to solve the modeling bias problem caused by insufficient samples of rare cell types.

4. The federated learning classification system for protecting the privacy of single-cell RNA sequencing data according to claim 1, characterized in that, The causal inference and evaluation module constructs a cell type-model causal graph and uses a structural causal model (SCM) to analyze the causal effect path of the model on cell type. When it is found that the model indirectly causes classification bias through gene expression noise reduction, the model correction mechanism is automatically triggered.

5. The federated learning classification system for single-cell RNA sequencing data privacy protection according to claim 2, characterized in that, The hierarchical compression communication optimization module introduces a neural network parameter predictor, which predicts the parameter changes in the current round based on the parameter update patterns of the previous three rounds. The residual prediction error between the transmitted actual parameters and the predicted values ​​is dynamically corrected by Kalman filtering.

6. The federated learning classification system for privacy protection of single-cell RNA sequencing data according to claim 2, characterized in that, The secure multi-party computation privacy protection module develops a model verification mechanism based on zero-knowledge proof (ZKP). The server verifies the legality of client parameter updates through non-interactive zero-knowledge proof (NIZK) while ensuring that parameter updates strictly comply with the federated learning training process.

7. The federated learning classification system for protecting the privacy of single-cell RNA sequencing data according to claim 1, characterized in that, The multi-model dynamic collaborative training module integrates cross-modal Transformer gene expression-spatial location joint representation. When the client has spatial transcriptome data, it fuses local association information of cells within a 50μm radius through an attention mechanism. The adaptive graph convolutional network generates a neighborhood weight matrix between cells, which serves as the input to the Transformer attention layer to regulate the association strength weights of different cells. This achieves the connection between graph network features and Transformer sequence modeling, enhances the fusion effect of local cell interaction information, improves the accuracy of spatial location-related cell type classification, and meets the joint analysis needs of spatial transcriptome and single-cell sequencing data.

8. A method for using a federated learning classification system for protecting the privacy of single-cell RNA sequencing data as described in any one of claims 1-7, characterized in that, include: Self-supervised feature enhancement steps: CPM normalization and log2 transformation are performed on scRNA-seq data. A 15% gene mask is used as a negative sample through a contrastive learning framework. A Siamese network is constructed using a six-layer Transformer encoder. The contrastive loss is calculated using the NT-Xent loss function to enhance cell type discrimination features. For high-dimensional data, the dimensionality is reduced to 512 dimensions through a deep clustering autoencoder, and the cell cluster structure is preserved through t-SNE visualization. The steps for dynamic training of heterogeneous models are as follows: Calculate the Wasserstein distance and sparsity between the local data distribution and the candidate model fit distribution. When the distance is >0.7 and the sparsity is >0.8, the cross-modal Transformer is selected. When the distance is <0.3 and the sparsity is <0.5, the GraphSAGE aggregator is used. The middle region is optimized by Bayesian selection of DyTree or CAN. Each training round uses the Adam optimizer to perform one iteration. Causal inference evaluation steps: Benjamini-Hochberg correction is used to control multiple tests, the p-value of the Wilcoxon test of the model F1-score is calculated, the causal graph is constructed using Do-Calculus to calculate CATE, and the model is isolated when CATE < 0; recommendation decisions are generated through a deep Q network, and the ε-greedy strategy decays exponentially from 0.8 to 0.

1. Layered compression communication steps: The client performs L0 regularization on the parameters to filter the top-20% gradients, implements local sensitive hashing on the Transformer attention weights, weak computing power nodes are aggregated in three rounds, and the server compensates through historical parameter interpolation. Secure computation steps: The input layer uses Paillier encryption to perform ciphertext CPM calculation, the training layer completes MPC aggregation through a confusion circuit, the output layer adds differential privacy noise, and the optimal privacy budget is generated through Pareto optimization.

9. The federated learning classification method for protecting the privacy of single-cell RNA sequencing data according to claim 8, characterized in that, In the self-supervised feature enhancement step, dynamic time warping is used to align cell differentiation trajectories on time series data. The trajectory alignment weights are adjusted according to the differences in differentiation stages. The similarity of cell features at the same stage is improved by weighting through a contrast loss function. This method is suitable for research scenarios that track the dynamic process of cell differentiation.

10. The federated learning classification method for single-cell RNA sequencing data privacy protection according to claim 8, characterized in that, In the hierarchical compression communication step, the LSTM parameter predictor is used to learn the parameter update pattern of the first three rounds, and the prediction error of the transmitted residual data is corrected by Kalman filtering. At the same time, the number of communication rounds is reduced to improve the participation efficiency of clients with weak computing power and support the deployment of federated learning scenarios.