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
Download README.md from reddyshailesh1/ceis: direct link, hf CLI and curl.
- Browser
- Download file 4.18 kB
-
https://huggingface.co/reddyshailesh1/ceis/resolve/main/README.md
- Command line
-
hf download hf://reddyshailesh1/ceis/README.md
-
curl -L -o README.md https://huggingface.co/reddyshailesh1/ceis/resolve/main/README.md
license: apache-2.0
language:
- en
base_model: convaiinnovations/laya
library_name: laya
pipeline_tag: text-classification
tags:
- laya
- non-autoregressive
- clinical-nli
- medical
- claim-verification
- evidence-intelligence
datasets:
- presencesw/mednli
model-index:
- name: ceis
results:
- task:
type: text-classification
name: >-
Clinical Claim Verification & Evidence Intelligence (5-Question
Multi-Task)
dataset:
name: MedNLI
type: presencesw/mednli
split: test
metrics:
- type: accuracy
value: 0.7908
- type: f1
name: Macro F1
value: 0.793
ceis
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)