How to use from the
Use from the
Laya library
# 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

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:

  1. verdict (choice): Entailment relationship between evidence and claim (supported | unsupported | contradicted).
  2. explicitly_mentioned (noul / boolean): Does the clinical evidence explicitly address the claim topic? (yes | no).
  3. needs_more_evidence (noul / boolean): Is additional clinical documentation required to reach a conclusion? (yes | no).
  4. evidence_sufficiency (score): Continuous quantification ($0.0 \dots 1.0$) of evidence completeness.
  5. 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
Safetensors
Model size
0.3B params
Tensor type
F16
Β·
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for reddyshailesh1/ceis

Finetuned
(265)
this model

Dataset used to train reddyshailesh1/ceis

Evaluation results