Dataset
This dataset contains short, user‑generated texts labeled for 4‑class mental health classification: Suicidal, Depression, Anxiety, and Normal. It is a derived dataset created by combining and cleaning three public mental‑health corpora, then re‑labeling them into a unified 4‑class scheme and exporting CSV files suitable for both classical ML and modern NLP models.
The repository includes:
Important: This dataset is intended for research and education only. It is not a clinical tool and must not be used for real‑world diagnosis, triage, or crisis intervention.
mental_heath_unbanlanced.csv
text – Cleaned post or statement text.status – Final label in {Suicidal, Depression, Anxiety, Normal}.mental_health_combined_test.csv
text – Cleaned post.status – Final 4‑class label.mental_health_feature_engineered.csv
Unique_ID, text, status (4‑class label).text_length – Number of characters.word_count – Number of whitespace‑separated tokens.num_urls – Count of URL patterns.num_emojis – Count of emoji characters.num_special_chars – Count of non‑alphanumeric characters.num_excess_punct – Count of repeated punctuation sequences (e.g., !!!, ???, ...).avg_word_length – Average characters per word.This repo is organized at the file level (no HF train/test config baked in). A common convention is:
mental_heath_unbanlanced.csv → train (and derive your own validation split).mental_health_combined_test.csv → test.Example with datasets:
from datasets import load_dataset
ds_train = load_dataset( "your-username/Mental-Health_Text-Classification_Dataset", data_files={"train": "mental_heath_unbanlanced.csv"}, )
ds_test = load_dataset( "your-username/Mental-Health_Text-Classification_Dataset", data_files={"test": "mental_health_combined_test.csv"}, )
print(ds_train) print(ds_test)
text
For the feature file:
ds_fe = load_dataset( "your-username/Mental-Health_Text-Classification_Dataset", data_files={"feature": "mental_health_feature_engineered.csv"}, )
text
This dataset does not collect new data from individuals. Instead, it is built by downloading, cleaning, and merging three existing public resources.[file:64][file:65]
Source datasets:
Suicide and Depression Detection (Kaggle) – Nikhileswar Komati
Reddit posts from suicide‑related communities labeled as suicidal vs non‑suicidal / depression vs control.
https://www.kaggle.com/datasets/nikhileswarkomati/suicide-watch
Sentiment Analysis for Mental Health (Kaggle) – Suchintika Sarkar
Short statements labeled as normal, depression, suicide, anxiety, stress, bipolarity, personality disorder, etc.
https://www.kaggle.com/datasets/suchintikasarkar/sentiment-analysis-for-mental-health
Reddit Mental Health Classification (Murarka et al.)
Dataset released with “Detection and Classification of Mental Illnesses on Social Media using RoBERTa.”
Reddit posts labeled into ADHD, Anxiety, Bipolar, Depression, PTSD, and None.
https://github.com/amurark/mental-health-detection
Only the processed, relabeled, and re‑split samples are redistributed here. Users must obtain the original raw data from the links above if needed.
All source datasets are passed through a common cleaning pipeline:
text or labels (status).Original labels vary widely (suicide vs non, multiple disorders, control). They are mapped to a four‑class scheme:
Samples whose labels cannot be clearly mapped (e.g., stress, bipolar, personality disorder, PTSD, mixed or ambiguous labels) are discarded to keep the final label space clean.
mental_heath_unbanlanced.csv) preserves the natural class imbalance after cleaning and mapping.mental_health_combined_test.csv) is created by:
The feature‑engineered file is generated from the cleaned sentiment subset by adding the numerical text features listed above.
Typical tasks:
Users are encouraged to:
Please cite the original datasets and this derived dataset.
Original datasets
Komati, N. Suicide and Depression Detection [Dataset]. Kaggle.
https://www.kaggle.com/datasets/nikhileswarkomati/suicide-watch
Sarkar, S. Sentiment Analysis for Mental Health [Dataset]. Kaggle.
https://www.kaggle.com/datasets/suchintikasarkar/sentiment-analysis-for-mental-health
Murarka, A., Radhakrishnan, B., & Ravichandran, S. (2021). Detection and Classification of Mental Illnesses on Social Media using RoBERTa [Dataset and code]. GitHub.
https://github.com/amurark/mental-health-detection
This derived dataset
Mukherjee, P. (2025). Mental Health Text Classification Dataset (4‑Class) [Dataset]. Hugging Face Hub.
https://huggingface.co/datasets/ourafla/Mental-Health_Text-Classification_Dataset.