Next Article in Journal
Collaborative Allocation and Optimization of Path Planning for Static and Mobile Sensors in Hybrid Sensor Networks for Environment Monitoring and Anomaly Search
Next Article in Special Issue
Use of Robotic Platforms as a Tool to Support STEM and Physical Education in Developed Countries: A Descriptive Analysis
Previous Article in Journal
FEM Analysis of Various Multilayer Structures for CMOS Compatible Wearable Acousto-Optic Devices
Previous Article in Special Issue
Driver’s Personality and Behavior for Boosting Automobile Security and Sensing Health Problems Through Fuzzy Signal Detection Case Study: Mexico City
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Smart Homes as Enablers for Depression Pre-Diagnosis Using PHQ-9 on HMI through Fuzzy Logic Decision System

1
School of Engineering and Sciences, Tecnologico de Monterrey, Mexico City 14380, Mexico
2
Escuela Superior de Medicina, Instituto Politecnico Nacional, Mexico City 11340, Mexico
3
The Polytechnic School, Arizona State University, Mesa, AZ 85212, USA
4
Institute for Energy and Environment, University of California, Berkeley, CA 94720, USA
5
Energy and Efficiency Institute, University of California, Davis, CA 95616, USA
*
Author to whom correspondence should be addressed.
Sensors 2021, 21(23), 7864; https://doi.org/10.3390/s21237864
Submission received: 25 October 2021 / Revised: 22 November 2021 / Accepted: 23 November 2021 / Published: 26 November 2021
(This article belongs to the Special Issue Perception and Intelligence Driven Sensing to Monitor Personal Health)

Abstract

:
Depression is a common mental illness characterized by sadness, lack of interest, or pleasure. According to the DSM-5, there are nine symptoms, from which an individual must present 4 or 5 in the last two weeks to fulfill the diagnosis criteria of depression. Nevertheless, the common methods that health care professionals use to assess and monitor depression symptoms are face-to-face questionnaires leading to time-consuming or expensive methods. On the other hand, smart homes can monitor householders’ health through smart devices such as smartphones, wearables, cameras, or voice assistants connected to the home. Although the depression disorders at smart homes are commonly oriented to the senior sector, depression affects all of us. Therefore, even though an expert needs to diagnose the depression disorder, questionnaires as the PHQ-9 help spot any depressive symptomatology as a pre-diagnosis. Thus, this paper proposes a three-step framework; the first step assesses the nine questions to the end-user through ALEXA or a gamified HMI. Then, a fuzzy logic decision system considers three actions based on the nine responses. Finally, the last step considers these three actions: continue monitoring through Alexa and the HMI, suggest specialist referral, and mandatory specialist referral.

1. Introduction

According to the World Health Organization, depression is a common mental disease around the world. About 5% of depressed individuals are adults, and 5.7% are senior people [1]. Besides, depression increased by 60% during Coronavirus disease (COVID-19) [2]. Recurrent and moderate to severe intensity depression have serious health conditions and can lead to suicide [1]. Young adults and people older than 60 years may be the most vulnerable group [1,2].
The Patient Health Questionnaire 9 (PHQ-9) is a short, self-administered questionnaire and a mental health depression screener based on the Diagnostic and Statistical Manual of Mental Disorders, fifth edition (DSM-5) [3,4]. Nevertheless, the common methods that health care professionals use to assess and monitor depression symptoms are face-to-face questionnaires leading to time-consuming or expensive methods [5]. Thus, efforts require taking advantage of what is accessible to the end-user to provide information to the health care professional. Proposals include using a smartphone and smartwatch to classify depression, physical activity, mood, social activity, sleep, and food intake [5] or the use of a smartphone to assess the PHQ-9 [6].
Smartphones or wearables, like smartwatches, are often used by single individuals as an extension of their life; they are devices that can help detect and monitor depressive symptoms [5,7,8]. On the other hand, smart homes have been arising due to the Internet of Things; for instance, modern household appliances have increased the comfort level of householders [9,10,11,12]. Chatbots are used to track mood and help users deal with depression [13,14]; thus, voice assistants as Siri or Alexa have become appealing for individuals. It has been reported that end-users prefer to interact with technology rather than health professionals [15].
COVID-19 impacted daily life and increased anxiety, depression, and suicide because individuals were clustered at homes or as a secondary effect of economic disruption [16]. In addition, their restrictions included zero interaction with other users by closing schools, universities, recreational facilities, or workplaces [2,17,18]. As a response, technologies at smart homes accelerated due to their necessity for daily activities such as work, study, or socializing [19]. Moreover, smart homes can help the health care sector by monitoring householders’ health through smartphones, wearables, cameras, or voice assistants connected to the home [10,20,21,22,23].
The structure of this paper is as follows: Section 2 presents the literature review regarding depression, the PHQ-9 questionnaire, and the smart homes as enablers for depression pre-diagnosis. Section 3 presents the three-step methodology used for this paper. Section 4 describes the proposed framework by step. Section 5 shows the proposed framework results and its linkage with gamified HMIs oriented for depression pre-diagnosis at home. Section 6 discusses the proposal with its advantages and limitations. Finally, Section 7 details the conclusions and future work.

2. Literature Review

Depression is a common mental illness characterized by sadness, lack of interest, or pleasure. It may also be accompanied by somatic characteristics such as disturbed sleep and appetite, tiredness, and poor concentration. Its effects on a patient’s physical, mental, and social well-being can lead to disability and cause a huge burden for healthcare systems and society. According to the World Health Organization (WHO), this illness affects approximately 3.8% of the 280 million people [1].
Consequently, depression is not exclusive to the older population; it can happen at any age leading to poor quality of life (QoL) and affecting the economically active population, as reported by Müller et al. [24]. They found that the self-reported mental distress, including depression and anxiety, was highly related to the days of incapacity to work through questionnaires and scales. Furthermore, this research reported that depressive patients presented 27 times more specific days of incapacity to work than healthy workers, leading to an economic burden of the disease due to its management costs.
According to the DSM-5, the diagnosis considers symptoms, behavioral changes, and the effect of these factors in someone’s life. Hence, there are nine symptoms: sleep disturbance, interest/pleasure reduction, guilt feelings or thoughts of worthlessness, energy changes, concentration impairment, appetite or weight changes, psychomotor disturbances, suicidal thoughts, and depressed mood. In addition, an individual must present 4 or 5 (one of them being depressed mood or loss of interest or pleasure) in the last two weeks to fulfill the diagnosis criteria [25].
A specialist must perform the diagnosis based on the criteria through a guided interview. However, many questionnaires and scales have been developed due to the importance of identifying early cases; these cannot diagnose the patient. However, they can spot depressive symptoms and be used as screening or pre-diagnosis methods. In addition, suicidal thoughts are an important factor to consider; they are assessed in interviews and questionnaires. Based on the WHO reports, 700,000 people die due to suicide each year, therefore, the importance of its prompt diagnosis and management [1].

2.1. Diagnostic and Statistical Manual of Mental Disorders, Fifth Edition (DSM-5)

This manual has been used as the base for mental diseases since 1952 when its first edition was released [26]. It helps to standardize diagnosis for research, treatment, and prognosis across different physicians, hospitals, and countries. For its development, more than 160 researchers and physicians were gathered to reach a consensus for the criteria of the different disorders based on the most updated information and studies [27]. However, this manual does not include information about treatment or management. It can only be used for diagnosis, prognosis, and assessment of treatment effectiveness [27].

2.2. Patient Health Questionnaire 9 (PHQ-9)

The PHQ-9 consists of 9 Likert-type questions (0 to 3). The total punctuation ranges from 0 to 27, and it allows to classify the symptomatology in no depression (0–4), mild depression (5–9), moderate depression (10–14), moderately severe depression (15–19), and severe depression (20–27). This tool was developed in 1999 by Robert Spitzer, Janet Williams, and Kurt Kroenke, and since then, it has been translated and validated in many languages and countries. The items in the questionnaire are listed below (Table 1). The shaded section means that if there are at least four or more selected answers thus, there is an existence of a depressive disorder.
Furthermore, this screening tool includes an item to assess the effect of the symptoms in the individual’s QoL and relationship with others and an item assessing suicidal tendencies. The suicidal item or item nine must be considered an important factor for management and possible hospitalization of the patient [25,28]. The approximated application time is 5 min, it is usually self-administered, but it could also be administered through an interview in person or by telephone [28].
The questionnaire has been translated and validated in different languages and countries. Most of them have found it with adequate internal consistency, reliability, and excellent correlation with other scales such as the Beck Depression Inventory. For example, in the meta-analysis by He et al., considering a cut-off point of 10, they reported a pooled sensitivity of 0.88 and specificity of 0.86, compared with the structured and semi-structured interviews for diagnosis of depression [29]. The 2019 study by McCord and Provost in a university in the US reported the internal consistency of this tool with Cronbach’s Alpha of 0.76 [30].
In June 2021, National Health and Nutrition Examination Survey (NHANES) program released a dataset corresponding to the 2017–2018 cycle and from 2019 to March 2020 answers of the PHQ-9 [31,32].

2.3. Smart Homes

A Smart Home (SH) monitors and manages home electronics and appliances through an Internet connection [33]. These devices or social products include thermostats, cameras, voice assistants, lights, doorbells, household appliances [9,20,34,35], and provide homeowners information on how much energy they have used on certain equipment or systems [11]. Moreover, an SH collects and analyzes data about the home environment, communicates that data to users and service providers, and improves the ability to manage various domestic systems through social products [12].
In addition, Marikyan et al. [10] classified the SHs into four groups based on the technology services:
  • Surveillance home: Householders receive alerts about possible natural disasters or security interventions. Besides, the SH gathers data from the environment to detect burglary threats.
  • Assistive home: This home type promotes the householders’ well-being through action recognition. Hence, three types of services are offered:
    • Senior oriented
    • Child oriented
    • Overall health-oriented
  • Detection and multimedia home: This home type detects and collects information from videos and photos of householders’ daily lives.
  • Ecological awareness home: Householders monitor and control their energy supply against demand through special sensors and automatic monitoring systems. Thus, this home type promotes environmental sustainability.
    • Smart Home Energy Management Systems have advanced IoT devices to convert a traditional home into an energy-aware home to reduce energy consumption and promote money savings [36].
However, a fifth type of home should be added, the Gamified SH. This type of home uses socially connected products [20,21,35,37,38,39,40,41,42,43] that profile end-users based on their personality traits, type of gamified user, and energy user [9,34,44,45] to propose tailored interfaces that help them understand the benefits of becoming pro-environmental or energy-aware. Figure 1 depicts an example of this type of home.

Fuzzy Logic and Smart Homes for Detection of Depressive Disorders

The computer scientist, Lotfi Zadeh from the University of California Berkeley, proposed in 1965 the fuzzy set theory as a class of sets based on membership grades from 0 to 1 [46]. The fuzzy set has inference rules that do not require a mathematical model of the real system but rather rules generated by experts, polls, or consensus-building [47,48]. Hence, fuzzy logic (FL) was created to model uncertainty based on linguistic words and sentences, known as linguistic variables, to associate them with human logic rather than the use of numerical values. The process begins with the fuzzification step that classifies in fuzzy sets the variables with an uncertainty metalinguistic degree. Following, the experts propose the linguist inference rules with an antecedent IF and a consequent THEN. Finalizing with the defuzzification step is the final process that determines the output values through fuzzy inference methods such as the Mamdani and the Sugeno inference [48].
Multi-sensor data fusion is a framework that collects information from multiple sensors to make inferences and create functions that compensate, process information, communicate, and integrate to provide quantitative measurements consistently [20,42,47]. The multi-sensor data fusion bases its concept on human beings’ and animals’ fundamental tasks, using multiple sensors to survive and track possible threats. Furthermore, this system relies on the decision-making stage because the information collected from the sensors requires a decision based on the sensed data.
Wlodarczyk et al. [49] proposed SWRL-F as an FL extension of the Semantic Web Rule Language because no precise information can be used. Hence, the knowledge representation in SWRL was simplified. Thus, their SWRL-F ontology constructed fuzzy rules in SWRL using Web Ontology Language. Thakur et al. [50] proposed a fuzzy inference system for diagnosing depression through the PHQ-9 to get the correct level of severity of depression among patients. They collected data from 50 patients from hospitals in Bangladesh. Leon et al. [51] proposed the SENTIENT project to identify early signs of depressive disorders in senior householders to ease affective support and care. A systematic review concluded that SHs influence senior users’ QoL, but low technology readiness requires diversification [52]. VandeWeerd et al. [53] deployed the HomeSense project in the community of older adults in The Villages, Florida. This ambient health and wellness platform monitors the age of senior people to recognize any relevant event that may affect their QoL. In [20], they used a voice assistant and cameras to track the householders’ daily mood to improve their QoL by promoting social inclusion and physical exercise. The multi-sensor system was used within the SH to identify the senior householders’ emotions.
The depression disorders at SHs are currently oriented to the senior householders [20,39,50,51,52,53]; however, depression affects all of us [1,2]. Hence, experts need to diagnose the depression disorder; questionnaires as the PHQ-9 help spot any depressive symptomatology as a pre-diagnosis.
Therefore, using artificial intelligence (AI) decision systems like adaptive neuro-fuzzy inference systems (ANFIS), fuzzy logic, or neural networks can provide reliable information about end-users behavior because AI techniques emulate human making decisions [47,54]. In addition, AI platforms have been used to ease conversation and social support within communities to assess digital health interventions [55,56]. Thus, it is possible to think of an integrated and complex system that monitors householders’ mental health to help as a pre-diagnostic depression symptom and send that information to the clinicians.

2.4. Gamification for Treatment Depression

Gamification uses game elements and game-design techniques in real context environments [57]. In [58], they performed a systematic review to identify how gamification and serious games were applied to support the treatment of depression. The gamification elements included scores, goals, and progress levels. For example, Lukas et al. [59], proposed a gamified smartphone-based intervention to reduce depressive symptoms. Thus, the gamification elements considered goals, progress levels, and a total number of views. Hungerbuehler et al. [60], considered story and feedback gamification elements for their chatbot proposal.
The Octalysis framework [57] helps as a guideline to develop gamified applications through two types of motivations to fulfill specific activities, for instance, avoid householders’ depression at home. Therefore, the communication between interfaces and the end-user is from a tailored human machine interface (HMI) within a gamification structure that includes feedback and adjustments based on the user’s level of depression to teach, motivate, and engage them to perform specific goals that avoid isolation or depression. Hence, Table 2 lists the two types of gamification structures used in this research. In extrinsic motivation, people are motivated because they want something they cannot get, and acquiring it infers outer recognition. For intrinsic motivation, the activity is rewarding by itself.
Consequently, to the best of the authors’ knowledge, proposals consider the householders to monitor any depression symptomatology at SHs using the PHQ-9, either through voice assistants or tailored human–machine interfaces (HMIs), has not been proposed.
Therefore, the research question proposed in this research was:
  • What characteristics should an HMI framework consider helping the healthcare workers pre-diagnose depression using SHs as enablers?
To answer the research question, this paper proposes a three-step framework that assesses the nine questions to the end-user through ALEXA or a gamified HMI. Then, a fuzzy logic decision system considers three actions based on the nine responses: continue monitoring through Alexa and the HMI, suggest specialist referral, and mandatory specialist referral. These actions can only be seen by the healthcare system and/or to the end user’s emergency contact. Besides, a statistical analysis was performed on the NHANES dataset [30,31] to get the depression severity by age group as a guideline for the specialist to know how the householder behaves compared to the national dataset; in other words, if the householder has an expected behavior, is outside the expected behavior, or has an abnormal behavior compared with the NHANES dataset.

3. Material and Methods

The NHANES dataset that had the (PHQ-9) answers [31,32] were melted with the Demographic Variables and Sample Weights (P_DEMO) [61,62] to get the gender and age of each observation and perform further statistical analysis. Then, the SEQN or ID from the P_DEMO was compared to add the three additional variables to the PHQ-9 dataset. Thus, the melted dataset had 8965 observations and 13 variables; the last variable was the total score of the nine questions. Any observations with NA and the tenth question (DPQ100) were deleted as the DPQ100 required a healthcare professional to answer. The scope of this research is related to the depression symptomatology pre-diagnosis. Therefore, the cleaned dataset had 7882 observations. Table 3 depicts the code and description of each variable from the melted dataset.
The software employed during this research were:
  • The statistical analysis and data cleaning considered the SPSS v. 25 and R-studio v. 1.4.1106.
  • The fuzzy logic decision systems used LabVIEW v. 20.0.1.
Thus, the statistical analysis considered the cleaned dataset and consisted in:
  • Demographic characteristics of the sample (mean age, male and female proportion, and median PHQ9 scores), for normally distributed data, the mean and standard deviation were reported. The median and interquartile range were reported for non-normally distributed data.
  • Setting the normal, expected, and abnormal depression thresholds for each age group, by obtaining the 3, 25, 50, 75, and 97 percentiles.
  • The associations between age group and depression severity and sex and depression severity were determined. These associations were achieved with a frequency table and a chi-squared analysis; if the chi-squared analysis was found significant, a Crammer’s V was performed to obtain the strength of the association. Furthermore, a Spearman’s correlation test was performed between age and PHQ9 score.
  • Items 1, 2, and 9 are crucial, because according to DSM, to make a depression diagnosis, 4 of the nine questions have to be positive, and at least one of the five must be items 1 or 2 [25,28]. Moreover, if item 9 is positive, the psychological referral is mandatory. In order to assess the distribution and association of these items in the different age groups and sex, frequency tables and chi-squared tests were performed with Crammer’s V test whenever it applied.
  • p-values below 0.05 were considered statistically significant.
  • Cramer’s V results were interpreted as follows: 0.0–0.1 negligible; 0.1–0.2 weak; 0.2–0.4 moderate; 0.4–0.6 relatively strong; 0.6–0.8 strong; 0.8–1.0 very strong [63].

3.1. Fuzzy Logic Decision System

Figure 2 shows the PHQ-9 algorithm used for the fuzzy logic decision system. This algorithm considers that if the nine answers had a score of less than ten and item nine had a “not at all” response, the action is to continue monitoring. On the contrary, if the score was greater than or equal to 10 and the ninth item was zero, the action is to consider depressive symptomatology. Nevertheless, if the ninth answer was greater or equal to 1, it is mandatory.
Two fuzzy logic decision systems were proposed. The first fuzzy logic decision system examined item 9 and the total score in the input system; the output system reflected the decisions explained in Figure 2: Continue monitoring, mental health specialist referral, and mental health specialist referral is mandatory. This decision system had 20 rules.
The second FL decision system considered the percentile score divided by age group starting with 20 to 29 years old, 30 to 39 years old, 40 to 49 years old, 50 to 59 years old, 60 to 69 years old, and ending with 70 to 80 years old age group for the input system. The output system was the same as the first FL decision system. This decision system had 18 rules. The fuzzy logic decision system was modeled in LabVIEW v. 20.0.1.

3.2. Human Machine Interface

In [21], some of the authors of this research proposed SH gamified HMIs for energy reductions. Hence, based on the premise of considering socially connected products at SHs such as connected thermostats, smart refrigerators, smart lightings, or smart TVs [9,38], a novel interface was proposed to take advantage of this type of HMIs to survey the householders the nine questions from the PHQ-9. Hence, the householders would not feel obligated to answer, and they could answer the survey if they want to, or even request Alexa to ask the questions instead of reading them.
Figure 3 depicts the interaction in the SH to monitor householders and run the pre-diagnosis PHQ-9. There are six types of interactions involved in this diagram: user-house, house-product, product-product, product-user, product-interface, and user-interface. This diagram reflects how the end-user is continuously in touch with the household appliances and elements. Thus, the interaction between the house and the product knows the profile usage at home, besides these appliances can be linked with the voice assistant as Alexa or the mobile phone to provide the interaction between products. Therefore, through the multi-sensor system, Alexa and the HMI can communicate with the end-user providing this interaction of product-user. The relevant part of this structure is the product–user interaction because the fuzzy logic decision system provides the actions required to pre-diagnose any depressive symptoms and, therefore, request a health care specialist.

4. Proposed Framework

Figure 4 shows the proposed framework for the depressive pre-diagnosis in the SH environment. This framework has three steps:
Knowledge base step: During this step, the NHANES dataset and P_DEMO were collected. The statistical analysis was performed to understand the depressive symptomatology better and take three actions based on the total score and question 9. Besides, the expected behavior by age group was proposed, so the health care professional can quickly review if the householder’s answers are with the national database or if the householder is behaving unexpectedly. In addition, the gamified elements for depression depicted in Table 2 were analyzed to propose them on the HMI.
Fuzzy logic step: This step has two parts. The first part considers question 9 and the total score to display which three actions were required to consider. The second part uses the age and the age group to display the type of behavior based on the three actions explained in the previous section.
Evaluation step: This step evaluates the interaction between the user and the household appliances to provide the interaction between product–product, product–user, and product–interface to help the health care professional better understand how the householder is behaving regarding the depressive symptomatology. This step provides continuous feedback to the user and the knowledge base to continue monitoring the end-user and pre-diagnose any householder’s depression.

5. Results

This section provides the results of each step and the HMI proposal in an SH Context. First, the knowledge base step provides the statistical analysis performed in the PHQ-9 and P_DEMO datasets. Then, the fuzzy logic decision system step provided the two types of decision systems and proposed rules for the depression pre-diagnosis. During this step, a LabVIEW program was suggested to interact with the ALEXA or HMI PHQ-9 questionnaire and the actions required based on the input values. Then, the evaluation step showed the results of the LabVIEW front panel and its connection to the HMI into an SH environment.

5.1. Knowledge Base Step: Statistical Analysis

The melted and cleaned database from NHANES PHQ-9 [31,32] and P_DEMO [61,62] containing 7882 observations were explored to obtain the main characteristics of the sample. The sample included 3865 (49%) males and 4017 (51%) females, with a mean age of 50.73 (s.d.: 17.42) and a median PHQ-9 score of 2 (IQR: 0–5). The division of PHQ-9 scores by age group reported a similar distribution with a median of 2, IQR of 0–5 or 0–6, third percentile of 0, and 97th percentile of 14, 15, or 16 (See Table 4).
Table 5 shows the depression severity by gender. The analysis reported a higher prevalence of depressive symptoms in women. A chi-squared test was performed to assess the association between gender and depression severity, and a weak association was found (p-value = 1.46 × 10−17; Crammer’s V = 0.104).
In depression severity by age group, a spearman correlation was performed using the age and PHQ-9 scores. No correlation was found between both variables (p-value = 0.000038; Rho = −0.046). A chi-squared test was performed to assess the association between age group and presence of depression, and a weak association was found (p-value = 1.23 × 10−68; Crammer’s V = 0.197) (See Table 6).
Due to the importance of item 9 in the questionnaire, since it assesses suicidal or self-harm thoughts, the distribution on its presence was explored by sex, age group, and depression severity. No association was found between sex or age group and suicidal thoughts in this sample (p-value = 0.545; p-value = 0.226, respectively); however, a relatively strong association was found between depression severity and presence of suicidal or self-harm thoughts (p-value = 0; Crammer’s V = 0.476).
Items 1 and 2 are crucial, because according to DSM, to make a depression diagnosis, 4 of the 9 questions must be positive, and at least one of the 5 must be items 1 or 2. These two items include depressive mood and reduced pleasure. Talking about question 1, a negligible association was found between its presence and sex or age group (p-value = 0.012, Crammer’s V = 0.028; p-value = 0.000085, Crammer’s V = 0.058, respectively). In question 2, a negligible association was found between it being positive and sex (p-value = 0.000028, Crammer’s V = 0.047), and no association was found between it being positive and age group (p-value = 0.086).

5.2. Fuzzy Logic Decision System Step

Figure 5 shows the two types of FL decision systems created. Figure 5a shows the first FL decision system, the input and output rules used for Question 9. The input variables considered the four-scale answer depicted in Table 1 as the membership functions. The output variables were the three actions to perform depending on Question 9 and the total score. Figure 5b shows that the input variables considered the total score and the membership functions were the depression severity. Figure 5c shows the second FL decision system; the input variables considered for the age and the membership functions; Figure 5d shows the input variables considered by each age group and the type of behavior for the membership functions. In both Figure 5c,d, the output variables were the same as the first FL decision system. Besides, Table 7 shows the FL rules employed for the first decision system, and Table 8 depicts the FL rules for the second decision system.
Figure 6a depicts the block diagram used for the LabVIEW project. This diagram linked both FL decision systems to provide a single front panel. Figure 6b displays the front panel.
This proposal adds the nine questions and based on the last question and the total score, the actions are displayed on the lower part of the panel. Besides, considering the age and the total score, the expectation of depression by age group is displayed.

5.3. Evaluation Step

Figure 7 shows some results on the LabVIEW front panel. The answers were based on the NHANES datasets. For instance, Figure 7a shows the answers received from SEQN 109441. This individual is 20 years old and had a score of 5, which is the same as mild depression; thus, the actions required for this individual are to continue monitoring, and this individual is under the expected national behavior. On the contrary, Figure 7b displays the SEQN 109342 for a 43-year-old individual with moderately severe depression. This individual answered, “several days” for the ninth question, and the system immediately moved toward the “health specialist referral is mandatory”. This individual behavior is not normal, and it is totally outside the expected behavior. Figure 7c shows an example for a 26-year-old individual with suicidal tendencies due to question 9; however, based on the total score and the age, this individual is outside the expected behavior. Finally, Figure 7d depicts the information for a 54-year-old user with a total score of 16 but with no suicidal thoughts; therefore, the action is to suggest a specialist referral but not in a mandatory manner; besides, this user is outside expected behavior but not abnormal behavior.
Furthermore, Table 9 exemplifies five of the 7882 observations, including the LabVIEW dashboard results. The full observations are available at [64].

5.4. Human Machine Interface in a Smart Home Context

Figure 8 depicts the proposal of a gamified HMI in an SH context. This interface shows how to use interfaces that include connected products such as the thermostat, television, refrigeration, or lighting. This interface focuses mainly on the quick survey so the householder can answer either by clicking one of the four options of each question of the PHQ-9 or by selecting the option of “Talk to ALEXA”. Figure 8a shows the homepage, the extrinsic gamified elements that consider the challenges, the statistics, the picture profile, the points, and the leaderboard. On the contrary, the intrinsic gamified elements are related to the notifications, the tips, the choice perception by either talking to ALEXA or contacting the doctor, and by answering the survey. Figure 8b displays an example of this survey; thus, question 9 is asked. Therefore, once the householder answered the first question, the second question was displayed, and so on, until the tenth question. Hence, in both ways, the end-user can answer the questionnaire. However, this interface did not provide information to the householder regarding his/her mental health score. Therefore, the psychologist or psychiatrist needs to analyze the result to provide further actions to avoid any suicidal thoughts. Besides, this type of interface aims to engage the end-user in activities to achieve specific goals. For instance, this interface was connected to a thermostat where the householder interacted with the device and became energy aware [38].

6. Discussion

The characteristics that an HMI framework needs to consider to help the healthcare sector in the pre-diagnosis of depression using SHs as enablers are as follows:
  • A knowledge base gathers the population with depression symptomatology through available PHQ-9 answers to relate them with the proposal and identify if the householder is within the range of expected depression or requires more attention. During this step, the most common gamification elements for depression are collected.
  • A fuzzy logic step that helps as a decision system triggers three actions: continue monitoring, specialist referral, and specialist referral is mandatory. Furthermore, three expected behaviors are analyzed: expected, outside expected, or abnormal behavior.
  • The evaluation step assesses the interaction between the householder and depression by taking advantage of household appliances through gamified interfaces. The interface uses gamification elements to help as an enabler for helping in the pre-diagnosis of depression. The elements are divided into extrinsic and intrinsic. Moreover, this pre-diagnosis runs into a feedback and adjustment environment; hence, the householder receives points by answering the survey, contacting the doctor, and interacting with ALEXA or through video call. In [20], it is proposed to use video callings as social connectors to avoid social isolation or depression.
This proposal considered the NHANES PHQ-9 [31,32] and P_DEMO [61,62] datasets to build the three-step framework. For the first phase of the knowledge base, a statistical analysis was explored to obtain the main characteristics of the dataset and determine based on the age group the acceptable limits for expected behavior, outside behavior, and abnormal behavior of depression symptomatology. Then, the FL decision systems were built during the second step based on the statistical analysis and the algorithm depicted in Figure 2. Finally, the evaluation phase consisted in analyzing the database and comparing the results with the dashboard depicted in Figure 6. Besides, an HMI that considers the household appliances and takes advantage of the home page of this HMI is proposed. Hence, the HMI uses this home page of the SH interface to provide the PHQ-9 survey in two modalities: through the HMI or ALEXA.
This paper proposes a novel approach by considering the SH environment and household devices to monitor the householder. This depressive symptomatology monitoring is directly proposed considering either the HMI questionnaire or through ALEXA. Due to the increase and acceptance of voice assistants, this option is preferred for individuals who feel more comfortable talking rather than interacting with mobile phones or tablets. This proposal is novel in terms of considering all the householders above 20 years old instead of just focusing on the senior users that the literature review had widely indicated [20,40,51,52,53,54]. Besides, depression is not exclusive to the older population [1]; depression can happen at any age, leading to poor QoL and affecting the economically active population [1,2]. The age range was considered for this proposal due to the sample analyzed in the PHQ-9 and P_DEMO datasets [31,32,61,62].
In addition, COVID-19 had accelerated anxiety, depression, and suicide due to economic and face-to-face restrictions. Therefore, this proposal aims to use smart homes as enablers for depression pre-diagnosis through the PHQ-9 assessment on HMI and help the health care system and professionals detect any symptoms of depression at home to improve the QoL of the householders.
However, this proposal has its limitation regarding which type of user could interact, for instance, with the HMI [5,7,8]. Consequently, research suggests that certain personality traits are open to using new gadgets or new technology as the openness or extraversion personality trait. However, for the neuroticism personality trait is complicated to accept new technology [34,44]. Moreover, to propose gamified interaction for depressed householders, further research is required to propose tailored activities that improve their mental health.

7. Conclusions

Employing fuzzy logic decision system allows the healthcare systems to monitor the householder’s health and avoid suicidal thoughts or depressive disorders. Furthermore, depending on the total score and the ninth item, this system compared the total score with the NHANES dataset to provide insights into the health care sector. Thus, it makes it easy to review if the householder is behaving according to the national metrics or requires further actions. Hence, this proposal is designed to be implemented in SHs by considering all end-users (non-typical and typical users). However, further research is needed to develop and fully test the interface, for instance, by enrolling a representative sample of subjects to evaluate using this HMI continuously.
This research aims to propose the integration of ALEXA and gamified HMI to assess the PHQ-9 and provide a pre-diagnosis of depression symptomatology to help the health care system and professionals detect any symptoms of depression at home. Besides, this proposal considers three actions based on the total score and the suicidal item: to continue monitoring through the HMI and ALEXA, health care specialist referral, and mandatory specialist referral. In addition to this integration, a statistical analysis was performed to provide the dashboard information that helps as a comparison for the specialist. For instance, the householder can have a score of 16 but can have an outside expected behavior or abnormal behavior. This conduct is related to the age group provided by the NHANES dataset. Another aspect to include in further research is to include, if possible, the use of household appliances and cameras to track householders’ activities and compare their activities with their responses. For instance, the householder could feel with poor appetite; however, the refrigerator could register and compare how many times the householder opened the refrigerator and check with the camera if the householder ate more or less than two weeks ago. Another example is checking if the individual is having trouble falling or staying asleep, or feeling tired. Besides, ALEXA or another voice assistant can track the householder’s voice to identify possible changes in their modulation if the householder is speaking slower or faster than a couple of weeks ago.
Although this proposal includes all types of users above 20 years old (non-typical and typical users), to validate this proposal meticulously in the real end-user market, these future actions are required:
  • Evaluate and improve the proposed application with different scenarios and target populations. For instance, there are sectors with chronic diseases such as rheumatoid arthritis that commonly have depression. With this proposal, evaluate their performance through their treatment to analyze if this proposal helps in improving their depression symptomatology. Besides, the proposal should be evaluated outside controlled environments and in several countries in which any cultural factor needs to consider the framework.
  • Update the framework and HMI by including SWRL technologies as they have more robust rules than FL. However, this research did not propose SWRL or SWRL-F because the objective was to generate a conventional knowledge base. Afterward, future work will explore the use of these rules, and their optimization will be evaluated.
  • Submit this proposal into medical protocols to assess the system in a pilot study with real users.
  • Include, if possible, the camera tracking to develop facial recognition and compare the answers with the camera feedback.
  • Employ ALEXA in combination with cameras or other household appliances to analyze householders’ patterns and compare their behavioral patterns with their survey answers. For example, the perception of depression is important. Thus, if the end-user is feeling depressed, but the actions reflect the opposite, a message could be displayed through the gamified interfaces. Moreover, ALEXA could talk to the householders and explain how they have been acting to cheer them up.

Author Contributions

Conceptualization, J.I.M., A.V.M.-S., P.P., T.M., T.P., A.M. (Alan Meier), and A.M. (Arturo Molina); methodology, J.I.M., A.V.M.-S., P.P., T.M., T.P., A.M. (Alan Meier), and A.M. (Arturo Molina); software, J.I.M., A.V.M.-S., and P.P.; validation, J.I.M., A.V.M.-S., P.P., T.M., T.P., A.M. (Alan Meier), and A.M. (Arturo Molina); formal analysis, J.I.M., A.V.M.-S., P.P., and T.M.; investigation, J.I.M., A.V.M.-S., P.P., T.M., T.P., A.M. (Alan Meier), and A.M. (Arturo Molina); resources, P.P., T.M., T.P, A.M. (Alan Meier), and A.M. (Arturo Molina); data curation, J.I.M., A.V.M.-S, P.P., and T.M.; writing—original draft preparation, J.I.M., A.V.M.-S., P.P., and T.M.; writing—review and editing, J.I.M., A.V.M.-S., P.P., and T.M.; visualization, J.I.M., and A.V.M.-S.; supervision, P.P., T.M., T.P., A.M. (Alan Meier), and A.M. (Arturo Molina); project administration, P.P., T.M., T.P., A.M. (Alan Meier), and A.M. (Arturo Molina); funding acquisition, P.P., and A.M. (Arturo Molina). All authors have read and agreed to the published version of the manuscript.

Funding

This research project is supported by Tecnologico de Monterrey and CITRIS under the collaboration ITESM-CITRIS Smart thermostat, deep learning, and gamification project (https://citris-uc.org/2019-itesm-seed-funding/ (accessed on 25 October 2021)).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Data available in a publicly accessible repository. The data presented in this study are openly available in National Health and Nutrition Examination Survey P_DPQ_Dataset at https://wwwn.cdc.gov/Nchs/Nhanes/2017-2018/P_DPQ.XPT, and in National Health and Nutrition Examination Survey P_DEMO_Dataset at https://wwwn.cdc.gov/Nchs/Nhanes/2017-2018/P_DEMO.XPT. The results presented in this study are openly available in github at https://github.com/IsabelMendezG/PHQ9_FuzzyLogicResults.

Acknowledgments

The authors would like to acknowledge the financial and the technical support of Writing Lab, TecLabs, Tecnologico de Monterrey, in the production of this work.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. World Health Organization. Depression. Available online: https://www.who.int/news-room/fact-sheets/detail/depression (accessed on 14 October 2021).
  2. Daly, M.; Sutin, A.R.; Robinson, E. Depression Reported by US Adults in 2017–2018 and March and April 2020. J. Affect. Disord. 2021, 278, 131–135. [Google Scholar] [CrossRef] [PubMed]
  3. NHANES 2017-March 2020 Pre-Pandemic Questionnaire Data. Available online: https://wwwn.cdc.gov/nchs/nhanes/search/datapage.aspx?Component=Questionnaire&Cycle=2017-2020 (accessed on 13 October 2021).
  4. Spitzer, R.L.; Williams, J.B.W.; Kroenke, K. Test Review: Patient Health Questionnaire–9 (PHQ-9). Rehabil. Couns. Bull. 2014, 57, 246–248. [Google Scholar] [CrossRef]
  5. Narziev, N.; Goh, H.; Toshnazarov, K.; Lee, S.A.; Chung, K.-M.; Noh, Y. STDD: Short-Term Depression Detection with Passive Sensing. Sensors 2020, 20, 1396. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  6. Torous, J.; Staples, P.; Shanahan, M.; Lin, C.; Peck, P.; Keshavan, M.; Onnela, J.-P. Utilizing a Personal Smartphone Custom App to Assess the Patient Health Questionnaire-9 (PHQ-9) Depressive Symptoms in Patients with Major Depressive Disorder. JMIR Ment. Health 2015, 2, e8. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  7. Hickey, B.A.; Chalmers, T.; Newton, P.; Lin, C.-T.; Sibbritt, D.; McLachlan, C.S.; Clifton-Bligh, R.; Morley, J.; Lal, S. Smart Devices and Wearable Technologies to Detect and Monitor Mental Health Conditions and Stress: A Systematic Review. Sensors 2021, 21, 3461. [Google Scholar] [CrossRef] [PubMed]
  8. Malwade, S.; Abdul, S.S.; Uddin, M.; Nursetyo, A.A.; Fernandez-Luque, L.; Zhu, X.; Cilliers, L.; Wong, C.-P.; Bamidis, P.; Li, Y.-C. (Jack) Mobile and Wearable Technologies in Healthcare for the Ageing Population. Comput. Methods Programs Biomed. 2018, 161, 233–237. [Google Scholar] [CrossRef] [PubMed]
  9. Avila, M.; Méndez, J.I.; Ponce, P.; Peffer, T.; Meier, A.; Molina, A. Energy Management System Based on a Gamified Application for Households. Energies 2021, 14, 3445. [Google Scholar] [CrossRef]
  10. Marikyan, D.; Papagiannidis, S.; Alamanos, E. A Systematic Review of the Smart Home Literature: A User Perspective. Technol. Forecast. Soc. Chang. 2019, 138, 139–154. [Google Scholar] [CrossRef]
  11. Harper, R. (Ed.) Inside the Smart Home; Springer: London, UK, 2003; ISBN 978-1-85233-688-2. [Google Scholar]
  12. Aldrich, F.K. Smart Homes: Past, Present and Future. In Inside the Smart Home; Harper, R., Ed.; Springer: London, UK, 2003; pp. 17–39. ISBN 978-1-85233-688-2. [Google Scholar]
  13. Fulmer, R.; Joerin, A.; Gentile, B.; Lakerink, L.; Rauws, M. Using Psychological Artificial Intelligence (Tess) to Relieve Symptoms of Depression and Anxiety: Randomized Controlled Trial. JMIR Ment. Health 2018, 5, e64. [Google Scholar] [CrossRef] [PubMed]
  14. Robinson, A. Can a Chatbot Help My Mental Health? Available online: https://onemindpsyberguide.org/blog/can-a-chatbot-help-my-mental-health/ (accessed on 14 October 2021).
  15. Quiroz, J.C.; Bongolan, T.; Ijaz, K. Alexa Depression and Anxiety Self-Tests: A Preliminary Analysis of User Experience and Trust. In Proceedings of the Adjunct Proceedings of the 2020 ACM International Joint Conference on Pervasive and Ubiquitous Computing and Proceedings of the 2020 ACM International Symposium on Wearable Computers, ACM: Virtual Event Mexico, 10 September 2020; pp. 494–496. Available online: https://dl.acm.org/doi/abs/10.1145/3410530.3414374 (accessed on 12 November 2021).
  16. Brenner, M.H.; Bhugra, D. Acceleration of Anxiety, Depression, and Suicide: Secondary Effects of Economic Disruption Related to COVID-19. Front. Psychiatry 2020, 11, 592467. [Google Scholar] [CrossRef] [PubMed]
  17. Lii Inn, T. Smart City Technologies Take on COVID-19–Penang Institute. Available online: https://penanginstitute.org/publications/issues/smart-city-technologies-take-on-covid-19/ (accessed on 7 July 2020).
  18. Bueno-Notivol, J.; Gracia-García, P.; Olaya, B.; Lasheras, I.; López-Antón, R.; Santabárbara, J. Prevalence of Depression during the COVID-19 Outbreak: A Meta-Analysis of Community-Based Studies. Int. J. Clin. Health Psychol. 2021, 21, 100196. [Google Scholar] [CrossRef]
  19. Maalsen, S.; Dowling, R. Covid-19 and the Accelerating Smart Home. Big Data Soc. 2020, 7, 205395172093807. [Google Scholar] [CrossRef]
  20. Méndez, J.I.; Mata, O.; Ponce, P.; Meier, A.; Peffer, T.; Molina, A. Multi-Sensor System, Gamification, and Artificial Intelligence for Benefit Elderly People. In Challenges and Trends in Multimodal Fall Detection for Healthcare; Ponce, H., Martínez-Villaseñor, L., Brieva, J., Moya-Albor, E., Eds.; Springer International Publishing: Cham, Switzerland, 2020; Volume 273, pp. 207–235. ISBN 978-3-030-38747-1. [Google Scholar]
  21. Méndez, J.I.; Ponce, P.; Medina, A.; Meier, A.; Peffer, T.; McDaniel, T.; Molina, A. Human-Machine Interfaces for Socially Connected Devices: From Smart Households to Smart Cities. In Multimedia for Accessible Human Computer Interfaces; McDaniel, T., Liu, X., Eds.; Springer International Publishing: Cham, Switzerland, 2021; pp. 253–289. ISBN 978-3-030-70715-6. [Google Scholar]
  22. Maharjan, R.; Bækgaard, P.; Bardram, J.E. “Hear Me out”: Smart Speaker Based Conversational Agent to Monitor Symptoms in Mental Health. In Proceedings of the Adjunct Proceedings of the 2019 ACM International Joint Conference on Pervasive and Ubiquitous Computing and Proceedings of the 2019 ACM International Symposium on Wearable Computers, London, UK, 9–13 September 2019; Association for Computing Machinery: New York, NY, USA, 2019; pp. 929–933. [Google Scholar]
  23. Holmlund, T.B.; Chandler, C.; Foltz, P.W.; Cohen, A.S.; Cheng, J.; Bernstein, J.C.; Rosenfeld, E.P.; Elvevåg, B. Applying Speech Technologies to Assess Verbal Memory in Patients with Serious Mental Illness. NPJ Digit. Med. 2020, 3, 33. [Google Scholar] [CrossRef] [PubMed]
  24. Müller, G.; Bombana, M.; Heinzel-Gutenbrenner, M.; Kleindienst, N.; Bohus, M.; Lyssenko, L.; Vonderlin, R. Socio-Economic Consequences of Mental Distress: Quantifying the Impact of Self-Reported Mental Distress on the Days of Incapacity to Work and Medical Costs in a Two-Year Period: A Longitudinal Study in Germany. BMC Public Health 2021, 21, 625. [Google Scholar] [CrossRef] [PubMed]
  25. Chand, S.P.; Arif, H. Depression. In StatPearls; StatPearls Publishing: Treasure Island, FL, USA, 2021. [Google Scholar]
  26. Del Barrio, V. Raíces y Evolución Del DSM. Rev. Hist. Psicol. 2009, 30, 81–90. [Google Scholar]
  27. Psychiatry DSM-5 FAQ. Available online: https://www.psychiatry.org/psychiatrists/practice/dsm/feedback-and-questions/frequently-asked-questions (accessed on 21 October 2021).
  28. Marvin, K. Patient Health Questionnaire (PHQ-9)—Strokengine. Available online: https://strokengine.ca/en/assessments/patient-health-questionnaire-phq-9/ (accessed on 21 October 2021).
  29. He, C.; Levis, B.; Riehm, K.E.; Saadat, N.; Levis, A.W.; Azar, M.; Rice, D.B.; Krishnan, A.; Wu, Y.; Sun, Y.; et al. The Accuracy of the Patient Health Questionnaire-9 (PHQ-9) Algorithm for Screening to Detect Major Depression: An Individual Participant Data Meta-Analysis. Psychother. Psychosom. 2020, 89, 25–37. [Google Scholar] [CrossRef]
  30. McCord, D.M.; Provost, R.P. Construct Validity of the PHQ-9 Depression Screen: Correlations with Substantive Scales of the MMPI-2-RF. J. Clin. Psychol. Med. Settings 2020, 27, 150–157. [Google Scholar] [CrossRef] [PubMed]
  31. National Health and Nutrition Examination Survey 2017—March 2020 Data Documentation, Codebook, and Frequencies–Mental Health–Depression Screener (P_DPQ). Available online: https://wwwn.cdc.gov/Nchs/Nhanes/2017-2018/P_DPQ.htm (accessed on 13 October 2021).
  32. National Health and Nutrition Examination Survey P_DPQ_Dataset. Available online: https://wwwn.cdc.gov/Nchs/Nhanes/2017-2018/P_DPQ.XPT (accessed on 13 October 2021).
  33. Holst, A. Smart Home in the United States—Statistics & Facts. Available online: https://www.statista.com/topics/6201/smart-home-in-the-united-states/ (accessed on 13 October 2021).
  34. Ponce, P.; Meier, A.; Mendez, J.; Peffer, T.; Molina, A.; Mata, O. Tailored Gamification and Serious Game Framework Based on Fuzzy Logic for Saving Energy in Smart Thermostats. J. Clean. Prod. 2020, 262, 121167. [Google Scholar] [CrossRef]
  35. Mendez, J.I.; Ponce, P.; Mata, O.; Meier, A.; Peffer, T.; Molina, A.; Aguilar, M. Empower Saving Energy into Smart Homes Using a Gamification Structure by Social Products. In Proceedings of the 2020 IEEE International Conference on Consumer Electronics (ICCE), IEEE, Las Vegas, NV, USA, 4–6 January 2020; pp. 1–7. [Google Scholar]
  36. Aliero, M.S.; Qureshi, K.N.; Pasha, M.F.; Jeon, G. Smart Home Energy Management Systems in Internet of Things Networks for Green Cities Demands and Services. Environ. Technol. Innov. 2021, 22, 101443. [Google Scholar] [CrossRef]
  37. Méndez, J.I.; Ponce, P.; Meier, A.; Peffer, T.; Mata, O.; Molina, A. S4 Product Design Framework: A Gamification Strategy Based on Type 1 and 2 Fuzzy Logic. In Smart Multimedia; Lecture Notes in Computer Science; McDaniel, T., Berretti, S., Curcio, I.D.D., Basu, A., Eds.; Springer International Publishing: Cham, Switzerland, 2020; Volume 12015, pp. 509–524. ISBN 978-3-030-54406-5. [Google Scholar]
  38. Méndez, J.I.; Ponce, P.; Miranda, O.; Pérez, C.; Cruz, A.P.; Peffer, T.; Meier, A.; McDaniel, T.; Molina, A. Designing a Consumer Framework for Social Products Within a Gamified Smart Home Context. In Universal Access in Human-Computer Interaction. Design Methods and User Experience; Lecture Notes in Computer Science; Antona, M., Stephanidis, C., Eds.; Springer International Publishing: Cham, Switzerland, 2021; Volume 12768, pp. 429–443. ISBN 978-3-030-78091-3. [Google Scholar]
  39. Mendez, J.I.; Ponce, P.; Meier, A.; Peffer, T.; Mata, O.; Molina, A. Framework for Promoting Social Interaction and Physical Activity in Elderly People Using Gamification and Fuzzy Logic Strategy. In Proceedings of the 2019 IEEE Global Conference on Signal and Information Processing (GlobalSIP), Ottawa, ON, Canada, 11–14 November 2019; pp. 1–5. [Google Scholar]
  40. Mata, O.; Ponce, P.; McDaniel, T.; Méndez, J.I.; Peffer, T.; Molina, A. Smart City Concept Based on Cyber-Physical Social Systems with Hierarchical Ethical Agents Approach. In Proceedings of the Universal Access in Human-Computer Interaction. Access to Media, Learning and Assistive Environments, Washington, DC, USA, 24–29 July 2021; Antona, M., Stephanidis, C., Eds.; Springer International Publishing: Cham, Switzerland, 2021; pp. 424–437. [Google Scholar]
  41. Ponce, P.; Mendez, J.I.; Medina, A.; Mata, O.; Meier, A.; Peffer, T.; Molina, A. Smart Cities Using Social Cyber-Physical Systems Driven by Education. In Proceedings of the 2021 IEEE European Technology and Engineering Management Summit (E-TEMS), Dortmund, Germany, 18 March 2021; pp. 155–160. [Google Scholar]
  42. Mendez, J.I.; Ponce, P.; Medina, A.; Peffer, T.; Meier, A.; Molina, A. A Smooth and Accepted Transition to the Future of Cities Based on the Standard ISO 37120, Artificial Intelligence, and Gamification Constructors. In Proceedings of the 2021 IEEE European Technology and Engineering Management Summit (E-TEMS), Dortmund, Germany, 18 March 2021; pp. 65–71. [Google Scholar]
  43. Méndez, J.I.; Ponce, P.; Peffer, T.; Meier, A.; Molina, A. A Gamified HMI as a Response for Implementing a Smart-Sustainable University Campus. In Proceedings of the Smart and Sustainable Collaborative Networks 4.0, Saint-Étienne, France, 22–24 November 2021; Camarinha-Matos, L.M., Boucher, X., Afsarmanesh, H., Eds.; Springer International Publishing: Cham, Switzerland, 2021; pp. 683–691. [Google Scholar]
  44. Méndez, J.I.; Ponce, P.; Pecina, M.; Schroeder, G.; Castellanos, S.; Peffer, T.; Meier, A.; Molina, A. A Rapid HMI Prototyping Based on Personality Traits and AI for Social Connected Thermostats. In Advances in Soft Computing; Batyrshin, I., Gelbukh, A., Sidorov, G., Eds.; Springer International Publishing: Cham, Switzerland, 2021; pp. 216–227. [Google Scholar]
  45. Mata, O.; Ponce, P.; Méndez, I.; Molina, A.; Meier, A.; Peffer, T. A Model Using Artificial Neural Networks and Fuzzy Logic for Knowing the Consumer on Smart Thermostats as a S3 Product. In Advances in Soft Computing; Martínez-Villaseñor, L., Batyrshin, I., Marín-Hernández, A., Eds.; Springer International Publishing: Cham, Switzerland, 2019; Volume 11835, pp. 430–439. ISBN 978-3-030-33748-3. [Google Scholar]
  46. Zadeh, L.A. Fuzzy Sets. Inf. Control. 1965, 8, 338–353. [Google Scholar] [CrossRef] [Green Version]
  47. Ponce, P. Inteligencia Artificial Con Aplicaciones a La Ingeniería, 1st ed.; Alfaomega: Mexico City, Mexico, 2011; ISBN 978-607-7854-83-8. [Google Scholar]
  48. Ponce-Cruz, P.; Molina, A.; MacCleery, B. Fuzzy Logic Type 1 and Type 2 Based on LabVIEW(TM) FPGA, 1st ed.; Studies in Fuzziness and Soft Computing; Springer: Cham, Switzerland, 2016; Volume 334, ISBN 3-319-26655-1. [Google Scholar]
  49. Wlodarczyk, T.W.; Rong, C.; O’Connor, M.; Musen, M. SWRL-F: A Fuzzy Logic Extension of the Semantic Web Rule Language. In Proceedings of the International Conference on Web Intelligence, Mining and Semantics—WIMS ’11, Sogndal, Norway, 25–27 May 2011; ACM Press: New York, NY, USA, 2011; pp. 1–9. [Google Scholar]
  50. Thakur, A.; Alam, M.S.; Abir, R.M.H.; Kushal, M.A.A.; Rahman, R.M. A Fuzzy Approach for the Diagnosis of Depression. In Modern Approaches for Intelligent Information and Database Systems, Studies in Computational Intelligence; Sieminski, A., Kozierkiewicz, A., Nunez, M., Ha, Q.T., Eds.; Springer International Publishing: Cham, Switzerland, 2018; Volume 769, pp. 199–211. ISBN 978-3-319-76080-3. [Google Scholar]
  51. Leon, E.; Montejo, M.; Dorronsoro, I. Prospect of Smart Home-Based Detection of Subclinical Depressive Disorders. In Proceedings of the 5th International ICST Conference on Pervasive Computing Technologies for Healthcare, Dublin, Ireland, 23–26 May 2011. [Google Scholar]
  52. Pal, D.; Triyason, T.; Funikul, S. Smart Homes and Quality of Life for the Elderly: A Systematic Review. In Proceedings of the 2017 IEEE International Symposium on Multimedia (ISM), Taichung, Taiwan, 11–13 December 2017; pp. 413–419. [Google Scholar]
  53. VandeWeerd, C.; Yalcin, A.; Aden-Buie, G.; Wang, Y.; Roberts, M.; Mahser, N.; Fnu, C.; Fabiano, D. HomeSense: Design of an Ambient Home Health and Wellness Monitoring Platform for Older Adults. Health Technol. 2020, 10, 1291–1309. [Google Scholar] [CrossRef]
  54. Silva, D.C.B.; Cruz, P.P.; Gutiérrez, A.M.; Avendaño, L.A.S. Applications of Human-Computer Interaction and Robotics Based on Artificial Intelligence; Editorial Digital del Tecnológico de Monterrey: Monterrey, Mexico, 2020. [Google Scholar]
  55. Summers, C.; Wu, P.; Taylor, A.J.G. Supporting Mental Health During the COVID-19 Pandemic Using a Digital Behavior Change Intervention: An Open-Label, Single-Arm, Pre-Post Intervention Study. JMIR Form Res. 2021, 5, e31273. [Google Scholar] [CrossRef]
  56. Mangrulkar, R.S.; Michalas, A.; Shekokar, N.M.; Narvekar, M.; Chavan, P.V. Design of Intelligent Applications Using Machine Learning and Deep Learning Techniques, 1st ed.; Chapman and Hall/CRC: Boca Raton, FL, USA, 2021; ISBN 978-1-00-313368-1. [Google Scholar]
  57. Chou, Y. Actionable Gamification Beyond Points, Badges, and Leaderboards; Octalysis Media: Fremont, CA, USA, 2015; ISBN 978-1-5117-4404-1. [Google Scholar]
  58. Dias, L.P.S.; Barbosa, J.L.V.; Vianna, H.D. Gamification and Serious Games in Depression Care: A Systematic Mapping Study. Telemat. Inform. 2018, 35, 213–224. [Google Scholar] [CrossRef]
  59. Lukas, C.A.; Eskofier, B.; Berking, M. A Gamified Smartphone-Based Intervention for Depression: Randomized Controlled Pilot Trial. JMIR Ment. Health 2021, 8, e16643. [Google Scholar] [CrossRef] [PubMed]
  60. Hungerbuehler, I.; Daley, K.; Cavanagh, K.; Garcia Claro, H.; Kapps, M. Chatbot-Based Assessment of Employees’ Mental Health: Design Process and Pilot Implementation. JMIR Form Res. 2021, 5, e21678. [Google Scholar] [CrossRef]
  61. National Health and Nutrition Examination Survey 2017–March 2020 Data Documentation, Codebook, and Frequencies–Demographic Variables and Sample Weights (P_DEMO). Available online: https://wwwn.cdc.gov/Nchs/Nhanes/2017-2018/P_DEMO.htm#RIAGENDR (accessed on 14 October 2021).
  62. National Health and Nutrition Examination Survey P_DEMO_Dataset. Available online: https://wwwn.cdc.gov/Nchs/Nhanes/2017-2018/P_DEMO.XPT (accessed on 13 October 2021).
  63. Lee, D.K. Alternatives to P Value: Confidence Interval and Effect Size. Korean J. Anesthesiol. 2016, 69, 555. [Google Scholar] [CrossRef] [Green Version]
  64. Méndez, J.I.; Meza-Sánchez, A.V.; Ponce, P.; McDaniel, T.; Meier, A.; Molina, A. PHQ9-LabVIEW Results. Available online: https://github.com/IsabelMendezG/PHQ9_FuzzyLogicResults (accessed on 14 November 2021).
Figure 1. Gamified Smart Home structure.
Figure 1. Gamified Smart Home structure.
Sensors 21 07864 g001
Figure 2. PHQ-9 algorithm for the fuzzy logic decision system.
Figure 2. PHQ-9 algorithm for the fuzzy logic decision system.
Sensors 21 07864 g002
Figure 3. Smart Home Structure considering the PHQ-9 and the inclusion of Alexa.
Figure 3. Smart Home Structure considering the PHQ-9 and the inclusion of Alexa.
Sensors 21 07864 g003
Figure 4. Proposed Framework.
Figure 4. Proposed Framework.
Sensors 21 07864 g004
Figure 5. Fuzzy logic decision system: (a) first FL input and output variables: Q9; (b) first FL input and output variables: TotalScore.; (c) second FL input and output variables: age; (d) second FL input and output variables: age group.
Figure 5. Fuzzy logic decision system: (a) first FL input and output variables: Q9; (b) first FL input and output variables: TotalScore.; (c) second FL input and output variables: age; (d) second FL input and output variables: age group.
Sensors 21 07864 g005
Figure 6. LabView project: (a) block diagram; (b) front panel.
Figure 6. LabView project: (a) block diagram; (b) front panel.
Sensors 21 07864 g006
Figure 7. Dashboard results: (a) 20 years old individual with a total score of 5; (b) 43 years old individual with a total score of 16 and suicidal thoughts; (c) 26 years old individual with a total score of 8 and suicidal thoughts; (d) 54 years old user with a total score of 16.
Figure 7. Dashboard results: (a) 20 years old individual with a total score of 5; (b) 43 years old individual with a total score of 16 and suicidal thoughts; (c) 26 years old individual with a total score of 8 and suicidal thoughts; (d) 54 years old user with a total score of 16.
Sensors 21 07864 g007
Figure 8. HMI oriented to pre-diagnosis using the PHQ-9: (a) Homepage of the gamified HMI; (b) Question 9 is depicted in the gamified HMI.
Figure 8. HMI oriented to pre-diagnosis using the PHQ-9: (a) Homepage of the gamified HMI; (b) Question 9 is depicted in the gamified HMI.
Sensors 21 07864 g008
Table 1. Patient Health Questionnaire (PHQ-9).
Table 1. Patient Health Questionnaire (PHQ-9).
Over the Last 2 Weeks, How Often Have You Been Bothered by Any of These Following Problems?Not at AllSeveral DaysMore than Half the DaysNearly Every Day
1. Little interest or pleasure in doing things0123
2. Feeling down, depressed, or hopeless0123
3. Trouble falling or staying asleep, or sleeping too much0123
4. Feeling tired or having little energy0123
5. Poor appetite or overeating0123
6. Feeling bad about yourself—or that you are a failure or have let yourself of your family down0123
7. Trouble concentrating on things, such as reading the newspaper or watching television0123
8. Moving or speaking so slowly that other people could have noticed? Or the opposite—being so fidgety or restless that you have been moving around a lot more than usual?0123
9. Thoughts that you would be better off dead, or of hurting yourself.0123
Table 2. Extrinsic and intrinsic motivations used in gamification.
Table 2. Extrinsic and intrinsic motivations used in gamification.
Extrinsic MotivationIntrinsic Motivation
ChallengesNotifications
LevelsMessages
DashboardTips
StatisticsCommunity
Profile picture or avatarCollaboration
Points, badges, leaderboardCompetition
Table 3. Code and description of the melted dataset.
Table 3. Code and description of the melted dataset.
CodeDescription
SEQNRespondent sequence number.
RIAGENDRGender of the participant.
RIDAGEYRAge in years of the participant at the time of screening. Individuals 80 and over were coded at 80 years of age.
DPQ010 to DPQ090Represent each question described in Table 1.
TotalTotal score up to 27.
Table 4. PHQ-9 percentile score divided by age group.
Table 4. PHQ-9 percentile score divided by age group.
Score PercentileAge Group
20–2930–3940–4950–5960–6970–80
P3 (Expected low limit)000000
P25 (Expected)000000
P50 (Median)222222
P75 (Expected)545554
P97 (Expected high limit)141515161614.67
Table 5. Depression severity by gender.
Table 5. Depression severity by gender.
Depression SeverityMaleFemale
No30332790
Mild553780
Moderate180296
Moderately severe69108
Severe3043
Table 6. Depression by age group.
Table 6. Depression by age group.
Score PercentileAge Group
20–2930–3940–4950–5960–6970–80
No Depression8619209419641143994
Total Depression336289869397402316
Table 7. First FL decision system rules.
Table 7. First FL decision system rules.
RuleIFANDTHEN
1Q9 is “Not at all”TotalScore is “No depression”Action is “Continue monitoring”
2Q9 is “Not at all”TotalScore is “Mild depression”Action is “Continue monitoring”
3Q9 is “Not at all”TotalScore is “Moderate depression”Action is “Specialist referral”
4Q9 is “Not at all”TotalScore is “Moderately severe depression”Action is “Specialist referral”
5Q9 is “Not at all”TotalScore is “Severe depression”Action is “Specialist referral”
6Q9 is “Several days”TotalScore is “No depression”Action is “Specialist referral is mandatory”
7Q9 is “Several days”TotalScore is “Mild depression”Action is Specialist referral is mandatory
8Q9 is “Several days”TotalScore is “Moderate depression”Action is Specialist referral is mandatory
9Q9 is “Several days”TotalScore is “Moderately severe depression”Action is Specialist referral is mandatory
10Q9 is “Several days”TotalScore is “Severe depression”Action is Specialist referral is mandatory
11Q9 is “More than half the days”TotalScore is “No depression”Action is “Specialist referral is mandatory”
12Q9 is “More than half the days”TotalScore is “Mild depression”Action is Specialist referral is mandatory
13Q9 is “More than half the days”TotalScore is “Moderate depression”Action is Specialist referral is mandatory
14Q9 is “More than half the days”TotalScore is “Moderately severe depression”Action is Specialist referral is mandatory
15Q9 is “More than half the days”TotalScore is “Severe depression”Action is Specialist referral is mandatory
16Q9 is “Nearly every day”TotalScore is “No depression”Action is “Specialist referral is mandatory”
17Q9 is “Nearly every day”TotalScore is “Mild depression”Action is Specialist referral is mandatory
18Q9 is “Nearly every day”TotalScore is “Moderate depression”Action is Specialist referral is mandatory
19Q9 is “Nearly every day”TotalScore is “Moderately severe depression”Action is Specialist referral is mandatory
20Q9 is “Nearly every day”TotalScore is “Severe depression”Action is “Specialist referral is mandatory
Table 8. Second FL decision system rules.
Table 8. Second FL decision system rules.
RuleIFANDTHEN
1Age is “20–29”20–29 is “Expected”Action is “Continue monitoring”
2Age is “20–29”20–29 is “Outside expected”Action is “Specialist referral”
3Age is “20–29”20–29 is “Abnormal”Action is “Specialist referral is mandatory”
4Age is “30–39”30–39 is “Expected”Action is “Continue monitoring”
5Age is “30–39”30–39 is “Outside expected”Action is “Specialist referral”
6Age is “30–39”30–39 is “Abnormal”Action is “Specialist referral is mandatory”
7Age is “40–49”40–49 is “Expected”Action is “Continue monitoring”
8Age is “40–49”40–49 is “Outside expected”Action is “Specialist referral”
9Age is “40–49”40–49 is “Abnormal”Action is “Specialist referral is mandatory”
10Age is “50–59”50–59 is “Expected”Action is “Continue monitoring”
11Age is “50–59”50–59 is “Outside expected”Action is “Specialist referral”
12Age is “50–59”50–59 is “Abnormal”Action is “Specialist referral is mandatory”
13Age is “60–69”60–69 is “Expected”Action is “Continue monitoring”
14Age is “60–69”60–69 is “Outside expected”Action is “Specialist referral”
15Age is “60–69”60–69 is “Abnormal”Action is “Specialist referral is mandatory”
16Age is “70–80”70–80 is “Expected”Action is “Continue monitoring”
17Age is “70–80”70–80 is “Outside expected”Action is “Specialist referral”
18Age is “70–80”70–80 is “Abnormal”Action is “Specialist referral is mandatory”
Table 9. Exemplification of the results, including the LabVIEW decision system. The complete table is reported in [64].
Table 9. Exemplification of the results, including the LabVIEW decision system. The complete table is reported in [64].
SEQNRIDAGEYRDPQ010DPQ020DPQ030DPQ040DPQ050DPQ060DPQ070DPQ080DPQ090TotalAction to TakeExpectation
109266290000000000Continue monitoringExpected
119042750000000011Specialist referral is MANDATORYExpected
1099947333332003017Specialist referralAbnormal
121279281121211009Continue monitoringOutside expected
1246985123112112013Specialist referralOutside expected
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Méndez, J.I.; Meza-Sánchez, A.V.; Ponce, P.; McDaniel, T.; Peffer, T.; Meier, A.; Molina, A. Smart Homes as Enablers for Depression Pre-Diagnosis Using PHQ-9 on HMI through Fuzzy Logic Decision System. Sensors 2021, 21, 7864. https://doi.org/10.3390/s21237864

AMA Style

Méndez JI, Meza-Sánchez AV, Ponce P, McDaniel T, Peffer T, Meier A, Molina A. Smart Homes as Enablers for Depression Pre-Diagnosis Using PHQ-9 on HMI through Fuzzy Logic Decision System. Sensors. 2021; 21(23):7864. https://doi.org/10.3390/s21237864

Chicago/Turabian Style

Méndez, Juana Isabel, Ana Victoria Meza-Sánchez, Pedro Ponce, Troy McDaniel, Therese Peffer, Alan Meier, and Arturo Molina. 2021. "Smart Homes as Enablers for Depression Pre-Diagnosis Using PHQ-9 on HMI through Fuzzy Logic Decision System" Sensors 21, no. 23: 7864. https://doi.org/10.3390/s21237864

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop