TLDR: SwasthLLM is a new AI framework for medical diagnosis that works across English, Hindi, and Bengali without requiring language-specific fine-tuning. It combines a multilingual encoder with language-aware attention, Siamese contrastive learning, multi-task learning, and meta-learning to achieve high diagnostic accuracy. The model shows strong generalization, particularly in zero-shot scenarios for low-resource languages like Hindi (92.78% accuracy) and Bengali (73.33% accuracy), significantly outperforming other state-of-the-art models and offering a scalable solution for multilingual healthcare.
In today’s diverse world, healthcare faces a significant challenge: providing accurate medical diagnoses from clinical text across many languages. Most existing AI diagnostic tools are built for a single language and require vast amounts of labeled data, making them impractical for regions where multiple languages are spoken, and data is scarce. This is particularly true in countries like India, where English, Hindi, and Bengali are commonly used by patients and practitioners.
Addressing this critical need, researchers have introduced SwasthLLM, a groundbreaking AI framework designed for unified, zero-shot, cross-lingual, and multi-task medical diagnosis. This innovative system aims to understand and diagnose medical conditions from clinical text in English, Hindi, and Bengali, without needing specific fine-tuning for each language.
At its core, SwasthLLM utilizes a powerful multilingual encoder called XLM-RoBERTa. This encoder is enhanced with several key features. First, a language-aware attention mechanism helps the model focus on crucial medical terms, regardless of how they are structured in different languages. This means it can identify important symptoms or descriptors even if their position in a sentence changes between English, Hindi, or Bengali.
To ensure that medical texts with the same meaning produce similar representations across different languages, SwasthLLM incorporates a Siamese contrastive learning module. This module effectively pulls together equivalent medical texts from different languages in a shared understanding space, while pushing apart unrelated ones. An additional translation consistency module further reinforces this language-invariant learning.
SwasthLLM is trained using a multi-task learning approach, meaning it simultaneously optimizes for disease classification, translation alignment, and contrastive learning. This integrated strategy allows the model to learn more robust and generalized representations. Furthermore, it employs Model-Agnostic Meta-Learning (MAML), which equips the framework with the ability to quickly adapt to entirely new languages or medical tasks, even with very little new data. This makes it exceptionally well-suited for ‘zero-shot’ scenarios, where the model encounters a language it hasn’t been explicitly trained on for diagnosis.
The researchers conducted extensive evaluations, and the results are highly promising. In supervised settings, SwasthLLM achieved an impressive test accuracy of 97.22% and an F1-Score of 97.17%. More importantly, in zero-shot scenarios, where the model had no prior specific training data for the target language, it achieved 92.78% accuracy on Hindi medical text and 73.33% accuracy on Bengali medical text. These figures demonstrate strong generalization capabilities, especially in low-resource contexts.
Compared to other state-of-the-art multilingual models like mBERT, XLM-RoBERTa, and mT5, SwasthLLM consistently outperformed them, particularly in zero-shot settings for Hindi and Bengali. Its average F1-Score was nearly 7% higher than mT5, highlighting the effectiveness of its unique language-aware attention and contrastive learning mechanisms. Even domain-specific models like BioBERT struggled to generalize to zero-shot Hindi/Bengali due to their limited multilingual pretraining.
An ablation study, which examined the impact of each component, revealed that contrastive learning provided the most significant single improvement, followed by multi-task learning and meta-learning. Each component contributed incrementally to the model’s superior performance, especially in challenging zero-shot Bengali classification.
While SwasthLLM represents a significant leap forward, the researchers acknowledge some limitations. Performance in zero-shot Bengali, though strong, still lagged slightly behind Hindi, often due to semantically overlapping disease vocabularies. Challenges also arose with long medical narratives involving multiple conditions and rare idiomatic expressions in low-resource languages. Future work will focus on expanding linguistic coverage, enhancing domain-specific alignment, and optimizing the meta-learning process.
Also Read:
- Advancing Clinical Diagnosis with Self-Learning AI Agents
- A Reflective AI Architecture for Clearer and More Accurate Medical Predictions
Despite these challenges, SwasthLLM’s ability to provide accurate, cross-lingual diagnostic support without extensive retraining has profound implications for public health. It offers a scalable, language-agnostic solution for AI-assisted medical diagnosis, potentially transforming healthcare access and quality in multilingual and underserved regions worldwide. You can read the full research paper here.


