Fin Irjmets1681152119
Fin Irjmets1681152119
Fin Irjmets1681152119
Adnan Ghaderi et.al.[6] PHYSIONET KNN, SVM Low, Medium, High 100 sec & 200
sec-98.41% 300
sec- 90%
Nermine Munla et.al. [8] DRIVEDB SVM-RBF, KNN, RBF Normal, Stressed Highest
accuracy SVM-
RBF-83%
Sriramprakash.S et.al.[14] SWELL-KW SVM Stressed, Normal 92.75%
Pre-processing: At this phase, the input data undergoes a series of transformations designed to remove any
details that are irrelevant to the stress detection process. The user's name, residence, age, education, type of
employment, and workplace are all factors considered when conducting a survey. There are null values in
several fields. The dataset has undergone data pre-processing to exclude any extraneous data.
Splitting data: Once the data has been cleaned and organized, it may be split into a training set (consisting of
70% of the data) and a testing set (consisting of 30% of the data) for further analysis.
Stress Detection Model: To identify and categorize user mental stress in this phase, employ the K-Nearest
Neighbor, Decision Tree, and random forest machine learning algorithms. It's a stress level predictor.
DT, KNN and RF classifiers are trained using user stress level classification, which is data gathered from survey
participants. It is possible to classify stress level as a value ranging between 0-9.
Predicted Result: At this step, the model's performance in terms of Accuracy is evaluated.
Algorithm: Learning the Classifiers Input: Dataset D
Output: Trained the classifiers
Step 1: Data Exploration
Step 2: Data Cleaning
Step 3: Data Visualization
Step 4: Data Training
Step 5: Model Creation
Step 6: Performance Evaluation
for the dataset being used
Stress Level: The user's primary goal is to determine the system's stress index. After considerable data had
been gathered, the stress index value was calculated using physical and cognitive data. The user's stress index
value is used to determine the threshold value. The user's EEG data varies depending on their behaviour. Also,
the individual's threshold value must be calculated in order to determine their personal stress level.
Proposed Framework-To implement the mental illness and trauma prediction we first need to import python
libraries (pandas, numpy, seaborn, matplotlib, sklearn)
Data Cleaning: Since Question 7 from the dataset has null values, we will replace them with the mode.
In the same way, graphs are plotted for all the attributes in the dataset.
Data Training:
Random Forest-The random forest is an ensemble of decision trees used to make a more accurate
categorization. By employing bagging and feature randomization to generate each tree, it aims to create a forest
of trees whose collective prediction is more accurate than that of any individual tree.
As its name suggests, Random Forest is a classifier that utilizes many decision trees on various subsets of the
given dataset and then averages the results to improve the dataset's predicted accuracy. The random forest
does not rely on just one set of decision trees, but rather leverages the predictions many to arrive at a final
verdict.
KNN Algorithm-One of the simplest Machine Learning algorithms, K-Nearest Neighbor makes use of the
Supervised Learning approach. The K-Nearest Neighbors (K-NN) method classifies new data or cases based on
their assumed similarities to previously classified data or instances.
IV. RESULTS
V. PERFORMANCE EVALUATION
VI. CONCLUSION
In everyday life, mental stress is a significant concern. It is found many methods are employed to detect stress.
Also, there are a number of datasets that can be used to detect stress. Several classifiers are utilized, and the
accuracy of each is displayed in the summary table. This makes it feasible to recognize stress. According to the
current methodology, stress can be anticipated through facial reading, interviews, and other interactions in
which individuals analyze one another. In this study, a machine learning approach was used to create a system
for predicting user mental stress. Using DT and RF classifiers, the acquired data was classified and a mental
stress prediction was made. DT provides greater accuracy than the RF algorithm.