This Gemma 3n repository is historical and is not used by the current
SafeRide Android application. SafeRide moved to the Gemma 4 E2B LiteRT-LM
path on 29 June 2026. Do not use this repository as the current app model,
Android download source, or release-readiness evidence.
The original Gemma 3n card remains below for historical context. Its original
capability statements were not validation of the current SafeRide app and must
not be interpreted as production, survivor-facing, medical, legal, emergency,
or UNICEF approval.
Superseded SafeRide model
This Gemma 3n repository is historical and is not used by the current
SafeRide Android application. SafeRide moved to the Gemma 4 E2B LiteRT-LM
path on 29 June 2026. Do not use this repository as the current app model,
Android download source, or release-readiness evidence.
The original Gemma 3n card remains below for historical context. Its original
capability statements were not validation of the current SafeRide app and must
not be interpreted as production, survivor-facing, medical, legal, emergency,
or UNICEF approval.
Short version: A domain-tuned, on-device, multimodal Gemma-3n assistant for survivors and frontline workers dealing with gender-based violence in public transport and similar contexts. Handles text guidance, evidence-grade audio transcription, and offence-tag suggestions, with privacy by default and strict safety guardrails.
1. Model Summary
Base model:google/gemma-3n-E4B-it (multimodal, text+audio capable, instruction-tuned)
Finetuning type: Parameter-efficient LoRA on both language and vision/audio layers
Objective:
Build a specialised GBV assistant that:
Gives step-by-step, jurisdiction-aware guidance after an incident (health, safety, reporting).
Transcribes survivor audio into structured text that can be used as evidence or intake notes.
Suggests offence tags from a controlled taxonomy (e.g. “sexual touching in public transport”) to support legal and case-management workflows.
Primary deployment target:
Android smartphones and low-resource edge devices (offline-first; no cloud dependency).
Primary users (indirect):
Survivors and bystanders (through the SafeRide app UX).
GBV counsellors, paralegals, social workers and helpline staff.
Core tasks:
Conversational GBV Q&A and step-by-step coaching.
Speech-to-text transcription for incident narration.
Lightweight, prompt-based offence tagging.
2. Intended Use & Audience
2.1 Intended Use Cases
Immediate guidance after an incident
User asks: “Where should I report if I was sexually assaulted in a matatu?”
Model returns plain-language, jurisdiction-aware steps:
Internal legal content authored with partner lawyers and GBV experts.
Public legal frameworks and health guidelines (e.g. GBV protocols, sexual offences frameworks, survivor support guides), re-written into Q&A form.
Synthetic variations to stress-test language, tone, and wording while keeping legal content grounded.
No raw survivor case records are directly used. Data is de-identified and/or synthetic; incident descriptions are representative but not traceable to specific persons.
4.3 Preprocessing & Formatting
Conversations normalised to the gemma-3 chat format:
Survivor-centred tone (no victim-blaming, no minimisation).
Clarity and actionability (can the user actually follow the steps?).
Safety review:
Red-team prompts to probe:
Advice on retaliation, vigilantism, or doxxing.
Blaming survivors or excusing perpetrators.
Instructions that would compromise evidence or safety.
The model is only considered production-ready when specialist reviewers sign off on both:
“Useful enough to meaningfully reduce friction in GBV response”, and
“Conservative enough to avoid doing harm when it is wrong or uncertain”.
7. Prompting & Inference Guide
7.1 Basic Text Chat
Python-style pseudo-usage (mirroring current project code):
python
1messages =[{2"role":"user",3"content":[{4"type":"text",5"text":"Where should I report when I have been sexually violated in a matatu?"6}]7}]8do_gbv_inference(messages, max_new_tokens=256)
Recommended characteristics:
Short, specific questions work best:
“I was groped in a matatu, what do I do now?”
“Where can I get PEP near [town]?”
The model will:
Ask clarifying questions only where needed.
Prioritise safety + health + rights, then provide referral suggestions.
7.2 Audio Transcription
python
1audio_file ="incident_clip.mp3"23messages =[{4"role":"user",5"content":[6{"type":"audio","audio": audio_file },7{"type":"text",8"text":"Please transcribe exactly what I said, without adding new details."}9]10}]11do_gbv_inference(messages)
Guidance:
Keep audio segments short (e.g. < 2 minutes) for better control and latency.
For evidence workflows, pair transcription with human review before attaching to case files.
7.3 Offence Tagging
You can use prompt-based tagging on top of text or transcription:
python
1messages =[{2"role":"user",3"content":[{4"type":"text",5"text":(6 "Here is a description of what happened:78"
9 "<incident>10"
11"Yesterday at 7pm in a matatu on route 32, the conductor kept touching my thighs "12 "even after I told him to stop...13"
14 "</incident>1516"
17 "From this description only,list up to three offence tags from this taxonomy:18"
19 "- verbal_harassment
20"
21 "- unwanted_touching
22"
23 "- attempted_rape
24"
25 "- rape
26"
27- stalking
28"
29- threats_or_intimidation
3031"
32"Respond in JSON as {"offence_tags": [...]}, and do not add any new facts."33)34}]35}]