{"id":21064164,"url":"https://github.com/somenath203/suicide-depression-predictor","last_synced_at":"2026-04-13T14:31:40.371Z","repository":{"id":193631459,"uuid":"689205990","full_name":"somenath203/Suicide-Depression-Predictor","owner":"somenath203","description":"Click below to checkout the website live","archived":false,"fork":false,"pushed_at":"2023-09-21T13:19:56.000Z","size":4789,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-01T12:24:30.872Z","etag":null,"topics":["docker","dockerfile","fastapi","jupyter","machine-learning","ml","react","reactjs","render","support-vector-classifier","support-vector-machine","sweetalert2","tailwind","tailwindcss","vercel"],"latest_commit_sha":null,"homepage":"https://suicidal-thought-and-depression-predictor-frontend.vercel.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/somenath203.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":"2023-09-09T04:57:44.000Z","updated_at":"2024-06-18T19:57:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"b4be4a5d-5ddc-467c-85d7-bbe67e815902","html_url":"https://github.com/somenath203/Suicide-Depression-Predictor","commit_stats":null,"previous_names":["somenath203/suicide-depression-predictor"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/somenath203/Suicide-Depression-Predictor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/somenath203%2FSuicide-Depression-Predictor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/somenath203%2FSuicide-Depression-Predictor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/somenath203%2FSuicide-Depression-Predictor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/somenath203%2FSuicide-Depression-Predictor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/somenath203","download_url":"https://codeload.github.com/somenath203/Suicide-Depression-Predictor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/somenath203%2FSuicide-Depression-Predictor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31757477,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T13:27:56.013Z","status":"ssl_error","status_checked_at":"2026-04-13T13:21:23.512Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["docker","dockerfile","fastapi","jupyter","machine-learning","ml","react","reactjs","render","support-vector-classifier","support-vector-machine","sweetalert2","tailwind","tailwindcss","vercel"],"created_at":"2024-11-19T17:48:35.182Z","updated_at":"2026-04-13T14:31:40.348Z","avatar_url":"https://github.com/somenath203.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Suicide-Depression-Predictor\n\n## Contents\n\n- [Introduction](#Introduction)\n- [Components of the Project](#Components-of-the-Project)\n- [About the Frontend of the Project](#About-the-Frontend-of-the-Project)\n- [About the Backend of the Project](#About-the-Backend-of-the-Project)\n- [About the Machine Learning Model](#About-the-Machine-Learning-Model)\n- [Deployment](#Deployment)\n- [Links](#Links)\n- [Contributions](#Contributions)\n- [Warning](#Warning)\n\n\n\n## Introduction \n\nThe Suicide-Depression-Predictor is a healthcare project that uses machine learning to predict the risk of suicide and depression in individuals. It can be used to identify those who are at risk of suicide or depression so that they can receive early intervention and treatment.\nThe Suicide-Depression-Predictor is a valuable tool for mental health professionals, as it can help them to better understand the risk factors for suicide and depression. It can also be used to raise awareness of suicide and depression, and to promote suicide prevention.\n\n## Components of the Project\n\nThe project is divided into three parts: Frontend, Backend and the Machine Learning Model\n\n## About the Frontend of the Project\n\nThe user-friendly frontend of this project is built with ReactJS and TailwindCSS. It allows users to make predictions about their risk of suicide or depression using voice-to-text technology. Here, the user have\nto speak through there mic and then, when the user has finished speaking, all the words spoke by the user will be displayed in the textarea. The user can then submit the response to get the desired prediction and the result of the prediction will be shown in the form of a sweetalert modal.\n\n## About the Backend of the Project\n\nThe backend of this project is created with the help of FastAPI. After the user clicks on Submit Button in the frontend, the response is send to the FastAPI via axios and then FastAPI forwards this response to the machine \nlearning model for the prediction\n\n## About the Machine Learning Model\n\nThe machine learning model of this project is created with the help of Support Vector Classifier. The accuracy on training data is around 95% while the accuracy on test data is around 90% and the model is trained \non a dataset of 10,000 datapoints where 5000 datapoints belong to the category of 'suicical/depression thoughts' and the other 5000 datapoints belong to the category of 'non suicical/depression thoughts'.\n\n## Deployment\n\nThe frontend of the project is deployed in Vercel whereas the backend of the project is deployed in Render with the help of Docker.\n\n## Links\n\nLive preview of the project: https://suicidal-thought-and-depression-predictor-frontend.vercel.app/\n\nLink to the deployed API of the project: https://suicidal-thought-depression-predictor.onrender.com/\n\nLink to the swagger documentation of the backend API of the project: https://suicidal-thought-depression-predictor.onrender.com/docs\n\nLink to the jupyter notebook of the machine learning model: https://github.com/somenath203/Suicide-Depression-Predictor/blob/main/backend/suicide_depression_classification.ipynb\n\nLink to the dataset used to train the machine learning model: https://www.kaggle.com/datasets/nikhileswarkomati/suicide-watch\n\n## Contributions\n\nI have designed the entire frontend of this project whereas my teammate Vishal Lazrus created the entire backend FastAPI and the machine learning model.\n\n## Warning\n\nAlthough the model is able to classify between 'suicical/depression thoughts' and 'non suicical/depression thoughts', but, since, it is only trained on a small dataset of only 10,000 datapoints, therefore,\nthere is a chance that, in some cases, the model might make wrong predictions.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsomenath203%2Fsuicide-depression-predictor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsomenath203%2Fsuicide-depression-predictor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsomenath203%2Fsuicide-depression-predictor/lists"}