Skip to content
Ananda Technologies Pvt. Ltd.
  • M.Tech
  • AI & ML
  • Python
  • In build

Stress and Depression Detection

Stress and depression detection M.Tech project with source code: a diary-adapted, temperature-calibrated MentalBERT reads daily journal entries in an Android app and raises a counsellor alert only on multi-day patterns. Includes thesis and IEEE paper.

Platform
AI & ML + Python + Android
Thesis delivery
3–5 days, for you
1-on-1 setup
AnyDesk / Meet
Support
Till your viva

About this project

FULL PROJECT TITLE

Stress and Depression Detection M.Tech Project: Calibrated MentalBERT with Multi-Day Journal Aggregation on Android

Use this title in your synopsis and report.

Stress and depression detection M.Tech project with source code: a diary-adapted, temperature-calibrated MentalBERT reads daily journal entries in an Android app and raises a counsellor alert only on multi-day patterns. Includes thesis and IEEE paper.

About the stress and depression detection M.Tech project

Many students go through long stretches of stress or low mood without telling anyone, yet writing a few lines in a journal comes easily to most of them. This stress and depression detection M.Tech project turns that habit into an early, private signal. A student writes a daily entry in an Android app, a language model reads it, and only when worrying signs repeat over several days does the app suggest the DASS-21 self-test and a counsellor session.

The app is a screening aid, not a diagnosis. That boundary is part of the design and gives your thesis a clear ethics section.

Research behind it

Base paper. The study builds on Calibration of Transformer-Based Models for Identifying Stress and Depression in Social Media, published in IEEE Transactions on Computational Social Systems (2024). It joins extra-linguistic features with BERT and MentalBERT through a gate, uses label smoothing so that confidence matches correctness, and tests on three public social media datasets.

Research gap. Social media posts are public, short and written for an audience. Journal entries are private and first-person, so a model trained only on posts may misread them. Each post is also judged alone, while a student's state shows over days. Finally, when a confidence value triggers an alert to a counsellor, calibration has a direct cost in false alarms.

Proposed system and novelty. MentalBERT first continues its masked language training on diary-style sentences, so it learns how people write about their own day. It is then fine-tuned on Dreaddit and a Reddit depression dataset. Temperature scaling, compared with label smoothing, calibrates the output. Each new entry updates a weighted weekly score, and an alert fires only when that score stays high. A counsellor chosen by the student sees highlighted phrases behind each result.

Models compared. TF-IDF with SVM, a BiLSTM, DistilBERT and the base paper's gated MentalBERT re-implemented, against the proposed model, on public test sets and a journal-style test set. The ablation drops domain adaptation, swaps the calibration method and compares single entries with a multi-day window.

Sentiment at a finer level is the focus of the aspect based sentiment analysis project, if you prefer an NLP topic outside healthcare.

How it works

  • The student opens the app with a PIN and writes the day's entry.
  • The entry goes to the Flask API, where the calibrated model scores it.
  • The score updates the weighted weekly trend on the phone.
  • If the trend stays above the limit, the app suggests the DASS-21 self-test.
  • The student can share the alert and ask for a counsellor session.
  • The counsellor reviews the trend and phrases, adds notes and books a meeting.

Users and modules

There are three roles. The student keeps the journal, sees mood trends, takes the self-test and downloads a summary. The counsellor sees only students who chose to share, reviews charts and phrases, and records session notes. The admin manages accounts and records, checks the dashboard and model comparison page, and sets the window, alert limit and helpline numbers. Journal text stays private unless the student shares it.

What you get

  • Phase 1 Research: Base paper study: calibrated transformers for stress and depression (IEEE TCSS, 2024); Literature survey of 15-20 recent mental health NLP papers; Research gap, novelty and objectives; Dreaddit and depression data EDA notebook; Synopsis and Phase-1 report.
  • Phase 2 Implementation: Android journal app (Java); Flask API, counsellor and admin panels; Baselines and base model re-implementation; Domain-adapted, calibrated MentalBERT; Multi-day aggregation and alert logic; MySQL database and trained models.
  • Results: Macro F1 and recall per class; Calibration error and reliability diagrams; False alerts per week and ablation graphs; results.xlsx and all graphs in high resolution.
  • Thesis and paper: Thesis written for you (about 90 pages); IEEE conference paper draft; Journal paper draft; Publication guide.
  • Reviews, viva and support: PPTs for Review 1, Review 2 and final viva; Viva book with 50+ questions; A1 poster and project diary; Demo and code walkthrough videos; 1-on-1 setup, 2 revisions and support till viva.

Who can use this project

The project suits M.Tech and M.E. students of CSE and IT looking for an NLP dissertation with a social purpose. If you searched for a MentalBERT text classification project, a model calibration temperature scaling project or a mental health NLP Android project, this covers all three, with an app your guide can try live.

Who can take it

M.Tech CSE and M.Tech IT students who need a complete dissertation: research, working project, thesis and paper.

Your thesis stays unique

  • Different title variant for every student
  • Thesis and paper written fresh for you
  • Checked against all earlier copies
  • Same college, same year never repeated

Research behind it

Domain-Adapted and Temperature-Calibrated MentalBERT with Multi-Day Aggregation for Early Stress and Depression Sign Detection from Daily Journal Text

BASE PAPER

Calibration of Transformer-Based Models for Identifying Stress and Depression in Social Media

L. Ilias, S. Mouzakitis and D. Askounis

IEEE Transactions on Computational Social Systems, vol. 11, no. 2, pp. 1979-1990, IEEE (Institute of Electrical and Electronics Engineers), 2024

DOI link Free copy

EXISTING SYSTEM

Recent transformer models detect stress and depression in single social media posts and improve calibration with label smoothing. Private first-person journal text, multi-day patterns and the effect of confidence on real alerts are outside that setting.

PROPOSED SYSTEM

MentalBERT is adapted to diary-style text, fine-tuned on public stress and depression posts and calibrated with temperature scaling. Entry scores are combined over several days before an alert, and the model is compared with TF-IDF and SVM, BiLSTM, DistilBERT and the re-implemented base model.

RESEARCH GAP

  • Experiments use public social media posts; first-person daily journal text, with its different style and length, is not covered.
  • Each post is judged on its own; this work adds a multi-day aggregation so that alerts follow a pattern over time.
  • Calibration uses label smoothing; temperature scaling and the effect of calibration on alert decisions are compared in this work.
  • Adaptation of the language model to diary-style text before fine-tuning is added in this work.

NOVELTY

  • Domain-adaptive pretraining of MentalBERT on diary-style text and testing on a journal-style set, beyond the social media setting of the base paper.
  • Temperature scaling compared with label smoothing, measured by expected calibration error and by false alerts.
  • Exponentially weighted multi-day aggregation that turns entry-level scores into a pattern-based alert.
  • Phrase-level explanations shown only to a counsellor whom the student chooses.

What you get

24 items, in the order you need them during M.Tech. This project is being built: the free abstract is ready now, and our team delivers everything below after you book.

Phase 1 Research

  • Base paper study: calibrated transformers for stress and depression (IEEE TCSS, 2024)
  • Literature survey of 15-20 recent mental health NLP papers
  • Research gap, novelty and objectives
  • Dreaddit and depression data EDA notebook
  • Synopsis and Phase-1 report

Phase 2 Implementation

  • Android journal app (Java)
  • Flask API, counsellor and admin panels
  • Baselines and base model re-implementation
  • Domain-adapted, calibrated MentalBERT
  • Multi-day aggregation and alert logic
  • MySQL database and trained models

Results

  • Macro F1 and recall per class
  • Calibration error and reliability diagrams
  • False alerts per week and ablation graphs
  • results.xlsx and all graphs in high resolution

Thesis and paper

  • Thesis written for you (about 90 pages)
  • IEEE conference paper draft
  • Journal paper draft
  • Publication guide

Reviews, viva and support

  • PPTs for Review 1, Review 2 and final viva
  • Viva book with 50+ questions
  • A1 poster and project diary
  • Demo and code walkthrough videos
  • 1-on-1 setup, 2 revisions and support till viva

Included free with this project

1-on-1 setup session on AnyDesk or Google Meet

After you buy, we schedule a session at a time that suits you. Our developer installs the complete project on your own laptop, runs it with you and explains it — so you can present it with confidence.

  1. 1

    Pick a time

    We call or WhatsApp you to fix the slot

  2. 2

    We install it

    Full setup on your system over AnyDesk

  3. 3

    We explain it

    Flow, modules and database on Google Meet

Modules inside

15 working modules — each one is explained in the report.

  • Student: register, login and set a private journal PIN
  • Student: write daily journal entries with a mood emoji
  • Student: entry-level signal (neither, stress signs, depression signs)
  • Student: weekly weighted trend chart with alert line
  • Student: DASS-21 self-test with score bands
  • Student: request a counsellor session from the app
  • Student: download a PDF wellbeing summary
  • Counsellor: see students who shared alerts or asked for help
  • Counsellor: view trend charts, highlighted phrases and DASS-21 scores
  • Counsellor: add session notes, schedule a session and send a notification
  • Admin: dashboard with alert counts and chart
  • Admin: manage students, counsellors and records
  • Admin: model comparison page (SVM, BiLSTM, DistilBERT, base model, proposed)
  • Admin: settings for aggregation window, alert limit and helpline numbers
  • Profile, change password and notifications for every role

Want an extra module or a change?

We can add the features your guide asked for. Tell us what to change and get a quote on WhatsApp.

Customise this project

Technology used

Built with
Python 3.11, Flask REST API, Jinja2 admin panelPyTorch with Hugging Face Transformers (MentalBERT, DistilBERT)Domain-adaptive masked language model training on Google ColabTemperature scaling and calibration metricsscikit-learn for TF-IDF and SVM baselineCaptum integrated gradients for phrase highlightsAndroid (Java), Material Components, VolleyMySQL (XAMPP) with PyMySQLBootstrap 5 and Chart.js (local copies)Jupyter Notebook for EDA and experiments
Documents
Project abstract (2 pages, Word and PDF), Synopsis (Word and PDF), Phase-1 report (Word and PDF), Thesis / dissertation written for you (Word and PDF, about 90 pages), IEEE conference paper draft (Word), Journal paper draft (Word), Publication guide, Review 1, Review 2 and final viva PPTs, Viva book with 50+ questions and answers, A1 poster (PDF and PPTX), Project diary / logbook and guide meeting record, Setup guide with first-run checklist (Word and PDF), Project explanation with code walkthrough, Demo video and code walkthrough video

How buying works

  1. 1

    Read the free abstract

    Show it to your guide first

  2. 2

    Book on WhatsApp

    Sign in and tap Book

  3. 3

    Our team calls you

    Price, timeline and your details

  4. 4

    Project built for you

    Code, results and videos

  5. 5

    Thesis and paper

    Written with your details

  6. 6

    1-on-1 setup

    Installed and explained

How to run it

An overview — the full guide comes with the project, and we help you if anything doesn’t start.

  1. 1Install Python 3.11 (tick "Add to PATH") and XAMPP; start MySQL in XAMPP.
  2. 2Extract the project ZIP to a short path such as D:\MTech\.
  3. 3Open phpMyAdmin, create the database mtech_mindjournal and import Database\mtech_mindjournal.sql.
  4. 4Check config.py (default XAMPP user root with an empty password).
  5. 5Double-click Web_App\stress_depression_detection\run.bat: it creates the virtual environment and installs the requirements the first time.
  6. 6The browser opens at http://127.0.0.1:5000; log in with the demo accounts from README.txt.
  7. 7Trained models are already in the models folder, so no training is needed for the demo.
  8. 8Open Android_App in Android Studio, let Gradle sync and run the app on a phone or emulator.
  9. 9On the login screen enter the PC IP address (10.0.2.2 for the emulator) so the app reaches the Flask API.
  10. 10Full steps with screenshots and the first-run checklist are in SETUP_GUIDE.pdf.

Questions about Stress and Depression Detection M.Tech…

Which base paper and text datasets is the journal model built on?

The base paper is the calibrated transformer study in IEEE Transactions on Computational Social Systems (2024). Training uses the public Dreaddit stress posts and a Reddit depression dataset, with a small journal-style set kept for testing.

Is it safe to call this a depression diagnosis?

No, and the app never does. It shows signs and trends, suggests a standard self-test and points to a counsellor. This ethical design is explained in the thesis.

What does temperature scaling change in the alerts?

It rescales the model's confidence so that "very sure" really means very likely correct. Your results compare false alerts per week before and after calibration.

Will my thesis match another student's thesis?

No. You receive a separate title variant and a different model change, and your thesis is written fresh. We check it against every earlier copy of this project and keep it under 10% match.

Does the Android app work in Hindi or Hinglish?

The default model reads English. A multilingual model can be swapped in as your change, and the app screens already accept Unicode input.

Stress and Depression Detection M.Tech… is "in build" — what does that mean?

The free abstract is ready now; the code, model and results are being built. Sign in and tap Book this project on WhatsApp: our team calls you, confirms the price and timeline, and delivers the project, thesis, papers and PPTs with your details.

Do I need a GPU or to train the model?

No. The trained model comes with the project. We install and run it on your own laptop in the free 1-on-1 setup session.

My university needs its own thesis format.

Upload your university format in the details form after you pay. Your thesis is written in that format.

Can I see something before buying?

Yes. Sign in and download the free abstract from this page, and check it with your guide first. All sales are final.

Can you publish the paper for me?

You get IEEE conference and journal format drafts and a publication guide with a journal list. Submitting and publishing is done by you and your guide; we do not promise acceptance.

Similar projects

All AI & ML projects →
M.TechIn buildAI & ML40% OFF

Parkinson's Disease Detection M.Tech Project: Calibrated Late Fusion of Voice Features and Smartphone Spiral Drawing on Android

Parkinson's disease detection M.Tech project with source code: an Android app records a sustained vowel and a finger-drawn spiral, and calibrated late fusion of XGBoost voice and MobileNetV3 spiral models gives a screening score. Includes thesis and IEEE paper.

Free abstract· Download₹0
Book on WhatsApp₹15,000₹25,000View Project
M.TechIn buildAI & ML40% OFF

Medical Report Analysis using RAG M.Tech Project: OCR, Hybrid Retrieval and Citation-Grounded Bilingual Lab Explanations

Medical report analysis using RAG M.Tech project with source code: an Android app reads a lab report photo with OCR, retrieves MedlinePlus passages with hybrid search and explains each value in English or Hindi with cited sources. Includes thesis and IEEE paper.

Free abstract· Download₹0
Book on WhatsApp₹15,000₹25,000View Project
M.TechIn buildAI & ML40% OFF

Skin Cancer Detection M.Tech Project: Quantization-Aware MobileNetV3 with Focal Loss for Offline Lesion Classification on Android

Skin cancer detection M.Tech project with source code: a quantization-aware MobileNetV3-Small trained with focal loss classifies seven HAM10000 lesion types offline on an Android phone, with doctor review. Includes thesis and IEEE paper.

Free abstract· Download₹0
Book on WhatsApp₹15,000₹25,000View Project
None of these fit your topic?Send your idea — we build it and share the quote first.Request custom project

Get Stress and Depression Detection M.Tech… for your submission

Leave your details and a counsellor will call to confirm your branch, any changes your guide needs, and how you want to pay.