Viyan

Viyan AI

Automating Clinical Data Harmonization with Split Learning

This framework uses pre-trained LLMs to align disparate clinical datasets for distributed training without requiring manual schema normalization.

Clinical researchers building predictive models for mental distress often find their data trapped in local silos, with each institution using unique survey questions and scoring scales. Training a unified model typically requires months of manual data normalization to force disparate datasets into a common format. A new approach, known as Schema-Aware Split Learning, uses a pre-trained Large Language Model as an automated semantic encoder to bridge these gaps. This moves the alignment burden from clinical staff to the model itself.

Normalizing Schema through Language

Traditional federated learning systems require every participant to map their local data into a rigid, central schema. This creates a bottleneck where site administrators must reconcile how different hospitals record patient responses. The schema-aware framework bypasses this by converting every survey response into a descriptive natural language string. If one site records a 4 on a 5-point stress scale and another records "Frequently" on a frequency scale, the encoder translates both into text descriptors.

This system uses LoRA, or Low-Rank Adaptation, to fine-tune the encoder. To ensure these text strings map to the same semantic coordinates, the system employs a contrastive loss function. This function takes pairs of inputs—like the "4 on a 5-point scale" and "Frequently"—and pulls their vector representations closer together in the latent space during training. By explicitly penalizing the distance between inputs known to share clinical meaning, the encoder forces the model to ignore the specific local phrasing and focus on the underlying sentiment.

Partitioning the Computation

The framework partitions the model architecture between the client site and a central server. The client runs a frozen, pre-trained encoder that transforms the natural language input into a fixed-length embedding vector. This computation is lightweight, allowing sites with limited hardware to participate without needing to perform heavy gradient updates. The server hosts the prediction backbone, a neural network that processes these embeddings to generate a mental distress assessment. Because the server only sees these abstract embeddings, the raw survey data never leaves the local institution.

Feature Federated Learning Schema-Aware Split Learning
Data Schema Alignment Manual LLM-based Automatic
Client Computation High Low
Privacy Mechanism Local updates Feature extraction
Data Exposure Model parameters Semantic embeddings

Handling Unseen Inputs

The predictive backbone acts as a classifier that maps these incoming embedding vectors to clinical outcomes. Because the contrastive training process forces similar concepts to reside in the same region of the latent space, the backbone learns to recognize the neighborhood of a coordinate rather than requiring an exact match. When the server receives an embedding it has not seen before—perhaps from a new clinic with a novel way of asking a question—it places that embedding into the semantic space based on the encoder's learned logic. If the encoder has been trained well, that embedding will naturally cluster with existing, semantically similar vectors, allowing the backbone to produce a consistent prediction.

Sources