ALL Metrics
-
Views
-
Downloads
Get PDF
Get XML
Cite
Export
Track
Software Tool Article
Revised

MOODMIND: A Pilot Feasibility Study of Artificial Intelligence for Major Depressive Disorder Screening in Tuberculosis Patients

[version 2; peer review: 1 approved, 2 approved with reservations]
PUBLISHED 19 Mar 2026
Author details Author details
OPEN PEER REVIEW
REVIEWER STATUS

This article is included in the Artificial Intelligence and Machine Learning gateway.

This article is included in the AI in Medicine and Healthcare collection.

Abstract

Background

Major Depressive Disorder (MDD) can occur in patients with tuberculosis. The purpose of this research was to develop an early detection system for MDD and conduct an accuracy test.

Methods

The MOODMIND application uses Natural Language Processing (NLP) with sentiment analysis techniques. MOODMIND offers both speech and text options and is available in Indonesian/English. The screening results were compared with physician clinical interview. Single blinding was used so that doctor was unaware of the application test.

Results

The app asks open- and closed-ended questions for MDD identification based on the DSM-5. The test results were divided into non-depressive (none or at-risk) and suspected depression groups. Among the 21 subjects, MOODMIND showed 67% (95% CI: 9.4–99.2%) sensitivity and 100% (95% CI: 81.5–100%) specificity.

Conclusions

MOODMIND demonstrated accuracy results in pilot study but required advanced research with more sample and diverse settings. Ease is advantageous because the steps are simple, but it can be improved by adding words related to depression in the lexicon adjustment for increasing diagnostic performance.

Keywords

Artificial intelligence, depression, detection, tuberculosis, Natural Language Processing 

Revised Amendments from Version 1

We have carefully revised the manuscript in response to the reviewers’ feedback and made several important improvements.
First, the title has been adjusted to Pilot Feasibility Study. This change ensures that the study is positioned appropriately as an early-stage evaluation rather than a definitive diagnostic validation.
Second, 95% confidence intervals have been added to the sensitivity and specificity results.
We also clarified that structured diagnostic interviews such as SCID or MINI were not used as the reference standard. Instead, physician clinical interviews were employed, and this is acknowledged as a methodological limitation.
In addition, expert validation was conducted prior to pilot testing, involving primary care physicians and IT specialists.
The rationale for the selected risk thresholds has also been clarified.
We further added a statement acknowledging that suicidality screening is not yet integrated into the current version of MOODMIND, recognizing this as an important area for future development to ensure patient safety.
Finally, claims regarding performance and applicability have been made more cautious, emphasizing that these findings are preliminary and require validation in larger and more diverse populations.

See the authors' detailed response to the review by Masab Mansoor

1. Introduction

Tuberculosis (TB) is a chronic infectious disease that requires at least 6 months of therapy. Psychiatric conditions are important because patients with TB can experience social stigma, worries about their illness, or difficulties during treatment. Depression has a strong effect on negative outcomes.1 Individuals who undergo treatment with second- and third-line medications are at a greater risk of stigma and depression.2

Depression also affects the immune system by lowering CD3, CD4, C8, and lymphocyte.3 Low serum anti-inflammatory cytokine levels are observed in patients with Major Depressive Disorder (MDD)-TB. Recognition of MDD in patients with TB will be more appropriate for diagnosis, treatment, and prognosis.4

Afaq et al. (2023) reported that 35% of TB patients diagnosed with depression in varying levels.5 Researchs in Indonesia stated that the proportion of depression in TB patients is 5.38%6 and in MDR TB (Multidrug Resistance Tuberculosis) of 68.3% consists of mild, moderate, and severe.7 The integration of mental health services in the management of TB patients still faces obstacles, namely the lack of patient knowledge about depression.8 Patients feel unnecessary or even reluctant to have a depression screening because they are worried about receiving a double stigma. The obstacle experienced by officers is limited time in service.5,9

The prevalence of major depression is 322 million worldwide10 and some patients do not seek help. Major depression has the potential to lead to suicide. Questionnaires and screening tools have been developed, but most use closed-ended questions, such as the Mental Health Screening Tool for Depressive Disorders (MHS:D).11

Zotova et al. (2024), researched on the use of Patient Health Questionnaire-9 (PHQ-9) and stated that respondents’ understanding of the PHQ-9 question is sometimes incorrect, one of which is due to different cultures.12 The Beck Depression Inventory-Second Edition (BDI-II) uses longer questions.8 PHQ-9 and BDI-II have been validated in a wide range of populations, but limited patient involvement and understanding of the questions. Obstacles can occur in individuals with low literacy, or in diseases (e.g. TB) that are susceptible to stigma. A dialogue-based digital approach can be more interactive and adapted to the context of the disease. The conversation-based screening method is expected to be more convenient and accepted by users in multicultural background.

Natural Language Processing (NLP) is an artificial intelligence capable of analyzing and interpreting words.13 NLP can be used remotely for the real-time detection of depression. Studies have built systems with NLP to analyze the signs of depression based on comments on social media, such as mental health. The researchers compared mental health with the PHQ-9 to determine the accuracy of the system.14

The NLP techniques used include sentiment analysis, linguistic markers, word embedding, convolutional neural networks, recurrent neural networks, and large language models. Sentiment analysis examines the tone of emotions in a text, referring to depression if a negative language is identified.15

Based on the above description, a web-based application was built to screen for MDD using sentiment analysis. The software provides an alternative with open-ended questions on the two key symptoms for the diagnosis of major depression in both Indonesian and English. Through early detection, it is hoped that depression can be treated immediately and that this will increase the chances of successful treatment.

2. Methods

A. MOODMIND development

The project is part of an effort to examine tuberculosis patients holistically by developing AI-based tools for detecting MDD.

1. Ethical considerations

The ethics committee of YARSI University reviewed the ethical clearance number 114/KEP-UY/EA.20/III/2025.

2. Implementation

MDD is diagnosed if it meets the criteria of five or more symptoms (there is at least one symptom point a or b) for at least two weeks.16 Figures 1 and 2 illustrate the concept of MOODMIND, respectively.

af8ac66b-e14a-45b0-8f40-a52ce84ebf1f_figure1.gif

Figure 1. MOODMIND application concept for Major Depressive Disorder (MDD) screening.

af8ac66b-e14a-45b0-8f40-a52ce84ebf1f_figure2.gif

Figure 2. Conceptual framework for MOODMIND application development.

3. Operation

The software can be accessed via the following link: https://moodmind-two.vercel.app/.

3.1 Technologies

MOODMIND used Next.js for Frontend Framework, Tailwind CSS, and Web Speech API for Speech Recognition. The Programming Languages are TypeScript and JavaScript.

3.2 Main components

VoiceChat.tsx manages the voice input, transcripts, and conversation flow control. UseSpeech.ts for customizing hooks to control speech recognition status. The scripts provide questions and response scripts.

3.3 Depression detection methodology

The detection approach was based on several text-based indicators derived from voice transcription, namely, language patterns and depression-related keywords.

3.4 User experience flow

Users open the web-based application and answer system questions using voice or text. The system processes the transcription using sentiment analysis. The results of the analysis are displayed in visual and narrative forms.

3.5 Adaptation for tuberculosis

MOODMIND was adapted with a custom sentiment dictionary, focusing on common terms in Bahasa Indonesia that were reported by patients with TB when experiencing emotional distress.

3.6 Implementation details in sentiment analysis integration

As part of its natural language processing features, this system is equipped with a sentiment analysis module to evaluate the emotions contained in voice recognition transcripts. Sentiment analysis aimed to identify the emotional orientation (positive, negative, or neutral) of a statement, which, in this context, was used to detect indications of mood and enthusiasm in patients. Sentiment analysis was performed using the sentiment library, an open-source JavaScript library that supports lexicon-based analysis.

Lexicon adjustments for Indonesian

By default, a sentiment library supports the English language. To support Indonesians, a special dictionary (lexicon), consisting of a list of words and their sentiment scores, was identified.

This list of words was based on commonly used terminology to express negative emotional states, and was obtained through discussions between research members (Figure 3).

af8ac66b-e14a-45b0-8f40-a52ce84ebf1f_figure3.gif

Figure 3. Special dictionary related to depression in Indonesian.

Sentiment analysis process

After the user provides voice input, which is then transcribed into text, the system performs sentiment analysis of the text. The following functions were used to perform the analysis (Figure 4). The getSentiment function accepts three parameters: the transcribed text, the sentiment dictionary, and the language code (“id” for Indonesian or “en” for English). If the selected language was Indonesian, the library was registered using a specially compiled dictionary.

af8ac66b-e14a-45b0-8f40-a52ce84ebf1f_figure4.gif

Figure 4. Sentiment analysis process in MOODMIND.

Analysis results

The result object returned by the analysis () function contains several attributes that provide an overview of the emotional content of the analyzed text, including the score of text sentiment (positive, negative, or neutral), comparative (the normalized score value relative to the number of tokens), tokens resulting from text segmentation, words identified as having sentiment meaning, and positive/negative words recognized in the text.

By integrating this sentiment analysis, the system automatically detects emotional indicators and provides additional data for depression-screening processes. If negative sentiments related to feelings or interests are found in the last two weeks, then it is followed by closed questions.

Classification Rules

Given the pilot nature of this study, the threshold is not statistically optimized but is intended to detect MDD with clinical logic. The threshold values used for risk categorization are derived from clinical references (DSM-5).

Expert Validation

Prior to the pilot implementation, MOODMIND was reviewed through expert validation. A psychiatrist and two primary care physicians evaluated the clinical relevance of the question flow, mapping the symptoms to the DSM-5 criteria, and categorization of screening results. An information technology expert assesses technical implementations, including speech-to-text processing and lexicon integration.

B. Accuracy test

Quantitative research was carried out with a cross-sectional design and aimed at testing the accuracy of MOODMIND. The research population was drug-sensitive TB patients accompanied by YARSI TB Care cadres. The inclusion criteria were patients aged 17-65 years, had undergone TB treatment for more than 1 month, and were willing to be the subject of the study. Exclusion criteria include patients who could not be contacted and had incomplete data.

Informed Consent was carried out in writing using an electronic questionnaire. Parents or guardians would be asked for written consent (using an electronic questionnaire) for patients who are 17 years old. The samples were taken by purposive sampling in the May-July 2025.

Data collection was obtained by interview, comparing the results of detection with MOODMIND physician clinical interview. The standard reference for MDD in this study was a clinical interview by a physician using diagnostic criteria based on the DSM-5.16 The doctor asked 9 questions systematically consisting of MDD symptoms (2 core symptoms and 7 additional symptoms), then classified as MDD if there were at least 5 symptoms (at least 1 core symptom accompanied by additional symptoms). The interview was conducted for 10-15 minutes (A list of questions is available in the Data Availability section link).

Structured interviews such as SCID (Structured Clinical Interview for DSM Disorders) or MINI (Mini International Neuropsychiatric Interview) were not used, this was a methodological limitation. Univariate analysis using Microsoft Excel to calculate sensitivity, specificity, positive predictive value, and negative predictive value. Single blinding was done to the doctor so that she did not know the results of detection with MOODMIND.

4. Results

4.1 Expert validation and usability feedback

Expert feedback results in improvements in audio clarity and transcription synchronization. Improvements were made to the naturalness of the sound. After revision, the system was considered stable and easy to use for pilot testing.

4.2 Use cases

MOODMIND users can select the languages (English and Indonesian) (Figure 5a). Users can choose either the written or voice mode of conversation (Figure 5b). Users’ answers were categorized into 3, namely not depressed (score/symptom = 0), at risk of depression (score/symptom = 1-4), and suspected depression (score/symptom ≥ 5) (Figure 5c). The word “Suspected depression” was used because the diagnosis by the doctor must be carried out and the patient should receive the necessary consultation. The role of a doctor/officer cannot be replaced by AI because of empathy and direct interaction with a human being. MOODMIND does not currently include a suicidality referral flow. In clinical implementation, it is necessary to ensure patient safety. Figure 6 shows the MOODMIND System Processing Pipeline.

af8ac66b-e14a-45b0-8f40-a52ce84ebf1f_figure5.gif

Figure 5. a. Front page of MOODMIND. b. Conversation flow in MOODMIND. c. Result of test in MOODMIND.

af8ac66b-e14a-45b0-8f40-a52ce84ebf1f_figure6.gif

Figure 6. MOODMIND system processing pipeline.

4.3 Accuracy test

We conducted tests on 21 patients with TB in Central Jakarta between May and July 2025 (Figure 7). The average age of patients was 41.4 years with an age range of 19-64 years. The patient was guided by the researcher when using MOODMIND, whereas the doctor was blinded and did not know the results of the software detection.

af8ac66b-e14a-45b0-8f40-a52ce84ebf1f_figure7.gif

Figure 7. The flowchart of patients recruitment.

Table 1 shows a comparison of MOODMIND detection with the physician clinical interview, while Table 2 shows the accuracy level of the software. The sensitivity was 67% (95% CI: 9.4–99.2%), and specificity was 100% (95% CI: 81.5–100%), reflecting the limited precision due to small sample size. The small number of samples was considered in interpreting the results of sensitivity and specificity.

Table 1. MOODMIND screening and Physician Clinical Interview results.

AI MOODMINDAutoanamnesis Total
Negative Positive
Negative18119
Positive022
Total18321

Table 2. Analysis of MOODMIND screening results on Physician Clinical Interview.

Test Percentage
Sensitivity67%
Specificity100%
Positive predictive value100%
Negative predictive value95%

5. Discussion

The MOODMIND application was equipped with sentiment analysis by searching for keywords and analyzing sentiments in Indonesian. The Lexicon technique is used to make a list of words and score sentiments for each word.17 Other research has identified the keywords depression, symbols, and expressions through social media.18,19 Existing depression detection systems/applications such as “Mental Care” which asked 21 questions to respondents,20 Multi-Gated LeakyReLU processed depressive language using CNN,21 while another study analyzed expressions that did not directly use specific words.22

The results of this pilot study obtained a sensitivity of 67%. MOODMIND can be used as an initials screening tool in a variety of settings, not only in healthcare but also in the community. However, for negative cases with high risk, it is recommended to continue undergoing further clinical assessments. High-risk MDD-TB patients include MDR TB,23 have comorbidities,24 and get stigmatized.25

Artificial intelligence usually requires the ability of the user.26 However, MOODMIND is very easy to operate, which can reduce issues related to human resources. The main requirements are a device and an internet connection. This tool is an inspiration for the development of similar types in other countries according to the local language, minimizing the gap between the detected cases and the actual number of cases. The variation of words related to depression still adjusts to the current condition, so it must be continuously updated to increase sensitivity from time to time. PHQ-9 is a questionnaire that has been tested to have high validity. However, conversation-based MOODMIND with open-ended questions can offer advantages compared to standard questionnaires that are underutilized.

More sample research is needed to determine the accuracy of MOODMIND in a real-world setting. The absence of structured diagnostic interviews (e.g., SCID or MINI) limits diagnostics to reference standards. In addition, bridging the results of screening to electronic medical records can be a useful alternative for monitoring the mental health of patients with chronic diseases such as tuberculosis. Advanced versions should incorporate suicide risk screening and referral mechanisms.

6. Conclusion

MOODMIND, an artificial intelligence based on Natural Language Processing, can be used as an MDD detection tool. The diagnostic performance in this pilot study still required further exploration accompanied by research with a larger sample. This tool supports mental health monitoring but does not replace the role of doctors. This could also be an idea for AI development in some countries to detect MDD as early as possible.

Software availability

Source code available from: https://github.com/incrementalstudios/mood-mind

Archived software available from: https://doi.org/10.5281/zenodo.1679311027

License: MIT License

Comments on this article Comments (0)

Version 2
VERSION 2 PUBLISHED 13 Oct 2025
Comment
Author details Author details
Competing interests
Grant information
Copyright
Download
 
Export To
metrics
Views Downloads
F1000Research - -
PubMed Central
Data from PMC are received and updated monthly.
- -
Citations
CITE
how to cite this article
Wijayanti E, Abror A, Rachmawati UA et al. MOODMIND: A Pilot Feasibility Study of Artificial Intelligence for Major Depressive Disorder Screening in Tuberculosis Patients [version 2; peer review: 1 approved, 2 approved with reservations]. F1000Research 2026, 14:1079 (https://doi.org/10.12688/f1000research.168964.2)
NOTE: If applicable, it is important to ensure the information in square brackets after the title is included in all citations of this article.
track
receive updates on this article
Track an article to receive email alerts on any updates to this article.

Open Peer Review

Current Reviewer Status: ?
Key to Reviewer Statuses VIEW
ApprovedThe paper is scientifically sound in its current form and only minor, if any, improvements are suggested
Approved with reservations A number of small changes, sometimes more significant revisions are required to address specific details and improve the papers academic merit.
Not approvedFundamental flaws in the paper seriously undermine the findings and conclusions
Version 2
VERSION 2
PUBLISHED 19 Mar 2026
Revised
Views
5
Cite
Reviewer Report 06 Apr 2026
Masab Mansoor, Edward Via College of Osteopathic Medicine, Blacksburg, Virginia, USA 
Approved
VIEWS 5
Thank you for your revisions. ... Continue reading
CITE
CITE
HOW TO CITE THIS REPORT
Mansoor M. Reviewer Report For: MOODMIND: A Pilot Feasibility Study of Artificial Intelligence for Major Depressive Disorder Screening in Tuberculosis Patients [version 2; peer review: 1 approved, 2 approved with reservations]. F1000Research 2026, 14:1079 (https://doi.org/10.5256/f1000research.197138.r468964)
NOTE: it is important to ensure the information in square brackets after the title is included in all citations of this article.
  • Author Response 08 Apr 2026
    Erlina Wijayanti, Family Medicine Primary Care Study Program, Faculty of Medicine, Yarsi University, Central Jakarta, Indonesia
    08 Apr 2026
    Author Response
    I sincerely appreciate your very valuable feedback. Thank you very much.
    Competing Interests: No competing interests were disclosed.
COMMENTS ON THIS REPORT
  • Author Response 08 Apr 2026
    Erlina Wijayanti, Family Medicine Primary Care Study Program, Faculty of Medicine, Yarsi University, Central Jakarta, Indonesia
    08 Apr 2026
    Author Response
    I sincerely appreciate your very valuable feedback. Thank you very much.
    Competing Interests: No competing interests were disclosed.
Version 1
VERSION 1
PUBLISHED 13 Oct 2025
Views
7
Cite
Reviewer Report 29 Jan 2026
Hayder Al-Hindy, College of Pharmacology, University of Babylon (Ringgold ID: 125654), Babylon Governorate, Babylon Governorate, Iraq 
Approved with Reservations
VIEWS 7
F1000Research Software Tool Peer Review: Full Report
Article Summary
This software tool article presents MOODMIND, a web-based application for screening Major Depressive Disorder (MDD) in tuberculosis (TB) patients using Natural Language Processing (NLP), specifically lexicon-based sentiment analysis ... Continue reading
CITE
CITE
HOW TO CITE THIS REPORT
Al-Hindy H. Reviewer Report For: MOODMIND: A Pilot Feasibility Study of Artificial Intelligence for Major Depressive Disorder Screening in Tuberculosis Patients [version 2; peer review: 1 approved, 2 approved with reservations]. F1000Research 2026, 14:1079 (https://doi.org/10.5256/f1000research.186213.r447567)
NOTE: it is important to ensure the information in square brackets after the title is included in all citations of this article.
Views
6
Cite
Reviewer Report 13 Jan 2026
Caroline W. Espinola, McMaster University, Hamilton, Canada 
Approved with Reservations
VIEWS 6
This manuscript describes an AI tool that uses natural language processing from questions derived from the DSM-5 for a screening of depression in a convenience sample of 21 patients with tuberculosis. They report an sensitivity of 67% and specificity of ... Continue reading
CITE
CITE
HOW TO CITE THIS REPORT
Espinola CW. Reviewer Report For: MOODMIND: A Pilot Feasibility Study of Artificial Intelligence for Major Depressive Disorder Screening in Tuberculosis Patients [version 2; peer review: 1 approved, 2 approved with reservations]. F1000Research 2026, 14:1079 (https://doi.org/10.5256/f1000research.186213.r435547)
NOTE: it is important to ensure the information in square brackets after the title is included in all citations of this article.
Views
8
Cite
Reviewer Report 30 Dec 2025
Masab Mansoor, Edward Via College of Osteopathic Medicine, Blacksburg, Virginia, USA 
Not Approved
VIEWS 8
PEER REVIEW REPORT
SUMMARY
This manuscript presents MOODMIND, a web-based Natural Language Processing (NLP) application designed to screen for Major Depressive Disorder (MDD) in tuberculosis patients. The tool employs lexicon-based sentiment analysis on both voice and text inputs ... Continue reading
CITE
CITE
HOW TO CITE THIS REPORT
Mansoor M. Reviewer Report For: MOODMIND: A Pilot Feasibility Study of Artificial Intelligence for Major Depressive Disorder Screening in Tuberculosis Patients [version 2; peer review: 1 approved, 2 approved with reservations]. F1000Research 2026, 14:1079 (https://doi.org/10.5256/f1000research.186213.r435555)
NOTE: it is important to ensure the information in square brackets after the title is included in all citations of this article.

Comments on this article Comments (0)

Version 2
VERSION 2 PUBLISHED 13 Oct 2025
Comment
Alongside their report, reviewers assign a status to the article:
Approved - the paper is scientifically sound in its current form and only minor, if any, improvements are suggested
Approved with reservations - A number of small changes, sometimes more significant revisions are required to address specific details and improve the papers academic merit.
Not approved - fundamental flaws in the paper seriously undermine the findings and conclusions
Sign In
If you've forgotten your password, please enter your email address below and we'll send you instructions on how to reset your password.

The email address should be the one you originally registered with F1000.

Email address not valid, please try again

You registered with F1000 via Google, so we cannot reset your password.

To sign in, please click here.

If you still need help with your Google account password, please click here.

You registered with F1000 via Facebook, so we cannot reset your password.

To sign in, please click here.

If you still need help with your Facebook account password, please click here.

Code not correct, please try again
Email us for further assistance.
Server error, please try again.