Skip to content
A

AI fraud detection system

Detects fraud and give real time alert

Created on 4th April 2026

•

A

AI fraud detection system

Detects fraud and give real time alert

The problem AI fraud detection system solves

our project is a Real-Time AI-Powered SMS Fraud Detection System that works through a connected Client-Server pipeline.

  1. Capture: An Android background service (BroadcastReceiver) automatically intercepts an incoming SMS on the user's phone the moment it arrives.
  2. Send: The Android app packages the text of that SMS and securely sends it over the internet to a Python Flask server using an asynchronous API call (Retrofit).
  3. Predict: The Python server receives the text and runs it through a trained Multinomial Naive Bayes machine learning model. The model calculates the probability of the words to determine if the message is Fraud (1) or Safe (0).
  4. Respond: The server sends this numerical prediction back to the phone instantly.
  5. Alert: If classified as Fraud, the Android app triggers an immediate on-screen pop-up alert and reads out a warning message aloud using the phone's Text-to-Speech engine to protect the user.

Challenges we ran into

Here is a summary of a highly technical, realistic challenge we can talk about regarding this project.
=> The Bug: App Crashing on Network Call
The Problem: I tried to send the SMS data to the server directly from the main thread, which caused the Android app to instantly crash. Android blocks network calls on the main thread to prevent the app from freezing.
=> The Solution: Switching to Asynchronous Retrofit
How I Fixed It: I used the Retrofit library and its .enqueue() method to send the data on a background thread instead.
The Result: The crashes stopped, and communication with the server became completely smooth without lagging the phone.

Discussion

Builders also viewed

See more projects on Devfolio