\documentclass[11pt,twoside]{article}\makeatletter

\IfFileExists{xcolor.sty}%
  {\RequirePackage{xcolor}}%
  {\RequirePackage{color}}
\usepackage{colortbl}
\usepackage{wrapfig}
\usepackage{ifxetex}
\ifxetex
  \usepackage{fontspec}
  \usepackage{xunicode}
  \catcode`⃥=\active \def⃥{\textbackslash}
  \catcode`❴=\active \def❴{\{}
  \catcode`❵=\active \def❵{\}}
  \def\textJapanese{\fontspec{Noto Sans CJK JP}}
  \def\textChinese{\fontspec{Noto Sans CJK SC}}
  \def\textKorean{\fontspec{Noto Sans CJK KR}}
  \setmonofont{DejaVu Sans Mono}
  
\else
  \IfFileExists{utf8x.def}%
   {\usepackage[utf8x]{inputenc}
      \PrerenderUnicode{–}
    }%
   {\usepackage[utf8]{inputenc}}
  \usepackage[english]{babel}
  \usepackage[T1]{fontenc}
  \usepackage{float}
  \usepackage[]{ucs}
  \uc@dclc{8421}{default}{\textbackslash }
  \uc@dclc{10100}{default}{\{}
  \uc@dclc{10101}{default}{\}}
  \uc@dclc{8491}{default}{\AA{}}
  \uc@dclc{8239}{default}{\,}
  \uc@dclc{20154}{default}{ }
  \uc@dclc{10148}{default}{>}
  \def\textschwa{\rotatebox{-90}{e}}
  \def\textJapanese{}
  \def\textChinese{}
  \IfFileExists{tipa.sty}{\usepackage{tipa}}{}
\fi
\def\exampleFont{\ttfamily\small}
\DeclareTextSymbol{\textpi}{OML}{25}
\usepackage{relsize}
\RequirePackage{array}
\def\@testpach{\@chclass
 \ifnum \@lastchclass=6 \@ne \@chnum \@ne \else
  \ifnum \@lastchclass=7 5 \else
   \ifnum \@lastchclass=8 \tw@ \else
    \ifnum \@lastchclass=9 \thr@@
   \else \z@
   \ifnum \@lastchclass = 10 \else
   \edef\@nextchar{\expandafter\string\@nextchar}%
   \@chnum
   \if \@nextchar c\z@ \else
    \if \@nextchar l\@ne \else
     \if \@nextchar r\tw@ \else
   \z@ \@chclass
   \if\@nextchar |\@ne \else
    \if \@nextchar !6 \else
     \if \@nextchar @7 \else
      \if \@nextchar (8 \else
       \if \@nextchar )9 \else
  10
  \@chnum
  \if \@nextchar m\thr@@\else
   \if \@nextchar p4 \else
    \if \@nextchar b5 \else
   \z@ \@chclass \z@ \@preamerr \z@ \fi \fi \fi \fi
   \fi \fi  \fi  \fi  \fi  \fi  \fi \fi \fi \fi \fi \fi}
\gdef\arraybackslash{\let\\=\@arraycr}
\def\@textsubscript#1{{\m@th\ensuremath{_{\mbox{\fontsize\sf@size\z@#1}}}}}
\def\Panel#1#2#3#4{\multicolumn{#3}{){\columncolor{#2}}#4}{#1}}
\def\abbr{}
\def\corr{}
\def\expan{}
\def\gap{}
\def\orig{}
\def\reg{}
\def\ref{}
\def\sic{}
\def\persName{}\def\name{}
\def\placeName{}
\def\orgName{}
\def\textcal#1{{\fontspec{Lucida Calligraphy}#1}}
\def\textgothic#1{{\fontspec{Lucida Blackletter}#1}}
\def\textlarge#1{{\large #1}}
\def\textoverbar#1{\ensuremath{\overline{#1}}}
\def\textquoted#1{‘#1’}
\def\textsmall#1{{\small #1}}
\def\textsubscript#1{\@textsubscript{\selectfont#1}}
\def\textxi{\ensuremath{\xi}}
\def\titlem{\itshape}
\newenvironment{biblfree}{}{\ifvmode\par\fi }
\newenvironment{bibl}{}{}
\newenvironment{byline}{\vskip6pt\itshape\fontsize{16pt}{18pt}\selectfont}{\par }
\newenvironment{citbibl}{}{\ifvmode\par\fi }
\newenvironment{docAuthor}{\ifvmode\vskip4pt\fontsize{16pt}{18pt}\selectfont\fi\itshape}{\ifvmode\par\fi }
\newenvironment{docDate}{}{\ifvmode\par\fi }
\newenvironment{docImprint}{\vskip 6pt}{\ifvmode\par\fi }
\newenvironment{docTitle}{\vskip6pt\bfseries\fontsize{22pt}{25pt}\selectfont}{\par }
\newenvironment{msHead}{\vskip 6pt}{\par}
\newenvironment{msItem}{\vskip 6pt}{\par}
\newenvironment{rubric}{}{}
\newenvironment{titlePart}{}{\par }

\newcolumntype{L}[1]{){\raggedright\arraybackslash}p{#1}}
\newcolumntype{C}[1]{){\centering\arraybackslash}p{#1}}
\newcolumntype{R}[1]{){\raggedleft\arraybackslash}p{#1}}
\newcolumntype{P}[1]{){\arraybackslash}p{#1}}
\newcolumntype{B}[1]{){\arraybackslash}b{#1}}
\newcolumntype{M}[1]{){\arraybackslash}m{#1}}
\definecolor{label}{gray}{0.75}
\def\unusedattribute#1{\sout{\textcolor{label}{#1}}}
\DeclareRobustCommand*{\xref}{\hyper@normalise\xref@}
\def\xref@#1#2{\hyper@linkurl{#2}{#1}}
\begingroup
\catcode`\_=\active
\gdef_#1{\ensuremath{\sb{\mathrm{#1}}}}
\endgroup
\mathcode`\_=\string"8000
\catcode`\_=12\relax

\usepackage[a4paper,twoside,lmargin=1in,rmargin=1in,tmargin=1in,bmargin=1in,marginparwidth=0.75in]{geometry}
\usepackage{framed}

\definecolor{shadecolor}{gray}{0.95}
\usepackage{longtable}
\usepackage[normalem]{ulem}
\usepackage{fancyvrb}
\usepackage{fancyhdr}
\usepackage{graphicx}
\usepackage{marginnote}

\renewcommand{\@cite}[1]{#1}


\renewcommand*{\marginfont}{\itshape\footnotesize}

\def\Gin@extensions{.pdf,.png,.jpg,.mps,.tif}

  \pagestyle{fancy}

\usepackage[pdftitle={Dheergayu: Clinical Depression Monitoring Assistant},
 pdfauthor={}]{hyperref}
\hyperbaseurl{}

	 \paperwidth210mm
	 \paperheight297mm
              
\def\@pnumwidth{1.55em}
\def\@tocrmarg {2.55em}
\def\@dotsep{4.5}
\setcounter{tocdepth}{3}
\clubpenalty=8000
\emergencystretch 3em
\hbadness=4000
\hyphenpenalty=400
\pretolerance=750
\tolerance=2000
\vbadness=4000
\widowpenalty=10000

\renewcommand\section{\@startsection {section}{1}{\z@}%
     {-1.75ex \@plus -0.5ex \@minus -.2ex}%
     {0.5ex \@plus .2ex}%
     {\reset@font\Large\bfseries}}
\renewcommand\subsection{\@startsection{subsection}{2}{\z@}%
     {-1.75ex\@plus -0.5ex \@minus- .2ex}%
     {0.5ex \@plus .2ex}%
     {\reset@font\Large}}
\renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
     {-1.5ex\@plus -0.35ex \@minus -.2ex}%
     {0.5ex \@plus .2ex}%
     {\reset@font\large}}
\renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
     {-1ex \@plus-0.35ex \@minus -0.2ex}%
     {0.5ex \@plus .2ex}%
     {\reset@font\normalsize}}
\renewcommand\subparagraph{\@startsection{subparagraph}{5}{\parindent}%
     {1.5ex \@plus1ex \@minus .2ex}%
     {-1em}%
     {\reset@font\normalsize\bfseries}}


\def\l@section#1#2{\addpenalty{\@secpenalty} \addvspace{1.0em plus 1pt}
 \@tempdima 1.5em \begingroup
 \parindent \z@ \rightskip \@pnumwidth 
 \parfillskip -\@pnumwidth 
 \bfseries \leavevmode #1\hfil \hbox to\@pnumwidth{\hss #2}\par
 \endgroup}
\def\l@subsection{\@dottedtocline{2}{1.5em}{2.3em}}
\def\l@subsubsection{\@dottedtocline{3}{3.8em}{3.2em}}
\def\l@paragraph{\@dottedtocline{4}{7.0em}{4.1em}}
\def\l@subparagraph{\@dottedtocline{5}{10em}{5em}}
\@ifundefined{c@section}{\newcounter{section}}{}
\@ifundefined{c@chapter}{\newcounter{chapter}}{}
\newif\if@mainmatter 
\@mainmattertrue
\def\chaptername{Chapter}
\def\frontmatter{%
  \pagenumbering{roman}
  \def\thechapter{\@roman\c@chapter}
  \def\theHchapter{\roman{chapter}}
  \def\thesection{\@roman\c@section}
  \def\theHsection{\roman{section}}
  \def\@chapapp{}%
}
\def\mainmatter{%
  \cleardoublepage
  \def\thechapter{\@arabic\c@chapter}
  \setcounter{chapter}{0}
  \setcounter{section}{0}
  \pagenumbering{arabic}
  \setcounter{secnumdepth}{6}
  \def\@chapapp{\chaptername}%
  \def\theHchapter{\arabic{chapter}}
  \def\thesection{\@arabic\c@section}
  \def\theHsection{\arabic{section}}
}
\def\backmatter{%
  \cleardoublepage
  \setcounter{chapter}{0}
  \setcounter{section}{0}
  \setcounter{secnumdepth}{2}
  \def\@chapapp{\appendixname}%
  \def\thechapter{\@Alph\c@chapter}
  \def\theHchapter{\Alph{chapter}}
  \appendix
}
\newenvironment{bibitemlist}[1]{%
   \list{\@biblabel{\@arabic\c@enumiv}}%
       {\settowidth\labelwidth{\@biblabel{#1}}%
        \leftmargin\labelwidth
        \advance\leftmargin\labelsep
        \@openbib@code
        \usecounter{enumiv}%
        \let\p@enumiv\@empty
        \renewcommand\theenumiv{\@arabic\c@enumiv}%
	}%
  \sloppy
  \clubpenalty4000
  \@clubpenalty \clubpenalty
  \widowpenalty4000%
  \sfcode`\.\@m}%
  {\def\@noitemerr
    {\@latex@warning{Empty `bibitemlist' environment}}%
    \endlist}

\def\tableofcontents{\section*{\contentsname}\@starttoc{toc}}
\parskip0pt
\parindent1em
\def\Panel#1#2#3#4{\multicolumn{#3}{){\columncolor{#2}}#4}{#1}}
\newenvironment{reflist}{%
  \begin{raggedright}\begin{list}{}
  {%
   \setlength{\topsep}{0pt}%
   \setlength{\rightmargin}{0.25in}%
   \setlength{\itemsep}{0pt}%
   \setlength{\itemindent}{0pt}%
   \setlength{\parskip}{0pt}%
   \setlength{\parsep}{2pt}%
   \def\makelabel##1{\itshape ##1}}%
  }
  {\end{list}\end{raggedright}}
\newenvironment{sansreflist}{%
  \begin{raggedright}\begin{list}{}
  {%
   \setlength{\topsep}{0pt}%
   \setlength{\rightmargin}{0.25in}%
   \setlength{\itemindent}{0pt}%
   \setlength{\parskip}{0pt}%
   \setlength{\itemsep}{0pt}%
   \setlength{\parsep}{2pt}%
   \def\makelabel##1{\upshape ##1}}%
  }
  {\end{list}\end{raggedright}}
\newenvironment{specHead}[2]%
 {\vspace{20pt}\hrule\vspace{10pt}%
  \phantomsection\label{#1}\markright{#2}%

  \pdfbookmark[2]{#2}{#1}%
  \hspace{-0.75in}{\bfseries\fontsize{16pt}{18pt}\selectfont#2}%
  }{}
      \def\TheFullDate{2020-01-15 (revised: 15 January 2020)}
\def\TheID{10.34257/GJCSTCVOL20IS2PG53\makeatother }
\def\TheDate{2020-01-15}
\title{Dheergayu: Clinical Depression Monitoring Assistant}
\author{}\makeatletter 
\makeatletter
\newcommand*{\cleartoleftpage}{%
  \clearpage
    \if@twoside
    \ifodd\c@page
      \hbox{}\newpage
      \if@twocolumn
        \hbox{}\newpage
      \fi
    \fi
  \fi
}
\makeatother
\makeatletter
\thispagestyle{empty}
\markright{\@title}\markboth{\@title}{\@author}
\renewcommand\small{\@setfontsize\small{9pt}{11pt}\abovedisplayskip 8.5\p@ plus3\p@ minus4\p@
\belowdisplayskip \abovedisplayskip
\abovedisplayshortskip \z@ plus2\p@
\belowdisplayshortskip 4\p@ plus2\p@ minus2\p@
\def\@listi{\leftmargin\leftmargini
               \topsep 2\p@ plus1\p@ minus1\p@
               \parsep 2\p@ plus\p@ minus\p@
               \itemsep 1pt}
}
\makeatother
\fvset{frame=single,numberblanklines=false,xleftmargin=5mm,xrightmargin=5mm}
\fancyhf{} 
\setlength{\headheight}{14pt}
\fancyhead[LE]{\bfseries\leftmark} 
\fancyhead[RO]{\bfseries\rightmark} 
\fancyfoot[RO]{}
\fancyfoot[CO]{\thepage}
\fancyfoot[LO]{\TheID}
\fancyfoot[LE]{}
\fancyfoot[CE]{\thepage}
\fancyfoot[RE]{\TheID}
\hypersetup{citebordercolor=0.75 0.75 0.75,linkbordercolor=0.75 0.75 0.75,urlbordercolor=0.75 0.75 0.75,bookmarksnumbered=true}
\fancypagestyle{plain}{\fancyhead{}\renewcommand{\headrulewidth}{0pt}}

\date{}
\usepackage{authblk}

\providecommand{\keywords}[1]
{
\footnotesize
  \textbf{\textit{Index terms---}} #1
}

\usepackage{graphicx,xcolor}
\definecolor{GJBlue}{HTML}{273B81}
\definecolor{GJLightBlue}{HTML}{0A9DD9}
\definecolor{GJMediumGrey}{HTML}{6D6E70}
\definecolor{GJLightGrey}{HTML}{929497} 

\renewenvironment{abstract}{%
   \setlength{\parindent}{0pt}\raggedright
   \textcolor{GJMediumGrey}{\rule{\textwidth}{2pt}}
   \vskip16pt
   \textcolor{GJBlue}{\large\bfseries\abstractname\space}
}{%   
   \vskip8pt
   \textcolor{GJMediumGrey}{\rule{\textwidth}{2pt}}
   \vskip16pt
}

\usepackage[absolute,overlay]{textpos}

\makeatother 
      \usepackage{lineno}
      \linenumbers
      
\begin{document}

             \author[1]{Dias  A.A.M.R}

             \author[2]{Kolamunna  K.G.T.D}

             \author[3]{Fernando  N.I.R}

             \author[4]{Pannala  U.K}

             \affil[1]{  Sri Lanka Institute of Information Technology}

\renewcommand\Authands{ and }

\date{\small \em Received: 6 December 2019 Accepted: 3 January 2020 Published: 15 January 2020}

\maketitle


\begin{abstract}
        


Depression is identified as one of the most common mental health disorders in the world. Depression not only impacts the patient but also their families and relatives. If not properly treated, due to these reasons it leads people to hazardous situations. Nonetheless existing clinical diagnosis tools for monitoring illness trajectory are inadequate. Traditionally, psychiatrists use one to one interaction assessments to diagnose depression levels. However, these cliniccentered services can pose several operational challenges. In order to monitor clinical depressive disorders, patients are required to travel regularly to a clinical center within its limited operating hours. These procedures are highly resource intensive because they require skilled clinician and laboratories. To address these issues, we propose a personal and ubiquitous sensing technologies, such as fitness trackers and smartphones, which can monitor human vitals in an unobtrusive manner.

\end{abstract}


\keywords{clinical depression, emotional health monitoring, facial features extraction, visual computing, machine learning, predictive model}

\begin{textblock*}{18cm}(1cm,1cm) % {block width} (coords) 
\textcolor{GJBlue}{\LARGE Global Journals \LaTeX\ JournalKaleidoscope\texttrademark}
\end{textblock*}

\begin{textblock*}{18cm}(1.4cm,1.5cm) % {block width} (coords) 
\textcolor{GJBlue}{\footnotesize \\ Artificial Intelligence formulated this projection for compatibility purposes from the original article published at Global Journals. However, this technology is currently in beta. \emph{Therefore, kindly ignore odd layouts, missed formulae, text, tables, or figures.}}
\end{textblock*}


\begin{textblock*}{10cm}(1.05cm,3cm)
{{\textit{CrossRef DOI of original article:}} \underline{10.34257/GJCSTCVOL20IS2PG53}}
\end{textblock*}\let\tabcellsep& 	 	 		 
\section[{Introduction}]{Introduction}\par
epression can be identified as a significant medical disorder that affects more than 264 million people  {\ref [1]} every year all around the world. Depression goes unrecognized and untreated most of the time due to lack of knowledge in this area, and even the treatment starts, it is regularly hard to identify its visibility. Apart from that, the world health organization has mentioned that depression goes untreated due to the untrained medical officers and lack of resources. Due to the mentioned scenarios, it poses several challenges to diagnose and treat depressed patients. In previous studies, depression diagnosis is often based on subjective screening questionnaires or structured clinical interviews that rely on timely in-person visits as well as accurate recollections by the patient. This makes early detection of depression symptoms exceedingly difficult among this population. There are different types of depression categories identified \hyperref[b1]{[2]}, \hyperref[b2]{[3]} in the world, but all those types share the same characteristics such as sleep variations, physical inactivity and mood swings. Apart from the detrimental effect on activities, it can lead to other problems such as reduced social interaction, drug abuse, a decrease of personal hygiene, increased alcohol use, and neglecting medicines \hyperref[b2]{[3]}. Researchers have proved that people can use technology to manage their day to day tasks without any hassle \hyperref[b4]{[4]}. At the same time people tend to use technical equipment to monitor their fitness activities. Due to that reason, we proposed implementing a comprehensive solution that will monitor depression using a fitness band and a mobile phone.\par
The rest of this paper is organized as follows. In section II, the Related work will be introduced. Then, System architecture will be discussed on Section III after that, the data analysis and methodology are explained in section IV. Section V contains the implementation results of the proposed system. Section VI concludes the research paper. 
\section[{II.}]{II.} 
\section[{Related Work}]{Related Work}\par
This part of the literature study will review existing approaches about depression diagnosis. Traditionally psychiatrists are specialized to work in anxiety and depression disorders. It has mainly focused on subjective screening and laboratory-based approaches \hyperref[b5]{[5]}. Recently there has been an advent of studies into cellular sensor networks and intelligent environments for remote monitoring applications. As a result, a significant portion of researchers have tried to develop mobile apps and social network behavioral patterns to diagnose affective conditions, such as emotion, social alienation and frustration.\par
In this section, in this section, we present relevant works that used to develop health data. The research of CARDIA \hyperref[b7]{[6]}, Fit flex \hyperref[b8]{[7]} have used wrist-worn actigraphy monitors to collect sleep data. This model has facilitated to measure the sleep parameters of a depressive personnel. The Research of interactive virtual agent-based health care delivery network \hyperref[b9]{[8]} of Sim Sei, was able to develop decision making support mechanism through an integrated system. A Reduced Region of Interest (ROI) based research on static facial emotions have used local binary patterns as the extraction technique \hyperref[b10]{[9]}. The researchers were able to find out the significant six facial features. The heart rate variability research was able to introduce wearable equipment to detect depression based on cardiograph data. \hyperref[b11]{[10]} Compared to the existing work in mental health monitoring \hyperref[b9]{[8,}\hyperref[b10]{9]}, "Dheergayu" is distinct in following features, Dheergayu proposes an integrated system for monitoring Depressive Disorders, and the solution centralized with enabling multi-health data capturing and analyzing models. The centralized model be able to sense and produce the severity level of depressive cases. 
\section[{III.}]{III.} 
\section[{System Architecture}]{System Architecture}\par
When designing "Dheergayu" we introduce an automated framework with two (2) distinct components. The patient data is cached into the application persistence and it will be synchronized into "Google Fit API" services by preconfigured user time intervals. 
\section[{IV.}]{IV.} 
\section[{Methodology}]{Methodology}\par
This project is about developing a clinical depression assistant which gives depression severity status based on Heart Rate Variability [12], Cyclic Alternation Pattern \hyperref[b14]{[13]} and Random Eye Movement \hyperref[b15]{[14]} of sleep, Static facial features \hyperref[b16]{[15]} and Dynamic facial features \hyperref[b17]{[16]} of a patient. The stated patient data access from the patient's fitness tracker and Camera of a smartphone via developed application. Under the methodology, reviews the analysis of each health data of a patient, to produce suggestions and further recommendations to improve decision making for caretakers and doctors. The goal of this project design is, assist patients in their difficult situations with the help of minimum user interactions. 
\section[{a) Research Dataset}]{a) Research Dataset}\par
The availability of empirical data is of vital significance for the evaluation of the research problem. The used datasets are important for model creations and feature extractions. Due to the delicate existence of clinical records, the dataset distribution is neither large nor unrestricted. Under the research of depression analysis, we used the following data sources \hyperref[b18]{[17]}     Eye aspect ratio concept which defined in the "Real-Time Eye Blink Detection using Facial Landmarks" research paper which based on the work by Soukupova and Cech \hyperref[b23]{[22]} used to identify the blinks of the depressed person. As shown in Fig. \hyperref[fig_4]{4} this feature only extracts the eye of the provided video and each eye is represented using six coordinates.\par
The EAR method used for this feature is mentioned below, EAR value is constant when the eye is open, but the value will drop to zero when a blink occurs. By using the landmark distance (1) this feature has ability to identify the blinks of the depressed person.\par
After identifying the blink count this feature should identify whether this blink count is normal or related to depression. According to \hyperref[b24]{[23]} depressed people have a low blink rate. It has been reported that the normal spontaneous blink rate is between 12 and 15/min \hyperref[b25]{[24]}. By getting these mentioned points this feature will generate a report that indicates the depression rate by using the blink rate. 
\section[{d) Analysis of Static Facial Features}]{d) Analysis of Static Facial Features}\par
The development of facial image analyzing plays an important role in the face recognition field \hyperref[b26]{[25]}. As well as the observation of facial emotions of a depression patient is provided huge support for decision making for the treatments by recognizing the depression level of the patient. This analysis of static facial images could give the early mentioned support in an effective way. 
\section[{i. Data Acquisition}]{i. Data Acquisition}\par
CK+48 facial emotion dataset \hyperref[b21]{[20]} were used to model development. The stated dataset contains 981 facial expressions in 48x48 dimensions and are categorized to 7 emotions as anger, contempt, disgust, fear, happiness, sadness and surprise. In the Preprocessing stage translating facial images into grayscale images. Face recognition and facial landmarks detection done by using the C++ library called Dlib \hyperref[b27]{[26]}. Emotion detection is done with feeding coordinates data of those extracted facial landmarks that are vectorized to Support Vector Machines classifier called Support Vector Classification with linear kernel. It could get 88\% accuracy of emotion detection through 10 runs. 
\section[{iii. Depresssion Analysis}]{iii. Depresssion Analysis}\par
As shown in Fig. \hyperref[fig_5]{5} we developed a Hidden Markov Model (HMM) based component to get the depression status of a patient using previous emotion data by setting initial values with the prior knowledge and HMM provides the depression level in a probabilistic way. Use of the previous status of the patient supports the creation of a network to identify the depression pattern. 
\section[{e) Analysis of Heart Rate Variability}]{e) Analysis of Heart Rate Variability}\par
Under the research study of HRV model development following datasets \hyperref[b18]{[17]}, \hyperref[b19]{[18]} were used. The datasets contained cardiograph data of 185 patients who had depressive disorders and 145 subjects were selected as control group (nondepressive disorders). Total 257 subjects were selected for model development. Data set contains attributes such as HRV, blood pressure, age, gender with 14 columns and 257 rows. In the data preprocessing stage, Principal Component Analysis used to manage the dataset more effectively.\par
In HRV detection, HRV is the physiological phenomenon of the variation in the time interval between consecutive heartbeats in milliseconds \hyperref[b28]{[27]}. Using logistic regression model analysis, the HRV, based on the age, gender, blood pressure and HRV rate. Model used fitness band data for its predictions. Model provides 94\% of accuracy of the training dataset. According to \hyperref[b29]{[28]} depression patients have a lower HRV than normal people. and HRV depends on the age limit of the person. As shown in Fig. \hyperref[fig_6]{6} the describes the performance of the evaluated model.  (2) This is the technique that used to provide the probabilistic result based on the historical predicted data. Analyzing historical data, "Dheergayu" can predict more accurate results based on the user data and history results. 
\section[{f) Analysis of Depressive Sleep i. Data Acquisition}]{f) Analysis of Depressive Sleep i. Data Acquisition}\par
Under the study, data \hyperref[b18]{[17]}[18] \hyperref[b20]{[19]} of the total 671 participants with evidence of having sleep disorders, 142 subjects were selected (Insomnia -63, Obstructive Sleep Disorder -36, normal controls -43). The selected proportion has Sleep Obstructive Disorder (OSA) \hyperref[b30]{[29]}, Insomnia \hyperref[b31]{[30]}. The subject's sleep was recorded from Electroencephalogram (EEG) channels, epochs of 30 seconds.\par
ii. Data Preprocessing   
\section[{Results and Outcomes}]{Results and Outcomes}\par
After performing the test phase, we found that there are significant differences between healthy and depression groups. At research beginning, the system accuracy will evaluate with modular based testing. Under the testing phase we used sixteen (  {\ref 16}) real-world respondents for result evaluation. The system test was conducted with two scenarios. 
\section[{a) Modular Based Testing}]{a) Modular Based Testing}\par
From the 16 respondents, 14 responses are selected into modular based testing. Under the testing process 2 cases are classified as positive cases (Clinically identified as having depression disorder), 2 participants of 16 eligible participants were dropped from the analysis because of missing data and anomalies. ? !(\& ! ? ! (?)\textbf{(4)} 
\section[{b) Mediator Based Testing}]{b) Mediator Based Testing}\par
In Mediator Based testing approach, stress tested with developed mediator of cloud server. The mediator developed with ensemble learners. In the prediction analysis that focused on depression, 2 participants of 16 eligible participants were dropped from the analysis because of missing data and anomalies.\par
As shown in Table  {\ref IV}, tested with a 14\% depression population. As shown in Table  {\ref V}, the mediator was able to reach a 92\% success ratio.  
\section[{Conclution}]{Conclution}\par
This research was carried out to identify the depression of clinically identified patients in a more accurate and efficient way with the help of machine learning and visual computing technologies that are widely used today. "Dheergayu" application, which is the outcome of this research, is fully equipped with four different features to monitor depression of a specific person. Most importantly this app will generate a report by using the outputs of all four features that will help the doctors to identify depression with different aspects. Face is one of the most important and versatile features when it comes to depression analyzing. Throughout the research "Dheergayu" team were able to identify different facial aspects of a person that can vary overtime due to the depression. "Dheergayu" application has the ability to capture videos and pictures of depressed people and get the outcome which is depression status by using the trained models and algorithms that are developed to monitor depression by using visual aspects of the face. Sleep and HRV are the other two features that "Dheergayu" team has identified during the research, which has a great impact and variance with depression. Application always communicates with the fitness band to collect sleep and HRV data of the person and it will be processed with the developed models and algorithms in a backend cloud server. Since these two features are using a smart watch, "Dheergayu" application has the capability to monitor live data in every movement.\par
Complete application is responsible for maintaining records that are generated by all four features and the novelty of this research is that there is no such solution to monitor depression with such a lowcost equipment and such features that are mentioned in the research paper. Since all the machine learning models and algorithms that are implemented in this solution has a higher accuracy, "Dheergayu" application can provide a comprehensive solution to the depression disorder.\begin{figure}[htbp]
\noindent\textbf{12}\includegraphics[]{image-2.png}
\caption{\label{fig_0}Fig. 1 .Fig. 2 :}\end{figure}
 \begin{figure}[htbp]
\noindent\textbf{}\includegraphics[]{image-3.png}
\caption{\label{fig_1}}\end{figure}
 \begin{figure}[htbp]
\noindent\textbf{1}\includegraphics[]{image-4.png}
\caption{\label{fig_2}Table 1 :}\end{figure}
 \begin{figure}[htbp]
\noindent\textbf{3}\includegraphics[]{image-5.png}
\caption{\label{fig_3}Fig. 3 :}\end{figure}
 \begin{figure}[htbp]
\noindent\textbf{4}\includegraphics[]{image-6.png}
\caption{\label{fig_4}Fig. 4 :}\end{figure}
 \begin{figure}[htbp]
\noindent\textbf{5}\includegraphics[]{image-7.png}
\caption{\label{fig_5}Fig. 5 :}\end{figure}
 \begin{figure}[htbp]
\noindent\textbf{6}\includegraphics[]{image-8.png}
\caption{\label{fig_6}Fig. 6 :}\end{figure}
 \begin{figure}[htbp]
\noindent\textbf{7}\includegraphics[]{image-9.png}
\caption{\label{fig_7}Fig. 7 :}\end{figure}
 \begin{figure}[htbp]
\noindent\textbf{8}\includegraphics[]{image-10.png}
\caption{\label{fig_8}Fig. 8 :}\end{figure}
 \begin{figure}[htbp]
\noindent\textbf{9}\includegraphics[]{image-11.png}
\caption{\label{fig_9}Fig. 9 :}\end{figure}
 \begin{figure}[htbp]
\noindent\textbf{3} \par 
\begin{longtable}{P{0.6311158798283262\textwidth}P{0.08208154506437768\textwidth}P{0.029184549356223177\textwidth}P{0.04924892703862661\textwidth}P{0.05836909871244635\textwidth}}
Model\tabcellsep Compon ent\tabcellsep depress\tabcellsep Non-depress\tabcellsep Avg. probability\\
Logistic Regression\tabcellsep HRV\tabcellsep 2\%\tabcellsep 98\%\tabcellsep 0.88\\
Random\tabcellsep \tabcellsep \tabcellsep \tabcellsep \\
Forest\tabcellsep Sleep\tabcellsep 1\%\tabcellsep 99\%\tabcellsep 0.92\\
Classifier\tabcellsep \tabcellsep \tabcellsep \tabcellsep \\
Support\tabcellsep \tabcellsep \tabcellsep \tabcellsep \\
Vector\tabcellsep \multicolumn{2}{l}{Static Face 4\%}\tabcellsep 96\%\tabcellsep 0.89\\
Machine\tabcellsep \tabcellsep \tabcellsep \tabcellsep \\
Keras\tabcellsep \tabcellsep \tabcellsep \tabcellsep \\
sequential model\tabcellsep Dynamic Face\tabcellsep 3\%\tabcellsep 97\%\tabcellsep 0.87\\
(3 layers)\tabcellsep \tabcellsep \tabcellsep \tabcellsep \\
\multicolumn{5}{l}{As shown as table III, the modules were tested}\\
\multicolumn{5}{l}{on isolated environments to identify the base mark of}\\
\multicolumn{5}{l}{each individual component. All the developed}\\
\multicolumn{5}{l}{components have reached a success ratio of 0.82. All}\\
\multicolumn{5}{l}{the testing dataset were not used to model}\\
development.\tabcellsep \tabcellsep \tabcellsep \tabcellsep \end{longtable} \par
 
\caption{\label{tab_1}Table 3 :}\end{figure}
 \begin{figure}[htbp]
\noindent\textbf{4} \par 
\begin{longtable}{P{0.27419354838709675\textwidth}P{0.2193548387096774\textwidth}P{0.3564516129032258\textwidth}}
\tabcellsep Depress\tabcellsep Non-depress\\
Input data\tabcellsep 2\tabcellsep 12\end{longtable} \par
 
\caption{\label{tab_2}Table 4 :}\end{figure}
 \begin{figure}[htbp]
\noindent\textbf{5} \par 
\begin{longtable}{P{0.11018518518518518\textwidth}P{0.17314814814814813\textwidth}P{0.2046296296296296\textwidth}P{0.36203703703703705\textwidth}}
\tabcellsep Depress\tabcellsep Non-depress\tabcellsep Average Probability\\
results\tabcellsep 2\tabcellsep 12\tabcellsep 0.82\\
\tabcellsep VI.\tabcellsep \tabcellsep \end{longtable} \par
 
\caption{\label{tab_3}Table 5 :}\end{figure}
 			\footnote{© 2020 Global Journals} 		 		\backmatter  			  				\begin{bibitemlist}{1}
\bibitem[ CP Sleep Database (2020)]{b19}\label{b19} 	 		\textit{},  		 v1.0.0.  		 \url{https://phyionet.org/content/capslpdb/1.0.0/}  	 	 		\textit{CP Sleep Database}  		2020. Jul-2020. p. 17.  	 	 (Physionet.org) 
\bibitem[ (2020)]{b6}\label{b6} 	 		\textit{},  		 \xref{http://dx.doi.org/10.1177/1550059414523764}{10.1177/1550059414523764}.  		 \url{https://journals.sagepub.com/doi/abs/10.1177/1550059414523764}  		Feb-2020. p. 22.  	 
\bibitem[Heart_Rate_Variab (2020)]{b13}\label{b13} 	 		\textit{},  		 			Heart\textunderscore Rate\textunderscore Variab 		.  		Jul-2020. p. 17.  	 
\bibitem[Dlib and Library (2020)]{b27}\label{b27} 	 		\textit{},  		 			C Dlib 		,  		 			Library 		.  		 \url{http://dlib.net/}  		Jul-2020. p. 17.  	 
\bibitem[(PDF) Heart rate variability: A review]{b12}\label{b12} 	 		\textit{(PDF) Heart rate variability: A review},  				12.  	 	 (ResearchGate, 2020. [Online) 
\bibitem[Prasad (2020)]{b4}\label{b4} 	 		‘10 Ways Technology Has Reshaped the Modern Workplace | QuickFMS’.  		 			A Prasad 		.  		 \url{https://www.quickfms.com/blog/how-technology-has-reshaped-the-workplace}  	 	 		\textit{QuickFMS}  		2020. Oct-2020. p. 30.  	 
\bibitem[Schimelpfening (2020)]{b1}\label{b1} 	 		‘7 Types of Depression You May Not Know About’.  		 			N Schimelpfening 		.  		 \url{https://www.verywellmind.com/common-types-of-depression-1067313}  	 	 		\textit{Verywell Mind}  		04-Feb-2020. Feb-2020. p. 22.  	 
\bibitem[Chitta and Sajjan ()]{b10}\label{b10} 	 		‘A reduced region of interest based approach for facial expression recognition from static images’.  		 			K Chitta 		,  		 			N N Sajjan 		.  	 	 		\textit{2016 IEEE Region 10 Conference (TENCON)},  				2016.  	 
\bibitem[Challenges in Representation Learning: Facial Expression Recognition Challenge | Kaggle Kaggle.com (2020)]{b22}\label{b22} 	 		‘Challenges in Representation Learning: Facial Expression Recognition Challenge | Kaggle’.  		 \url{https://www.kaggle.com/}  	 	 		\textit{Kaggle.com}  		2020. Jul-2020. p. 17.  	 	 (c/challenges-in-representation-learningfacial-expression-recognition-challenge/data) 
\bibitem[Abusharha ()]{b25}\label{b25} 	 		‘Changes in blink rate and ocular symptoms during different reading tasks’.  		 			A A Abusharha 		.  		 \xref{http://dx.doi.org/10.2147/OPTO.S142718}{10.2147/OPTO.S142718}.  		 \url{https://doi.org/10.2147/OPTO.S142718}  	 	 		\textit{Clin Optom (Auckl)}  		2017. 9 p. .  	 
\bibitem[CK+ Facial Expression Detection Kaggle.com (2020)]{b21}\label{b21} 	 		‘CK+ Facial Expression Detection’.  		 \url{https://www.kaggle.com/shawon10/ck-facial-expression-detection}  	 	 		\textit{Kaggle.com}  		2020. Jul-2020. p. 17.  	 
\bibitem[Korkmaz et al. (2018)]{b14}\label{b14} 	 		\textit{Cyclic Alternating Pattern in Obstructive Sleep Apnea Patients with versus without Excessive Sleepiness},  		 			S Korkmaz 		,  		 			N Bilecenoglu 		,  		 			M Aksu 		,  		 			T Yoldas 		.  		 \url{https://www.hindawi.com/journals/sd/2018/8713409/}  		2018. May 16. July 17, 2020.  	 
\bibitem[Carney and Freedland (2009)]{b29}\label{b29} 	 		‘Depression and heart rate variability in patients with coronary heart disease’.  		 			R M Carney 		,  		 			K E Freedland 		.  	 	 		\textit{Cleveland Clinic Journal of Medicine}  		Jan. 2009. 76  (Suppl\textunderscore 2) .  	 
\bibitem[Diagnostic and Statistical Manual of Mental Disorders (DSM-5®)," GoogleBooks]{b2}\label{b2} 	 		\textit{Diagnostic and Statistical Manual of Mental Disorders (DSM-5®)," GoogleBooks},  		 	 
\bibitem[Taha and Hatzinakos ()]{b16}\label{b16} 	 		‘Emotion Recognition from 2D Facial Expressions’.  		 			B Taha 		,  		 			D Hatzinakos 		.  	 	 		\textit{2019 IEEE Canadian Conference of Electrical and Computer Engineering (CCECE)},  				2019.  	 
\bibitem[Erguzel et al. ()]{b5}\label{b5} 	 		‘Feature Selection and Classification of Electroencephalographic Signals: An Artificial Neural Network and Genetic Algorithm Based Approach -Turker Tekin Erguzel, Serhat Ozekes’.  		 			T T Erguzel 		,  		 			S Ozekes 		,  		 			O Tan 		,  		 			S Gultekin 		.  	 	 		\textit{Selahattin Gultekin}  		2015. Jan-1970. Oguz Tan. p. 1.  	 	 (SAGE Journals) 
\bibitem[Gollan et al. (2010)]{b26}\label{b26} 	 		‘How do depressed and healthy adults interpret nuanced facial expressions?’.  		 			J K Gollan 		,  		 			M Mccloskey 		,  		 			D Hoxha 		,  		 			E F Coccaro 		.  	 	 		\textit{Journal of abnormal psychology}  		Nov-2010.  	 
\bibitem[Gollan et al. (2010)]{b28}\label{b28} 	 		‘How do depressed and healthy adults interpret nuanced facial expressions?’.  		 			J K Gollan 		,  		 			M Mccloskey 		,  		 			D Hoxha 		,  		 			E F Coccaro 		.  	 	 		\textit{Journal of abnormal psychology}  		Nov-2010.  	 
\bibitem[Fernandez-Mendoza and Vgontzas (2013)]{b31}\label{b31} 	 		‘Insomnia and its impact on physical and mental health’.  		 			J Fernandez-Mendoza 		,  		 			A N Vgontzas 		.  		 \url{https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3972485/}  	 	 		\textit{Current psychiatry reports}  		Dec-2013. Jul-2020. p. 17.  	 
\bibitem[ISUC-SLEEP Dataset | A comprehensive public dataset for sleep researcher Sleeptight.isr.uc.pt (2020)]{b20}\label{b20} 	 		‘ISUC-SLEEP Dataset | A comprehensive public dataset for sleep researcher’.  		 \url{https://sleetight.isr.uc.pt}  	 	 		\textit{Sleeptight.isr.uc.pt}  		2020. Jul-2020. p. 17.  	 
\bibitem[lr =&id=JivBAAAQBAJ&oi=fnd&pg=PT18&dq= rela ted:fQyv5Jjgfj8J:scholar.google.com/&ots=ceVM_ 4JJB9&sig=TQygVD5_W07Wy8KdAE2smRQ8sRY &redir_esc=y#v=onepage&q&f=false (2020)]{b3}\label{b3} 	 		 \url{https://books.google.lk/books?hl=en\&}  		\textit{lr =\&id=JivBAAAQBAJ\&oi=fnd\&pg=PT18\&dq= rela ted:fQyv5Jjgfj8J:scholar.google.com/\&ots=ceVM\textunderscore  4JJB9\&sig=TQygVD5\textunderscore W07Wy8KdAE2smRQ8sRY \&redir\textunderscore esc=y\#v=onepage\&q\&f=false},  				Feb-2020. p. 22.  	 
\bibitem[Motamedi et al. (2009)]{b30}\label{b30} 	 		‘Obstructive sleep apnea: a growing problem’.  		 			K K Motamedi 		,  		 			A C Mcclary 		,  		 			R G Amedee 		.  		 \url{https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3096276/}  	 	 		\textit{The Ochsner journal}  		2009. Jul-2020. p. 17.  	 
\bibitem[Lau et al. (2020)]{b15}\label{b15} 	 		‘Rapid-Eye-Movement-Sleep (REM) Associated Enhancement of Working Memory Performance after a Daytime Nap’.  		 			E Y Y Lau 		,  		 			M L Wong 		,  		 			K N T Lau 		,  		 			F W Y Hui 		,  		 			C.-Huei Tseng 		.  		 \xref{http://dx.doi.org/10.1371/journal.pone.0125752}{10.1371/journal.pone.0125752}.  		 \url{https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0125752}  	 	 		\textit{PLOS ONE}  		Jul-2020. p. 17.  	 
\bibitem[Vougioukas et al. ()]{b23}\label{b23} 	 		‘Realistic Speech-Driven Facial Animation with GANs’.  		 			K Vougioukas 		,  		 			S Petridis 		,  		 			M Pantic 		.  		 \xref{http://dx.doi.org/Available:10.1007/s11263-019-01251-8[Accessed30}{Available:10.1007/s11263-019-01251-8[Accessed30}.  	 	 		\textit{International Journal of Computer Vision}  		2019. 128  (5)  p. .  	 
\bibitem[References Références Referencias 1 (2020)]{b0}\label{b0} 	 		\textit{References Références Referencias 1},  		 \url{https://www.who.int/health-topics/depression\#tab=tab\textunderscore 1}  		Feb-2020. p. 22.  	 	 (World Health Organization) 
\bibitem[Lauderdale et al. (2008)]{b7}\label{b7} 	 		‘Self-reported and measured sleep duration: how similar are they?’.  		 			D S Lauderdale 		,  		 			K L Knutson 		,  		 			L L Yan 		,  		 			K Liu 		,  		 			P J Rathouz 		.  		 \url{https://www.ncbi.nlm.nih.gov/pmc/articles/PMC2785092/}  	 	 		\textit{Epidemiology}  		Nov-2008. Feb-2020. p. 20.  	 
\bibitem[SimSensei (2020)]{b9}\label{b9} 	 		\textit{SimSensei},  		 \url{https://ict.usc.edu/prototypes/simsensei/}  		2020. Oct-2020. p. 30.  	 	 (Ict.usc.edu) 
\bibitem[Mueller (2020)]{b18}\label{b18} 	 		‘Sleep Data -National Sleep Research Resource -NSRR’.  		 			R Mueller 		.  		 \url{https://slepdata.org/datasets/shhs}  	 	 		\textit{Slepdata.org},  				2020. Jul-2020. p. 17.  	 
\bibitem[Joiner et al. ()]{b24}\label{b24} 	 		‘Staring Down Death: Is Abnormally Slow Blink Rate a Clinically Useful Indicator of Acute Suicide Risk’.  		 			Thomas \& Joiner 		,  		 			Melanie \& Hom 		,  		 			Megan \& Rogers 		,  		 			Carol \& Chu 		,  		 			Ian \& Stanley 		,  		 			Gary \& Wynn 		,  		 			Peter Gutierrez 		.  		 \xref{http://dx.doi.org/10.1027/0227-5910/a000367}{10.1027/0227-5910/a000367}.  	 	 		\textit{Crisis}  		2016. 37 p. .  	 
\bibitem[Dobs et al. (2018)]{b17}\label{b17} 	 		\textit{Use and Usefulness of Dynamic Face Stimuli for Face Perception Studies-a Review of Behavioral Findings and Methodology},  		 			K Dobs 		,  		 			I Bülthoff 		,  		 			J Schultz 		.  		 \xref{http://dx.doi.org/10.3389/fpsyg.2018.01355/full}{10.3389/fpsyg.2018.01355/full}.  		 \url{https://www.frontiersin.org/articles/10.3389/fpsyg.2018.01355/full}  		2018. July 13. July 17, 2020.  	 
\bibitem[Cook et al. (2017)]{b8}\label{b8} 	 		‘Utility of the Fitbit Flex to evaluate sleep in major depressive disorder: A comparison against polysomnography and wristworn actigraphy’.  		 			J Cook 		,  		 			M Prairie 		,  		 			D Plante 		.  		 Available: 10.1016/j. jad.2017.04.030.  	 	 		\textit{Journal of Affective Disorders}  		2017. Accessed 30 October 2020. 217 p. .  	 
\bibitem[Roh et al. ()]{b11}\label{b11} 	 		‘Wearable depression monitoring system with heart-rate variability’.  		 			T Roh 		,  		 			S Hong 		,  		 			H.-J Yoo 		.  		 \url{https://aws.amazon.com/ec2/instance-types/}  	 	 		\textit{36th Annual International Conference of the IEEE Engineering in Medicine and Biology Society},  				2014. 2014. 2020. Jul-2020. Amazon Web Services, Inc. p. 17.  	 	 (Amazon EC2 Instance Types -Amazon Web Services) 
\end{bibitemlist}
 			 		 	 
\end{document}
