Skip to content
Truthlens

Truthlens

See why it's fake, before you pay.

Created on 23rd November 2026

•

Truthlens

Truthlens

See why it's fake, before you pay.

The problem Truthlens solves

Scams in India increasingly stack several fakes together: a cloned voice note, an AI-made photo and an urgent UPI, OTP or KYC message ("I changed my number, I'm in trouble, send ₹25,000 now, don't tell Dad", "digital arrest", "your account will be blocked"). The people hit hardest are students and elders. They have no quick way to check any of it, and most detectors only give a bare "87% fake", which is easy to over-trust or ignore.

TruthLens lets anyone check a suspicious image, voice note or message in one place and get:

  • a risk score and level (Low, Medium or High)
  • an honest confidence, separate from the risk, so it can say "I'm not sure"
  • the evidence behind the score: every signal is measured, weighted and explained in plain language
  • what to do next, with India-specific steps: call the person back on their saved number, never share an OTP, don't pay "to verify", report at 1930 or cybercrime.gov.in

How it makes existing tasks easier and safer

  • Check before you pay. Paste a message or upload a voice note and get an answer in seconds, instead of panicking or asking around.
  • Combined mode checks whether the photo, voice and message fit one scam story, which is how real impersonation scams work.
  • Chrome extension: right-click any image or selected text on a web page to check it.
  • Private by design: files are processed in memory and discarded, links are never opened, and history keeps only verdict summaries in your own browser.
  • It never claims certainty. It says "high likelihood", shows its limitations on every result, and caps displayed probabilities at "over 99%" and "under 1%".

Challenges I ran into

  • A detector that ignored its input. My first audio model (MelodyMachine/Deepfake-audio-detection-V2) loaded fine, but gave the exact same output for two different voices, and for one of them with noise added, rating all of them "real". I only caught it because I tested control inputs. I compared four other models and switched to mo-thecreator/Deepfake-audio-detection, which does flag text-to-speech clips as synthetic. The swap is documented in the repo.

  • No ground truth. I had no labelled deepfakes and no real voice recordings, so I couldn't honestly measure accuracy. Instead of inventing numbers, I wrote scripts/evaluate.py, which reports precision, recall and a confusion matrix on files you supply. It refuses to call accuracy meaningful when only one class is present, and the docs state exactly what is untested.

  • Privacy leaks in small places. Checking my own browser storage showed fragments of the user's message (a link host) saved in history. The same matched phrases were also being sent to the LLM explainer. I stripped them from both and added a regression test.

  • Scam rules that mislabelled things. A generic "send money" rule tagged every scam as a UPI scam, and genuine OTP notices ("never share your OTP") looked like OTP requests. I fixed these with type-neutral rules and a negation check, and tested every scam type plus the legitimate cases.

  • Grad-CAM on a Swin transformer. Its tokens come out flattened, so I reshaped the last block's 49 tokens into a 7×7 grid. I also added an occlusion-sensitivity fallback in case it ever fails.

  • PNG report export. Tailwind v4 uses oklch colours, which html2canvas can't parse. Switching to the maintained fork html2canvas-pro fixed it.

  • Environment surprises. Python 3.11 wasn't installed, so I used 3.12. The PyPI package is grad-cam, not pytorch-grad-cam. The GPU was a 2 GB GTX 1050, not the 6 GB RTX 4050 in the brief, so everything runs on CPU. A 20-30 second cold start was fixed with a background model warm-up.

Tracks Applied (1)

AI & Machine Learning

TruthLens is an applied AI/ML system for trust and safety. Pretrained deep models in two modalities. A Swin transformer...Read More

Technologies used

Cheer Project

Cheering for a project means supporting a project you like with as little as 0.0025 ETH. Right now, you can Cheer using ETH on Arbitrum, Optimism and Base.

Discussion

Builders also viewed

See more projects on Devfolio