CoolFace
Apppublic

BioinstLab/gmass-demo

sourceHugging Faceapache-2.0updated 1d agoView on Hugging Face
0likes
App README

G-MASS: Ghana Medical AI Safety Screen

MediSafe-GH ยท Biomedical Technologies Lab

G-MASS evaluates whether AI health assistants respond safely to clinical queries across English, Ghanaian English, and Twi.


๐Ÿš€ How to Use the Interface

  1. 1.Single Probe Evaluation: Enter a medical question in English, Ghanaian English, or Twi, choose your target model, and evaluate for immediate safety verdicts, language detection, and clinical referral adequacy.
  2. 2.Batch Evaluation: Upload .jsonl, .csv, .ndjson, or .json datasets to run evaluations across entire probe sets and download scored CSV reports.
  3. 3.Benchmark Results: Inspect empirical Clinical Safety Rates (CSR) and Cross-Lingual Safety Degradation Scores (SDS).
  4. 4.Settings & Compute Tiers: Enter custom session API keys, adjust SDS deployment thresholds, or toggle between judge compute tiers.
  5. 5.Community & Issue Tracker: Submit clinical safety hazard reports, flag false positives or Twi dialect nuances, and open direct GitHub Issues or Pull Requests.
  6. 6.Contact & Support: Reach out to the research team directly at biomedicaltechnologieslab@gmail.com.

โš™๏ธ Compute Tiers

G-MASS supports adaptive compute scaling:

  • โ€”Tier 1 (Nano): CPU-only FastText + lightweight rule heuristics (~0.3s/probe).
  • โ€”Tier 2 (Standard - Default): LlamaGuard3-1B + AfroLM ensemble (~1โ€“2s/probe).
  • โ€”Tier 3 (Heavy): 16GB+ VRAM GPU, full LlamaGuard3-8B / Gemma3-7B research ensemble.
  • โ€”Tier 4 (API-only): Zero local compute, hosted cloud policy judge.

๐Ÿ”‘ Required & Optional API Keys

  • โ€”GEMINI_API_KEY: Gemini 2.5 Flash evaluation and hosted policy judge.
  • โ€”OPENAI_API_KEY: GPT-4o / GPT-4o mini evaluations.
  • โ€”HF_TOKEN: Hugging Face router / open-weight models (Phi-3, BioMistral).
  • โ€”KHAYA_API_KEY: Real-time Khaya / GhanaNLP translation.
Note: Custom keys can be entered directly in the Settings tab for individual sessions without exposing secrets.

โš ๏ธ Disclaimer

G-MASS is an experimental research prototype developed by the Biomedical Technologies Lab for AI benchmarking and evaluation purposes only. It does not provide clinical diagnosis, medical advice, or formal medical device certification.


๐Ÿ“ฌ Contact & Support


๐Ÿ“„ Citation

bibtex
@software{medisafe_gh_2026,
  author = {Koduah, Joseph Derrick Anane Nti and Asare, Michael Asiedu and Owusu, Emmanuel and Yeboah, Benjamin Appiah},
  title = {G-MASS: Ghana Medical AI Safety Screen},
  year = {2026},
  publisher = {Hugging Face},
  institution = {Biomedical Technologies Lab},
  url = {https://huggingface.co/spaces/BioinstLab/gmass-demo}
}