{"id":19292080,"url":"https://github.com/saranshbansal/rtfd","last_synced_at":"2026-01-19T12:33:02.597Z","repository":{"id":250424419,"uuid":"834439486","full_name":"saranshbansal/rtfd","owner":"saranshbansal","description":"Reat Time Fraud Detection using ML","archived":false,"fork":false,"pushed_at":"2024-08-01T04:55:23.000Z","size":7188,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-05T13:13:35.969Z","etag":null,"topics":["flask","fraud-detection","machine-learning","python","streamlit","transaction-processing"],"latest_commit_sha":null,"homepage":"https://real-time-fraud-detection.streamlit.app/","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/saranshbansal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-27T09:17:56.000Z","updated_at":"2024-08-01T06:04:14.000Z","dependencies_parsed_at":"2024-07-30T10:49:09.824Z","dependency_job_id":"7d235922-7e37-4d31-b5a3-50c378a01c21","html_url":"https://github.com/saranshbansal/rtfd","commit_stats":null,"previous_names":["saranshbansal/rtfd"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/saranshbansal/rtfd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saranshbansal%2Frtfd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saranshbansal%2Frtfd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saranshbansal%2Frtfd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saranshbansal%2Frtfd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/saranshbansal","download_url":"https://codeload.github.com/saranshbansal/rtfd/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saranshbansal%2Frtfd/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28567896,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T08:53:44.001Z","status":"ssl_error","status_checked_at":"2026-01-19T08:52:40.245Z","response_time":67,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["flask","fraud-detection","machine-learning","python","streamlit","transaction-processing"],"created_at":"2024-11-09T22:29:07.413Z","updated_at":"2026-01-19T12:33:02.573Z","avatar_url":"https://github.com/saranshbansal.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Real-time Fraud Detection using Machine Learning\n\n![alt text](static/images/rtfd_base.gif)\n\nThis is a Streamlit application for showcasing real-time fraud detection using machine learning algorithms.\n\nhttps://real-time-fraud-detection.streamlit.app/\n\n## 🗿 History\nEver since the advent of internet the digital revolution has rising and has crept into all aspects to our\nlives. One of the most important digital revolution happened in financial system and especially transacting money to\nsomeone from any part of the world digitally. Digital transactions have become a part of daily life like purchasing a\nproduct online, sending money to friends, depositing cash in bank account, investment purposes etc., They had a lot of\nbenefits so does pave way for fraudulent activities. People started using digital money transactions medium to launder\nmoney and make the money look like it comes from a legal source.\n\n## 🎯 Objective\nThe objective of this application is to find the patterns of transactions performed and help algorithms learn\nthose patterns in identifying the fraudulent transactions and flag them.\n\n## 📌 Goals\n\n- Exploratory analysis of data to extract the pattern of fraudulent activities.\n- Build a machine learning model to classify fraud and non-fraud transactions.\n- Reduce the false negatives by tuning the model.\n\n## 📁 Dataset\nThe dataset used in this project is obtained from the file [PS_20174392719_1491204439457_log.csv](https://www.kaggle.com/datasets/ealaxi/paysim1). \nIt contains transaction logs with various features including `step, type, amount, nameOrig, nameDest, isFlaggedFraud, and isFraud`.\n\n### Dataset description\n\n`step` - maps a unit of time in the real world. In this case 1 step is 1 hour of time. Total steps 744 (30 days simulation).\n\n`type` - CASH-IN, CASH-OUT, DEBIT, PAYMENT and TRANSFER.\n\n`amount` - amount of the transaction in local currency.\n\n`nameOrig` - customer who started the transaction\n\n`oldbalanceOrg` - initial balance before the transaction\n\n`newbalanceOrig` - new balance after the transaction\n\n`nameDest` - customer who is the recipient of the transaction\n\n`oldbalanceDest` - initial balance recipient before the transaction. Note that there is not information for customers that start with M (Merchants).\n\n`newbalanceDest` - new balance recipient after the transaction. Note that there is not information for customers that start with M (Merchants).\n\n`isFraud` - This is the transactions made by the fraudulent agents inside the simulation. In this specific dataset the fraudulent behavior of the agents aims to profit by taking control or customers accounts and try to empty the funds by transferring to another account and then cashing out of the system.\n\n`isFlaggedFraud` - The business model aims to control massive transfers from one account to another and flags illegal attempts. An illegal attempt in this dataset is an attempt to transfer more than 200.000 in a single transaction.\n\n## 📥 Installation\n\n1. Clone the repository:\n\n   `git clone https://github.com/your-username/your-project.git`\n\n2. Navigate to the project directory:\n\n   `cd your-project`\n\n3. Create a virtual environment (optional but recommended):\n\n   `python -m venv env source env/bin/activate`\n\n4. Install the required dependencies:\n\n   `pip install -r requirements.txt`\n\n5. Set up the environment variables (if applicable):\n\n   `export SECRET_KEY=your-secret-key`\n\n   `export DATABASE_URL=your-database-url`\n\n6. Run the Streamlit application:\n\n   `streamlit run streamlit_app.py`\n\nThe application should now be running at `http://localhost:8502`.\n\n## Screens\n![alt text](static/images/app_5.png)\n![alt text](static/images/app_4.png)\n![alt text](static/images/app_3.png)\n![alt text](static/images/app_2.png)\n![alt text](static/images/app_1.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaranshbansal%2Frtfd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaranshbansal%2Frtfd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaranshbansal%2Frtfd/lists"}