Skip to content

Enhance aims to resolve the subject of mental issues among individuals by offering a secure, anonymous environment. Any person can freely discuss his/her problem with other individuals suffering from the same issue with qualified counsellors who can provide solutions to their problems.

License

Notifications You must be signed in to change notification settings

adnanhakim/enhance

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Enhance

About

Enhance aims to resolve the subject of mental issues among individuals by offering a secure, anonymous environment. Any person can freely discuss his/her problem with other individuals suffering from the same issue with qualified counsellors who can provide solutions to their problems.

The platform discusses the topic of identification of internet harassment and related question matching. The principle purpose of this platform is to increase positive mental development among individuals as well as to show ways of identifying harassment and question similarities.

Technology Stack

  1. Web Application developed using React.js
  2. Mobile Application developed using Flutter
  3. Backend developed using Node.js/Express
  4. ML Backend developed using Flask
  5. User authentication using Passport.js
  6. Data stored in cloud via MongoDB Atlas

ML Algorithms

Abuse Detection Algorithm

This section discusses the dataset used for online abuse detection, data preprocessing and the algorithm used for the classification of the sentence into different classes.

We made use of a Twitter sentences dataset that consists of 24,802 labelled tweets, in which each tweet was voted by a certain number of individuals and classified into three categories: "Hate speech", "Offensive Language" and "Neither". After preprocessing the data and removing undesirable words, punctuations, numbers, and emoticons various classification algorithms were executed on the data.

Logistic regression was selected as the primary classification algorithm to conduct the analysis. To improve the model, a Grid search combined with K-fold cross-validation was performed. The dataset was then trained and tested on a 90-10 train-test split. Before fitting it into the logistic regression model, data preprocessing steps were carried out.

The best performing model had an overall precision of 0.87, recall of 0.83, and F1 score of 0.83. The accuracy of the model was around 82%.

Semantic Similarity Algorithm

This section discusses the dataset used for semantic similarity, data preprocessing and the algorithm used for the comparison of sentences.

We used a BERT model and data from the Stanford Natural Language Inference corpus to predict semantic similarity with transformers. The BERT model takes two sentences as input and provides a similarity score between them and categorizes them into various classes. For training the model, 100,000 sample sentences were used. As for training and validation purposes, 10,000 sentences were used. The sentences are classified into three separate groups in the dataset: Contradiction, Entailment, and Neutral and are assigned similarity scores based on one of these categories.

In our model, we first loaded and preprocessed the data that generated a data generator. In this data generator, we performed tokenization and the procedure of Masked LM. We then built the model and carried out training and tested it against the validation data. One of the most crucial steps of the model, fine-tuning, was executed with a low learning rate. This step helped improve the pre-trained features of the new data. After fine-tuning, we once again retrained the model and then evaluated the model on the test data. The model accuracy is around 79%.

Developers

LICENSE

Copyright 2021 Adnan Hakim

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

About

Enhance aims to resolve the subject of mental issues among individuals by offering a secure, anonymous environment. Any person can freely discuss his/her problem with other individuals suffering from the same issue with qualified counsellors who can provide solutions to their problems.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published