Instructions to use reddyshailesh1/ceis with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Laya
How to use reddyshailesh1/ceis with Laya:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
# No code snippets available yet for this library.
# To use this model, check the repository files and the library's documentation.
# Want to help? PRs adding snippets are welcome at:
# https://github.com/huggingface/huggingface.jsceis
IEEE Research Paper (PDF) Β· GitHub Codebase
An advanced Clinical Evidence Intelligence System (CEIS) model built on top of LAYA (convaiinnovations/laya) and fine-tuned on MedNLI with multi-task supervision.
Unlike conventional generative LLMs or single-head classifiers, this model utilizes LAYA's non-autoregressive System-1 decision architecture to simultaneously evaluate five typed clinical reasoning questions in a single forward pass.
π©Ί Evaluated Clinical Decision Primitives
For any clinical input pair (claim, evidence), the model evaluates:
verdict(choice): Entailment relationship between evidence and claim (supported|unsupported|contradicted).explicitly_mentioned(noul / boolean): Does the clinical evidence explicitly address the claim topic? (yes|no).needs_more_evidence(noul / boolean): Is additional clinical documentation required to reach a conclusion? (yes|no).evidence_sufficiency(score): Continuous quantification ($0.0 \dots 1.0$) of evidence completeness.inconsistency_severity(score): Clinical severity score ($0.0 \dots 1.0$) if a contradiction is detected.
π Usage
Install the required library:
pip install laya
Run multi-question inference:
import laya
# 1. Load the fine-tuned model
agent = laya.load("reddyshailesh1/ceis")
# 2. Define clinical state
state = {
"claim": "Patient has elevated serum creatinine.",
"evidence": "Admission labs notable for serum creatinine 2.1 mg/dL (baseline 0.8 mg/dL)."
}
# 3. Define questions
questions = {
"verdict": {
"type": "choice",
"instructions": "Decide whether the cited text supports the claim.",
"criteria": {
"supported": "the cited text confirms the claim",
"unsupported": "the cited text does not say enough to confirm or deny the claim",
"contradicted": "the cited text states the opposite of the claim"
}
},
"explicitly_mentioned": {
"type": "noul",
"instructions": "Does the evidence explicitly mention the topic of the claim?",
"criteria": {
"true": "the evidence explicitly addresses the claim",
"false": "the evidence does not address the claim"
},
"labels": {"false": "no", "true": "yes"}
}
}
# 4. Predict
results = agent.predict(state, questions)
print("Verdict:", results["answers"]["verdict"]["answer"])
print("Probabilities:", results["answers"]["verdict"]["probabilities"])
π Training Configuration
- Base Checkpoint:
convaiinnovations/laya(multilingual) - Dataset: MedNLI (
presencesw/mednli) - Optimization: AdamW, Learning Rate 2e-05, Warmup 0.06
- Multi-task Loss: Weighted cross-entropy (Verdict: 0.6, Explicitly Mentioned: 0.2, Needs More Evidence: 0.2)
- Temperature Calibration: Calibrated on held-out premise groups to guarantee reliable confidence scores.
β οΈ Clinical Disclaimer
This model is developed strictly for research and clinical decision support evaluation. It is not a certified medical device and must not be used as the sole basis for clinical diagnosis or treatment regimens. All outputs should be reviewed by qualified healthcare practitioners.
Authors: Shailesh Reddy (reddyshailesh1), Karthikeya (karthikeya3342)
- Downloads last month
- 38
Model tree for reddyshailesh1/ceis
Base model
convaiinnovations/layaDataset used to train reddyshailesh1/ceis
Evaluation results
- accuracy on MedNLItest set self-reported0.791
- Macro F1 on MedNLItest set self-reported0.793