SafeSG is a community-driven platform designed to protect users, especially the elderly, from scammers and phishing attempts. Users can upload screenshots of suspicious calls and emails, and our app will analyze the data using advanced AI techniques such as Language Model Testing (LLM) and Optical Character Recognition (OCR) to identify potential scams. By leveraging community reports and AI-driven validation techniques, SafeSG helps keep users informed and safe, even those with limited technical literacy who are most vulnerable to financial scams such as phishing/smishing. You can read more about our Business Case here.
SafeSG is developed to combat the rising threat of scams and phishing attempts. With an intuitive interface and powerful backend, SafeSG allows users to quickly and easily report and verify suspicious activities, making it accessible and user-friendly for individuals of all technical backgrounds.
- Screenshot Upload: Users can upload screenshots of incoming calls and emails.
- Text Extraction: SafeSG employs advanced Text Extraction techniques, including Language Model Testing (LLM), to extract text from screenshots automatically.
- Message Analysis: Utilizing LLM, SafeSG analyzes the extracted text from screenshots to identify potential scam content and phishing attempts.
- Phone Number Verification: Extracts phone numbers from screenshots and checks against a database of known scam numbers.
- Email Validation: Extracts email addresses from screenshots and verifies their legitimacy by checking against official bank emails and known scam lists.
- Community Reports: A crowdsourced database where users can report and share their experiences with scams.
- Real-Time Alerts: Receive notifications about new scams reported in your area.
- Educational Resources: Access to tips and articles on how to recognize and avoid scams.
- Frontend: Flutter
- Backend: npm (Node.js), Ollama
Follow the official Flutter installation guide to install Flutter on your development machine. Ensure that you have Flutter properly installed and configured before proceeding to the next steps.
Clone the SafeSG repository from GitHub to your local machine using the following commands in your terminal:
git clone https://github.com/yourusername/SafeSG.git
cd SafeSGReplace yourusername with your GitHub username.
Make sure flutter is installed beforehand. You can refer to here.
Navigate to the frontend directory within the SafeSG repository and install the necessary dependencies by running the following command:
cd frontend
flutter pub getThis will install all the required packages for the Flutter frontend.
Once the dependencies are installed, you can run the SafeSG application using the following command:
flutter runFor your convenience, you can test on web browser such as chrome.
flutter run -d chromeWe use Ollama for its simplicity and ability to run large language models (LLMs) even on non-GPU intensive machines. You can install Ollama by visiting ollama.com and following the installation instructions for your operating system.
After installing Ollama, you can select your preferred LLM model from the options available on the Ollama GitHub repository. Choose a model that best fits your needs and download it to your local machine.
To start using Ollama locally, run the command ollama serve in your terminal. This initializes and runs Ollama on your machine. Make sure to run this command whenever you need to interact with Ollama.
If you want to create a custom model, you can use the ollama create command. For example, to create a model named sgsmodel, you can run:
ollama create sgsmodel -f model/modelfile
Replace model/modelfile with the path to your model file.
Ensure that Ollama is running locally before starting your application. You can start your application by running
npm start
This will start the backend and run your application, allowing it to interact with Ollama.
Make sure that all three components - frontend, backend, and Language Model (LLM) - are set up and running properly to ensure the app functions as intended. With everything in place, you'll never have to worry about getting scammed again. Have fun!
Welcome to SafeSG! Protect yourself from scams by uploading screenshots of suspicious calls, texts, or emails.
- Tap on the "Check for Scam" button.
- Select a screenshot of an incoming call or email.
- The app will automatically extract phone numbers or email addresses and the message content.
- The extracted data is checked against our database of known scam numbers and emails.
- Users receive immediate feedback on whether the number or email is likely to be a scam.
- If you identify a scam, report it to the community through the app.
- Your report will help others stay informed and avoid similar scams.
Enable notifications to receive real-time alerts about new scams reported in your area.
Access a library of articles and tips on how to stay safe from scams.
Welcome to our team page! Meet the talented individuals driving our projects forward:
Low Ye Yang, Caleb LinkedIn | GitHub
Gui Ling Ling LinkedIn | GitHub
Yap Zher Xiang, Jason LinkedIn | GitHub
Together, we form a dynamic team dedicated to pushing boundaries and delivering exceptional results. Connect with us to learn more about our projects and achievements.






