On-Device Wellbeing Journal with Private Mood and Sentiment Trends
A private mobile journal that analyses mood and sentiment trends entirely on the phone, with encrypted entries that never leave the device. A final year project in on-device NLP and privacy engineering, where proving that nothing is transmitted matters as much as the model.
Intermediate
A small team, or one strong student willing to learn something new.1 semester · 2 students
7 to ship
4 optional extrasSuggested stack
What you should ship
- Encrypted local storage with a key derived from the user passphrase or protected by device biometrics and the platform keystore
- On-device sentiment and emotion classification with no network calls, using a quantised model shipped in the app
- Trend visualisation over weeks with optional tags for activities and sleep
- Explicit crisis handling: defined phrases surface local support resources, and the app makes no clinical claim
- Privacy verification: network traffic capture during a full session proving no data leaves the device, included in the report
- A measured comparison of the on-device model against a larger reference model on the same labelled test set
- A plain-language privacy page inside the app that matches what the code actually does
If you have time left
- Correlation between logged activities and mood, presented as association rather than cause
- Encrypted export and restore controlled entirely by the user
- Urdu or Roman Urdu entries handled by a fine-tuned small model
- A lock-on-background setting and a quick wipe option
The problem with mood tracking apps
People write their most private thoughts into journaling and mood apps. Mozilla's Privacy Not Included research found that many popular mental health and prayer apps track and share users' intimate data, and that privacy policies are often worse than users assume. There is no technical need for this: a phone today can store encrypted text and run a small language model locally. What is missing is an app that is built around that fact and can prove it.
What already exists and the gap
- Daylio is a mood tracker that stores data locally on the phone with optional backups to the user's own cloud storage. It relies on mood icons and activities rather than analysing free text.
- Stoic is a journal with prompts and AI features; some processing runs on-device on Apple devices, but privacy options differ by platform and plan.
- Day One is a polished journal with encrypted sync, built for writing rather than mood analysis.
The gap is a journal that analyses free-text entries for sentiment and emotion entirely on the device, encrypts everything at rest, and ships with evidence, not just a policy, that nothing is transmitted. It is the same design principle behind Apple's and Google's push for on-device ML: the most sensitive data should not need a server.
What you build
One user, one device:
- Write entries with optional mood, activities and sleep tags.
- Each entry is classified on the device for sentiment and a small set of emotions.
- A weekly and monthly view shows trends and which tags co-occur with better or worse days.
- The app is locked by passphrase or biometrics and the database is encrypted.
- If an entry contains defined crisis phrases, the app immediately shows local support resources.
The technically interesting part
The privacy architecture and its proof. Derive or protect the database key with the platform keystore, encrypt with SQLCipher, and ensure the model and all assets ship in the app so there is no network call at all. Then prove it: route the phone through mitmproxy and capture traffic during a full session, including first launch. A verified claim is worth far more than a stated one, and the verification method is a contribution in itself.
The accuracy trade-off. On-device models are smaller and less accurate than server models. Label a test set (a public emotion dataset plus a small set of your own, written for the purpose, not real users' diaries), and compare your quantised model against a larger reference model run offline on a laptop. Report the gap and argue whether the privacy gain is worth it.
How to evaluate it
- Network evidence: traffic capture showing zero requests during a scripted session, with the method described so others can repeat it.
- Model quality: accuracy and F1 per class for the on-device model versus the reference, on the same test set.
- Performance: inference time per entry and app size on a mid-range Android phone.
- Crisis handling: a test list of phrases, including tricky negatives, with expected behaviour, all passing.
- Usability: 6 to 8 participants use it for a week; report whether they trust the privacy claim and why.
Suggested plan
- Weeks 1 to 2: review privacy research and competitors; write the threat model and the ethical boundaries.
- Weeks 3 to 5: encrypted storage, lock, entry editor.
- Weeks 6 to 8: model selection, quantisation, on-device inference, test set.
- Weeks 9 to 11: trends, tags, crisis handling, in-app privacy page.
- Weeks 12 to 15: traffic capture, model comparison, user week, write-up.
Path to a product
Privacy-conscious users do pay for tools they trust. A one-time purchase or a small yearly fee for extras such as encrypted export and themes fits better than ads, which would contradict the whole design. Open-sourcing the app builds trust and is a strong portfolio signal for mobile and privacy engineering roles. A later version could be offered to university counselling services as a private tool students keep for themselves, never a monitoring tool.
Scope warning
This is a journal, not a mental health intervention. It must not diagnose, score anyone against a clinical scale, or imply treatment. Crisis handling must be designed, tested and described in the report, and if your institution has an ethics process, this project goes through it. No social features, no sharing, no cloud backup by default: every network feature undermines the project.
Learn what you need on Sefism
- Mobile roadmap : Flutter, secure storage and platform APIs.
- Machine learning roadmap : classification, evaluation and model compression basics.
- Machine learning cheat sheet : precision, recall and F1 for your comparison.
- OWASP Mobile Application Security (MASVS and MASTG) : storage, crypto and network testing guidance.
- Android Developers: Develop for Android : keystore and on-device ML documentation.
Get help with this idea
Supervisors respond well to a privacy claim backed by evidence, so bring your traffic capture plan and your crisis-handling design early. Tauseef can help you tighten the scope, choose a stack your team can finish with, and design an evaluation your examiners will respect. If you are new here, create a free account first.
Ideas and guidance, not finished projects
These are project ideas and scoping guidance, published free for students to use as a starting point. I do not build, write, or sell final-year projects, and I do not complete coursework for anyone. Take an idea, make it yours, and build it.
Not sure this one fits you?
I help students pick an idea that matches their skills and their deadline, then scope it down until it is finishable. Guidance only, never done for you.
Stuck on something specific?
Writing only gets you so far. If you want an answer to your situation rather than the general case, book a session and we will work through it together. Sessions are free for approved Sefism members, and a few slots open each week.
Follow along
New writing, resources and project ideas land here first.