Before understanding the solution, you need to understand why it was built.
| Factor | Detail |
|---|---|
| Scale | Scams = over 50% of Singapore's reported crimes |
| Financial damage | S$4 billion+ in losses since 2019 |
| Evolving tactics | Shifted from simple phishing โ complex social engineering |
| Social engineering share | Up to 80% of all scam losses |
Social engineering means manipulating a person through conversation โ building trust, creating urgency, or impersonating authority โ before requesting money or credentials. It is harder to detect than a suspicious link because it looks like a normal chat.
Why does this matter technically? Simple keyword filters fail because the conversation sounds legitimate until the final manipulation. You need a model that understands conversational intent, not just suspicious words.
Traditional scam detection works like this:
User's Phone โ Message sent to Cloud Server โ Server scans for threats โ Result returned
Two critical problems arise:
Problem 1 โ End-to-End Encryption (E2EE)
Problem 2 โ Privacy Trade-off
E2EE means messages are scrambled at the sender's device and can only be unscrambled at the receiver's device. No third party โ including the platform provider or a cloud server โ can read the content.
Instead of bringing the message to the analysis, bring the analysis to the message:
Traditional: Message โ Cloud โ Analysis โ Warning
On-Device: Message โ On-Phone Analysis โ Warning
(nothing leaves the device)
| Problem | How On-Device AI Solves It |
|---|---|
| E2EE blocks server scanning | Analysis happens locally โ encryption is irrelevant |
| Privacy risk from cloud access | Conversation data never leaves the phone |
| Speed/latency from cloud round-trip | Faster real-time analysis on-device |
Running an AI model directly on a smartphone or local device rather than on a remote server. The device does the computation itself, keeping data local and reducing dependency on internet connectivity.
Running a powerful AI model on a smartphone is challenging because:
The solution is a two-stage pipeline โ think of it as a coarse filter followed by a fine filter:
Incoming Message
โ
[Lightweight Classifier]
โ โ
Looks Safe Potentially Suspicious
โ โ
No action โ Pass to Stage 2
Flagged Conversation
โ
[Fine-Tuned Gemma Model]
Analyzes larger conversation snapshot
โ โ
False Alarm Confirmed Threat
โ โ
No action Real-time warning on device
Running the powerful Gemma model on every message would drain the battery. Stage 1 acts as a cheap filter so Stage 2 only activates when genuinely needed โ balancing efficiency with accuracy.
A general-purpose AI trained on global data may not recognize:
Google DeepMind's Gemma model was fine-tuned specifically on:
| Training Data Type | Purpose |
|---|---|
| Impersonations of public institutions | Recognize fake government/authority contacts |
| Bank impersonation scripts | Detect fake financial urgency tactics |
| Local public figure impersonations | Catch celebrity/authority trust exploitation |
| Trending regional scam schemes | Stay current with evolving local tactics |
Taking a pre-trained AI model and further training it on a specific, targeted dataset to improve its performance in a particular domain โ in this case, Singapore-specific scam conversations.
Result: The model can distinguish between:
Building AI that handles sensitive security data requires strict ethical and legal controls. Three key principles were applied:
An AI safety tool that itself violates privacy or misuses data would undermine public trust. Governance ensures the solution does not become a new problem.
Now connect all the pieces:
PROBLEM SOLUTION
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Scams use social engineering โ Model trained on conversational manipulation patterns
Server scanning blocked by E2EE โ On-device processing bypasses this entirely
Privacy risk from cloud access โ Data never leaves the phone
Generic models miss local scams โ Fine-tuned on Singapore-specific scam data
Phones have limited resources โ Two-stage pipeline (efficient + accurate)
Risk of misusing citizen data โ Strict governance: no PII, sovereign sandbox
Test yourself with these questions:
Conceptual Questions
Application Questions
Critical Thinking 7. What are potential limitations of on-device AI that this article does not address?
| Concept | Key Takeaway |
|---|---|
| Social Engineering | Manipulation through conversation, not just malicious links |
| E2EE | Encrypts messages so servers cannot scan them |
| On-Device AI | Runs analysis locally โ solves E2EE and privacy simultaneously |
| Two-Stage Pipeline | Stage 1 = fast filter; Stage 2 = deep analysis โ balances battery vs. accuracy |
| Fine-Tuning | Adapts generic model to local scam patterns for higher accuracy |
| Governance | No citizen data, isolated training environment, rigorous testing |